lib/scss_lint/runner.rb in scss-lint-0.37.0 vs lib/scss_lint/runner.rb in scss-lint-0.38.0
- old
+ new
@@ -14,14 +14,10 @@
# @param files [Array]
def run(files)
files.each do |file|
find_lints(file)
end
-
- @linters.each do |linter|
- @lints += linter.lints
- end
end
private
# @param file [String]
@@ -47,9 +43,9 @@
# For stubbing in tests.
def run_linter(linter, engine, file)
return unless @config.linter_enabled?(linter)
return if @config.excluded_file_for_linter?(file, linter)
- linter.run(engine, @config.linter_options(linter))
+ @lints += linter.run(engine, @config.linter_options(linter))
end
end
end