class RuboCop::Formatter::SimpleTextFormatter
def report_summary(file_count, offense_count, correction_count)
def report_summary(file_count, offense_count, correction_count) summary = pluralize(file_count, 'file') summary << ' inspected, ' offenses_text = pluralize(offense_count, 'offense', no_for_zero: true) offenses_text << ' detected' summary << colorize(offenses_text, offense_count.zero? ? :green : :red) if correction_count > 0 summary << ', ' correction_text = pluralize(correction_count, 'offense') correction_text << ' corrected' color = correction_count == offense_count ? :green : :cyan summary << colorize(correction_text, color) end output.puts output.puts summary end