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 @@ -3049,10 +3049,17 @@ def final_classes
3049
3049
end
3050
3050
3051
3051
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
3056
3063
end
3057
3064
3058
3065
def check_generated_files
You can’t perform that action at this time.
0 commit comments