lib/slim_lint/runner.rb in slim_lint-0.21.0 vs lib/slim_lint/runner.rb in slim_lint-0.21.1
- old
+ new
@@ -55,10 +55,10 @@
# @param config [SlimLint::Configuration]
def collect_lints(file_content, file_name, linter_selector, config)
begin
document = SlimLint::Document.new(file_content, file: file_name, config: config)
rescue SlimLint::Exceptions::ParseError => e
- return [SlimLint::Lint.new(nil, file, e.lineno, e.error, :error)]
+ return [SlimLint::Lint.new(nil, file_name, e.lineno, e.error, :error)]
end
linter_selector.linters_for_file(file_name).map do |linter|
linter.run(document)
end.flatten