Class: RuboCop::Formatter::QuietFormatter

Inherits:
SimpleTextFormatter show all
Defined in:
lib/rubocop/formatter/quiet_formatter.rb

Overview

If no offenses are found, no output is displayed. Otherwise, SimpleTextFormatter’s output is displayed.

Constant Summary

Constants inherited from SimpleTextFormatter

SimpleTextFormatter::COLOR_FOR_SEVERITY

Instance Attribute Summary

Attributes inherited from BaseFormatter

#options, #output

Instance Method Summary collapse

Methods inherited from SimpleTextFormatter

#file_finished, #finished, #report_file, #started

Methods included from PathUtil

absolute?, match_path?, pwd, relative_path, reset_pwd, smart_path

Methods included from Colorizable

#colorize, #rainbow

Methods inherited from BaseFormatter

#file_finished, #file_started, #finished, #initialize, #started

Constructor Details

This class inherits a constructor from RuboCop::Formatter::BaseFormatter

Instance Method Details

#report_summary(file_count, offense_count, correction_count) ⇒ Object



8
9
10
# File 'lib/rubocop/formatter/quiet_formatter.rb', line 8

def report_summary(file_count, offense_count, correction_count)
  super unless offense_count.zero?
end