lib/scss_lint/runner.rb in scss-lint-0.16.1 vs lib/scss_lint/runner.rb in scss-lint-0.17.0
- old
+ new
@@ -32,10 +32,11 @@
config = @config.preferred ? @config : Config.for_file(file)
config ||= @config
@linters.each do |linter|
next unless config.linter_enabled?(linter)
+ next if config.excluded_file_for_linter?(file, linter)
begin
linter.run(engine, config.linter_options(linter))
rescue => error
raise LinterError,
@@ -44,8 +45,10 @@
error.backtrace
end
end
rescue Sass::SyntaxError => ex
@lints << Lint.new(ex.sass_filename, ex.sass_line, ex.to_s, :error)
+ rescue FileEncodingError => ex
+ @lints << Lint.new(file, 1, ex.to_s, :error)
end
end
end