Skip to content

Commit 4cae1d0

Browse files
committed
Perform all format_specializations_check and only fail after
1 parent c0387fa commit 4cae1d0

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

tool/jt.rb

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3049,10 +3049,17 @@ def final_classes
30493049
end
30503050

30513051
def format_specializations_check
3052-
abort 'Some Specializations did not use the protected visibility.' if format_specializations_visibility
3053-
abort 'Some Specializations were not properly formatted.' if format_specializations_arguments
3054-
abort 'There were extra blank lines around imports.' if Formatting.format_imports
3055-
abort 'There were classes which should be marked as final but were not.' if final_classes
3052+
any_failed = false
3053+
[
3054+
[format_specializations_visibility, 'Some Specializations did not use the protected visibility.'],
3055+
[format_specializations_arguments, 'Some Specializations were not properly formatted.'],
3056+
[Formatting.format_imports, 'There were extra blank lines around imports.'],
3057+
[final_classes, 'There were classes which should be marked as final but were not.'],
3058+
].each do |changed, error_message|
3059+
any_failed ||= changed
3060+
$stderr.puts error_message if changed
3061+
end
3062+
abort if any_failed
30563063
end
30573064

30583065
def check_generated_files

0 commit comments

Comments
 (0)