lib/cc/analyzer/formatters/html_formatter.rb in codeclimate-0.36.0 vs lib/cc/analyzer/formatters/html_formatter.rb in codeclimate-0.37.0
- old
+ new
@@ -24,23 +24,9 @@
def pluralize(number, noun)
"#{ActiveSupport::NumberHelper.number_to_delimited(number)} #{noun.pluralize(number)}"
end
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
template = ReportTemplate.new(issues.length, issues_by_path)
puts template.render
end