File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -3045,10 +3045,17 @@ def final_classes
3045
3045
end
3046
3046
3047
3047
def format_specializations_check
3048
- abort 'Some Specializations did not use the protected visibility.' if format_specializations_visibility
3049
- abort 'Some Specializations were not properly formatted.' if format_specializations_arguments
3050
- abort 'There were extra blank lines around imports.' if Formatting . format_imports
3051
- abort 'There were classes which should be marked as final but were not.' if final_classes
3048
+ any_failed = false
3049
+ [
3050
+ [ format_specializations_visibility , 'Some Specializations did not use the protected visibility.' ] ,
3051
+ [ format_specializations_arguments , 'Some Specializations were not properly formatted.' ] ,
3052
+ [ Formatting . format_imports , 'There were extra blank lines around imports.' ] ,
3053
+ [ final_classes , 'There were classes which should be marked as final but were not.' ] ,
3054
+ ] . each do |changed , error_message |
3055
+ any_failed ||= changed
3056
+ $stderr. puts error_message if changed
3057
+ end
3058
+ abort if any_failed
3052
3059
end
3053
3060
3054
3061
def check_generated_files
You can’t perform that action at this time.
0 commit comments