Class: GraphQL::Modernize::Rules::RescueFrom

Inherits:
Base
  • Object
show all
Defined in:
lib/graphql/modernize/rules/deprecation.rb

Instance Attribute Summary

Attributes inherited from Base

#offenses

Instance Method Summary collapse

Methods inherited from Base

#initialize, node_pattern, node_types, rule, #visit

Constructor Details

This class inherits a constructor from GraphQL::Modernize::Rules::Base

Instance Method Details

#on_match(node, _captures) ⇒ Object



189
190
191
192
193
# File 'lib/graphql/modernize/rules/deprecation.rb', line 189

def on_match(node, _captures)
  return unless inside?(node, :schema)

  add_offense(node.location, message: "Review `rescue_from` placement and its handler signature")
end