Parent

Methods

Included Modules

Class/Module Index [+]

Quicksearch

Reek::Cli::QuietReport

A report that lists a section for each source that has smells.

Public Class Methods

new(examiner) click to toggle source
# File lib/reek/cli/report.rb, line 47
def initialize(examiner)
  @warnings = examiner.smells
  @smell_count = @warnings.length
  @desc = examiner.description
end

Public Instance Methods

report() click to toggle source
# File lib/reek/cli/report.rb, line 53
def report
  @smell_count > 0 ? "#{header(@desc, @smell_count)}:\n#{format_list(@warnings)}\n" : ''
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.