Class: QuietQuality::Tools::Brakeman::Parser

Inherits:
Object
  • Object
show all
Includes:
Logging
Defined in:
lib/quiet_quality/tools/brakeman/parser.rb

Instance Method Summary collapse

Methods included from Logging

#debug, #info, #warn

Constructor Details

#initialize(text) ⇒ Parser

Returns a new instance of Parser.



7
8
9
# File 'lib/quiet_quality/tools/brakeman/parser.rb', line 7

def initialize(text)
  @text = text
end

Instance Method Details

#messagesObject



11
12
13
14
15
16
# File 'lib/quiet_quality/tools/brakeman/parser.rb', line 11

def messages
  return @_messages if defined?(@_messages)
  check_errors!
  messages = warnings.map { |w| message_for(w) }
  @_messages = Messages.new(messages)
end