lib/reek/cli/report/report.rb in reek-2.0.4 vs lib/reek/cli/report/report.rb in reek-2.1.0

- old
+ new

@@ -1,10 +1,10 @@ require 'rainbow' require 'json' module Reek - module Cli + module CLI module Report # # A report that contains the smells and smell counts following source code analysis. # class Base @@ -90,20 +90,20 @@ end # # Displays a list of smells in YAML format # YAML with empty array for 0 smells - class YamlReport < Base + class YAMLReport < Base def show print smells.map(&:yaml_hash).to_yaml end end # # Displays a list of smells in JSON format # JSON with empty array for 0 smells - class JsonReport < Base + class JSONReport < Base def show print ::JSON.generate( smells.map do |smell| smell.yaml_hash(@warning_formatter) end @@ -112,10 +112,10 @@ end # # Saves the report as a HTML file # - class HtmlReport < Base + class HTMLReport < Base require 'erb' def show path = File.expand_path('../../../../../assets/html_output.html.erb', __FILE__)