Class: Reek::CodeClimate::CodeClimateReport

Inherits:
Report::BaseReport show all
Defined in:
lib/reek/code_climate/code_climate_report.rb

Overview

Displays a list of smells in Code Climate engine format (github.com/codeclimate/spec/blob/master/SPEC.md) JSON with empty array for 0 smells

Constant Summary

Constants inherited from Report::BaseReport

Report::BaseReport::NO_WARNINGS_COLOR, Report::BaseReport::WARNINGS_COLOR

Instance Attribute Summary

Attributes inherited from Report::BaseReport

#examiners, #heading_formatter, #progress_formatter, #sort_by_issue_count, #warning_formatter

Instance Method Summary collapse

Methods inherited from Report::BaseReport

#add_examiner, #initialize, #smells, #smells?

Constructor Details

This class inherits a constructor from Reek::Report::BaseReport

Instance Method Details

#show(out = $stdout) ⇒ Object



14
15
16
17
18
# File 'lib/reek/code_climate/code_climate_report.rb', line 14

def show(out = $stdout)
  smells.map do |smell|
    out.print CodeClimateFormatter.new(smell).render
  end
end