123456789_123456789_123456789_123456789_123456789_

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

Overview

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

Constant Summary

::RuboCop::PathUtil - Included

HIDDEN_FILE_PATTERN, SMART_PATH_CACHE

SimpleTextFormatter - Inherited

COLOR_FOR_SEVERITY

Class Method Summary

BaseFormatter - Inherited

Instance Attribute Summary

Instance Method Summary

SimpleTextFormatter - Inherited

::RuboCop::PathUtil - Included

#absolute?

Returns true for an absolute Unix or Windows path.

#glob?

Returns true for a glob.

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

Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity.

#maybe_hidden_file?

Loose check to reduce memory allocations.

#relative_path, #smart_path

Colorizable - Included

BaseFormatter - Inherited

#file_finished

Invoked at the end of inspecting each files.

#file_started

Invoked at the beginning of inspecting each files.

#finished

Invoked after all files are inspected or interrupted by user.

#started

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