lib/scss_lint/cli.rb in scss-lint-0.6.5 vs lib/scss_lint/cli.rb in scss-lint-0.6.6
- old
+ new
@@ -71,10 +71,11 @@
end
def report_lints(lints)
sorted_lints = lints.sort_by { |l| [l.filename, l.line] }
reporter = options.fetch(:reporter, Reporter::DefaultReporter).new(sorted_lints)
- puts reporter.report_lints
+ output = reporter.report_lints
+ print output if output
end
def print_help(help_message, err = nil)
puts err, '' if err
puts help_message