Class: RuboBot::RuboCop::Formatter::ClangStyleFormatter

Inherits:
RuboCop::Formatter::ClangStyleFormatter
  • Object
show all
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

Instance Method Summary collapse

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, options = {})
  @output = StringIO.new
  @options = options
end

Instance Attribute Details

#offense_countsObject (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