Module: Rubycritic::Reporter
- Defined in:
- lib/rubycritic/reporter.rb
Class Method Summary collapse
Class Method Details
.generate_report(analysed_modules) ⇒ Object
3 4 5 |
# File 'lib/rubycritic/reporter.rb', line 3 def self.generate_report(analysed_modules) report_generator_class.new(analysed_modules).generate_report end |
.report_generator_class ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/rubycritic/reporter.rb', line 7 def self.report_generator_class case Config.format when :json require 'rubycritic/generators/json_report' Generator::JsonReport when :console require 'rubycritic/generators/console_report' Generator::ConsoleReport else require 'rubycritic/generators/html_report' Generator::HtmlReport end end |