class FoodCritic::Warning
A warning of a possible issue
def failed?
def failed? @is_failed end
def initialize(rule, match = {}, options = {})
:line => 5, :column=> 40)
Warning.new(rule, :filename => 'foo/recipes.default.rb',
Create a new warning.
def initialize(rule, match = {}, options = {}) @rule, @match = rule, match @is_failed = if options[:fail_tags].empty? false else rule.matches_tags?(options[:fail_tags]) end end