class Simplabs::Excellent::Warning

The warnings returned by Excellent provide information about the file the possibly problematic code was found in as well as the line of the occurence, a warning message and a Hash with specific information about the warning.

Warnings also provide the message template that was used to generate the message. The message template contains tokens like {{token}} that correspond to the valeus in the info hash, e.g.:

'{{method}} has abc score of {{score}}.'
{ :method => 'User#full_name', :score => 10 }

Attributes

check[R]

The check that produced the warning

filename[R]

The name of the file the check found the problematic code in

info[R]

Additional info for the warning (see above)

line_number[R]

The file number where the check found the problematic code

message[R]

The warning message

message_template[R]

The template used to produce the warning (see above)