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

Constants included from PathUtil

PathUtil::HIDDEN_FILE_PATTERN

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?, glob?, hidden_dir?, hidden_file?, hidden_file_in_not_hidden_dir?, match_path?, maybe_hidden_file?, relative_path, 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, correctable_count) ⇒ Object



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

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