lib/coffeelint.rb in coffeelint-1.9.1 vs lib/coffeelint.rb in coffeelint-1.10.0.pre.patch.1

- old
+ new

@@ -105,13 +105,13 @@ Coffeelint.display_test_results(file, result, pretty_output) end def self.run_test_suite(directory, config = {}) pretty_output = config.has_key?(:pretty_output) ? config.delete(:pretty_output) : true - success = true + errors_count = 0 Coffeelint.lint_dir(directory, config) do |name, errors| + errors_count += errors.count result = Coffeelint.display_test_results(name, errors, pretty_output) - success = false if not result end - success + errors_count end end