lib/scss_lint/runner.rb in scss_lint-0.46.0 vs lib/scss_lint/runner.rb in scss_lint-0.47.0

- old
+ new

@@ -23,11 +23,13 @@ private # @param file [Hash] # @option file [String] File object # @option path [String] path to File (determines which Linter config to apply) - def find_lints(file) - engine = Engine.new(file) + def find_lints(file) # rubocop:disable AbcSize + options = file.merge(preprocess_command: @config.options['preprocess_command'], + preprocess_files: @config.options['preprocess_files']) + engine = Engine.new(options) @linters.each do |linter| begin run_linter(linter, engine, file[:path]) rescue => error