Class: Fasterer::Github::AnalyzerExtension

Inherits:
Analyzer
  • Object
show all
Defined in:
lib/fasterer/github/analyzer_extension.rb

Instance Method Summary collapse

Constructor Details

#initialize(content64) ⇒ AnalyzerExtension

Returns a new instance of AnalyzerExtension.



7
8
9
10
# File 'lib/fasterer/github/analyzer_extension.rb', line 7

def initialize(content64)
  @content64 = content64
  @file_content = decoded_content
end

Instance Method Details

#errorsObject



16
17
18
# File 'lib/fasterer/github/analyzer_extension.rb', line 16

def errors
  super
end

#offencesObject



20
21
22
23
24
25
26
# File 'lib/fasterer/github/analyzer_extension.rb', line 20

def offences
  offences = {}
  errors.group_by(&:name).each do |k, v|
    offences[k] = v.map(&:line_number)
  end
  offences
end

#scanObject



12
13
14
# File 'lib/fasterer/github/analyzer_extension.rb', line 12

def scan
  super
end