@@ -87,7 +87,7 @@ def run(args = ARGV)
87
87
rescue => e
88
88
@stats . exceptions += 1
89
89
puts "Exception occurred when processing: #{ relative_filename ( filename ) } "
90
- puts "If this file cannot be processed by erb-lint, " \
90
+ puts "If this file cannot be processed by erb-lint, " \
91
91
"you can exclude it in your configuration file."
92
92
puts e . message
93
93
puts Rainbow ( e . backtrace . join ( "\n " ) ) . red
@@ -303,7 +303,7 @@ def runner_config_override
303
303
ERBLint ::LinterRegistry . linters . map do |klass |
304
304
linters [ klass . simple_name ] = { "enabled" => enabled_linter_classes . include? ( klass ) }
305
305
end
306
- end
306
+ end ,
307
307
)
308
308
end
309
309
@@ -348,8 +348,12 @@ def option_parser
348
348
@options [ :clear_cache ] = config
349
349
end
350
350
351
- opts . on ( "--enable-linters LINTER[,LINTER,...]" , Array ,
352
- "Only use specified linter" , "Known linters are: #{ known_linter_names . join ( ", " ) } " ) do |linters |
351
+ opts . on (
352
+ "--enable-linters LINTER[,LINTER,...]" ,
353
+ Array ,
354
+ "Only use specified linter" ,
355
+ "Known linters are: #{ known_linter_names . join ( ", " ) } " ,
356
+ ) do |linters |
353
357
linters . each do |linter |
354
358
unless known_linter_names . include? ( linter )
355
359
failure! ( "#{ linter } : not a valid linter name (#{ known_linter_names . join ( ", " ) } )" )
@@ -382,7 +386,7 @@ def option_parser
382
386
opts . on (
383
387
"-sFILE" ,
384
388
"--stdin FILE" ,
385
- "Pipe source from STDIN. Takes the path to be used to check which rules to apply."
389
+ "Pipe source from STDIN. Takes the path to be used to check which rules to apply." ,
386
390
) do |file |
387
391
@options [ :stdin ] = [ file ]
388
392
end
@@ -398,7 +402,7 @@ def option_parser
398
402
end
399
403
400
404
def format_options_help
401
- "Report offenses in the given format: " \
405
+ "Report offenses in the given format: " \
402
406
"(#{ Reporter . available_formats . join ( ", " ) } ) (default: multiline)"
403
407
end
404
408
0 commit comments