Class: RuboCop::Formatter::ClangStyleFormatter
- Inherits:
-
SimpleTextFormatter
- Object
- BaseFormatter
- SimpleTextFormatter
- RuboCop::Formatter::ClangStyleFormatter
- Defined in:
- lib/rubocop/formatter/clang_style_formatter.rb
Overview
This formatter formats report data in clang style. The precise location of the problem is shown together with the relevant source code.
Direct Known Subclasses
Constant Summary collapse
- ELLIPSES =
'...'.freeze
Constants inherited from SimpleTextFormatter
SimpleTextFormatter::COLOR_FOR_SEVERITY
Instance Attribute Summary
Attributes inherited from BaseFormatter
Instance Method Summary collapse
Methods inherited from SimpleTextFormatter
#file_finished, #finished, #report_summary, #started
Methods included from Colorizable
Methods included from PathUtil
absolute?, match_path?, relative_path
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_file(file, offenses) ⇒ Object
11 12 13 |
# File 'lib/rubocop/formatter/clang_style_formatter.rb', line 11 def report_file(file, offenses) offenses.each { |offense| report_offense(file, offense) } end |