lib/cc/analyzer/formatters/plain_text_formatter.rb in codeclimate-0.69.0 vs lib/cc/analyzer/formatters/plain_text_formatter.rb in codeclimate-0.70.0
- old
+ new
@@ -36,11 +36,14 @@
puts(colorize(".", :green))
end
def engine_running(engine, &block)
super(engine) do
- with_spinner("Running #{current_engine.name}: ", &block)
+ result = with_spinner("Running #{current_engine.name}: ", &block)
+ if result.skipped?
+ puts(colorize("Skipped #{current_engine.name}: #{result.stderr}", :yellow))
+ end
end
end
def failed(output)
spinner.stop("Failed")
@@ -81,9 +84,13 @@
issues.group_by { |i| i["location"]["path"] }.sort
end
def warnings
@warnings ||= []
+ end
+
+ def measurements
+ @measurements ||= []
end
def pluralize(number, noun)
"#{ActiveSupport::NumberHelper.number_to_delimited(number)} #{noun.pluralize(number)}"
end