lib/coffeelint/cmd.rb in coffeelint-1.11.0 vs lib/coffeelint/cmd.rb in coffeelint-1.14.0
- old
+ new
@@ -77,16 +77,18 @@
def self.main
options = parse_options
if ARGV.length > 0
+ errors_count = 0
ARGV.each do |file|
if options[:options][:recursive]
- Coffeelint.run_test_suite(file, options[:linter_options])
+ errors_count += Coffeelint.run_test_suite(file, options[:linter_options])
else
- Coffeelint.run_test(file, options[:linter_options])
+ errors_count += Coffeelint.run_test(file, options[:linter_options])
end
end
+ exit errors_count
end
end
end
end