| Class | Brakeman::Warning |
| In: |
lib/brakeman/warning.rb
|
| Parent: | Object |
The Warning class stores information about warnings
| TEXT_CONFIDENCE | = | { 0 => "High", 1 => "Medium", 2 => "Weak", } |
| CONFIDENCE | = | { :high => 0, :med => 1, :medium => 1, :low => 2, :weak => 2, } |
| OPTIONS | = | { :called_from => :@called_from, :check => :@check, :class => :@class, :code => :@code, :controller => :@controller, :file => :@file, :gem_info => :@gem_info, :line => :@line, :link_path => :@link_path, :message => :@message, :method => :@method, :model => :@model, :relative_path => :@relative_path, :template => :@template, :user_input => :@user_input, :warning_set => :@warning_set, :warning_type => :@warning_type, } |
| called_from | [R] | |
| check | [R] | |
| class | [R] | |
| code | [RW] | |
| confidence | [R] | |
| context | [RW] | |
| controller | [R] | |
| file | [RW] | |
| line | [R] | |
| message | [RW] | |
| method | [R] | |
| model | [R] | |
| relative_path | [RW] | |
| template | [R] | |
| user_input | [R] | |
| user_input_type | [R] | |
| warning_code | [R] | |
| warning_set | [R] | |
| warning_type | [R] |
+options[:result]+ can be a result from Tracker#find_call. Otherwise, it can be nil.
Return String of the code output from the OutputProcessor and stripped of newlines and tabs.