Class: CC::Analyzer::Formatters::HTMLFormatter
- Defined in:
- lib/cc/analyzer/formatters/html_formatter.rb
Defined Under Namespace
Classes: ReportTemplate
Constant Summary
Constants inherited from Formatter
Formatter::InvalidFormatterError
Instance Method Summary collapse
Methods inherited from Formatter
#close, #engine_running, #initialize, #started, #write
Constructor Details
This class inherits a constructor from CC::Analyzer::Formatters::Formatter
Instance Method Details
#failed(_) ⇒ Object
34 35 36 |
# File 'lib/cc/analyzer/formatters/html_formatter.rb', line 34 def failed(_) exit 1 end |
#finished ⇒ Object
29 30 31 32 |
# File 'lib/cc/analyzer/formatters/html_formatter.rb', line 29 def finished template = ReportTemplate.new(issues.length, issues_by_path) puts template.render end |