Class: RuboBot::RuboCop::Formatter::ClangStyleFormatter
- Inherits:
-
RuboCop::Formatter::ClangStyleFormatter
- Object
- RuboCop::Formatter::ClangStyleFormatter
- RuboBot::RuboCop::Formatter::ClangStyleFormatter
- Defined in:
- lib/rubobot/rubocop/formatter/clang_style_formatter.rb
Overview
This formatter collects the list of offended cops with a count of how many offenses of their kind were found. Ordered by desc offense count. Does not print output.
Instance Attribute Summary collapse
-
#offense_counts ⇒ Object
readonly
Returns the value of attribute offense_counts.
Instance Method Summary collapse
-
#initialize(output, options = {}) ⇒ ClangStyleFormatter
constructor
A new instance of ClangStyleFormatter.
Constructor Details
#initialize(output, options = {}) ⇒ ClangStyleFormatter
Returns a new instance of ClangStyleFormatter.
14 15 16 17 |
# File 'lib/rubobot/rubocop/formatter/clang_style_formatter.rb', line 14 def initialize(output, = {}) @output = StringIO.new @options = end |
Instance Attribute Details
#offense_counts ⇒ Object (readonly)
Returns the value of attribute offense_counts.
12 13 14 |
# File 'lib/rubobot/rubocop/formatter/clang_style_formatter.rb', line 12 def offense_counts @offense_counts end |