Class: RuboCop::Formatter::QuietFormatter

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: RuboCop::Formatter::SimpleTextFormatter
Defined in: lib/rubocop/formatter/quiet_formatter.rb


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

Constant Summary

::RuboCop::PathUtil - Included


SimpleTextFormatter - Inherited


Class Method Summary

BaseFormatter - Inherited

Instance Attribute Summary

Instance Method Summary

SimpleTextFormatter - Inherited

::RuboCop::PathUtil - Included


Returns true for an absolute Unix or Windows path.


Returns true for a glob.

#hidden_dir?, #hidden_file?, #hidden_file_in_not_hidden_dir?,

Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity.


Loose check to reduce memory allocations.

#relative_path, #smart_path

Colorizable - Included

BaseFormatter - Inherited


Invoked at the end of inspecting each files.


Invoked at the beginning of inspecting each files.


Invoked after all files are inspected or interrupted by user.


Invoked once before any files are inspected.

Constructor Details

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

Instance Method Details

#report_summary(file_count, offense_count, correction_count, correctable_count)

[ GitHub ]

# 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?