lib/scss_lint/reporter/default_reporter.rb in scss-lint-0.6.5 vs lib/scss_lint/reporter/default_reporter.rb in scss-lint-0.6.6
- old
+ new
@@ -1,11 +1,13 @@
require 'colorize'
module SCSSLint
class Reporter::DefaultReporter < Reporter
def report_lints
- lints.map do |lint|
- "#{lint.filename}:".yellow + "#{lint.line} - #{lint.description}"
- end.join("\n")
+ if lints.any?
+ lints.map do |lint|
+ "#{lint.filename}:".yellow + "#{lint.line} - #{lint.description}"
+ end.join("\n") + "\n"
+ end
end
end
end