lib/cc/analyzer/formatters/plain_text_formatter.rb in codeclimate-0.36.0 vs lib/cc/analyzer/formatters/plain_text_formatter.rb in codeclimate-0.37.0
- old
+ new
@@ -8,23 +8,9 @@
class PlainTextFormatter < Formatter
def started
puts colorize("Starting analysis", :green)
end
- def write(data)
- json = JSON.parse(data)
- json["engine_name"] = current_engine.name
-
- case json["type"].downcase
- when "issue"
- issues << json
- when "warning"
- warnings << json
- else
- raise "Invalid type found: #{json["type"]}"
- end
- end
-
def finished
puts
issues_by_path.each do |path, file_issues|
puts colorize("== #{path} (#{pluralize(file_issues.size, "issue")}) ==", :yellow)