lib/scss_lint/reporter/default_reporter.rb in scss-lint-0.25.1 vs lib/scss_lint/reporter/default_reporter.rb in scss-lint-0.26.0
- old
+ new
@@ -4,11 +4,16 @@
def report_lints
return unless lints.any?
lints.map do |lint|
type = lint.error? ? '[E]'.color(:red) : '[W]'.color(:yellow)
- "#{lint.filename.color(:cyan)}:" << "#{lint.location.line}".color(:magenta) <<
- " #{type} #{lint.description}"
+
+ linter_name = "#{lint.linter.name}: ".color(:green) if lint.linter
+ message = "#{linter_name}#{lint.description}"
+
+ "#{lint.filename.color(:cyan)}:" <<
+ "#{lint.location.line}".color(:magenta) <<
+ " #{type} #{message}"
end.join("\n") + "\n"
end
end
end