lib/scss_lint/runner.rb in scss_lint-0.40.1 vs lib/scss_lint/runner.rb in scss_lint-0.41.0

- old
+ new

@@ -1,20 +1,21 @@ module SCSSLint # Finds and aggregates all lints found by running the registered linters # against a set of SCSS files. class Runner - attr_reader :lints + attr_reader :lints, :files # @param config [Config] def initialize(config) @config = config @lints = [] @linters = LinterRegistry.linters.map(&:new) end # @param files [Array] def run(files) - files.each do |file| + @files = files + @files.each do |file| find_lints(file) end end private