Class: RuboCop::Cop::GraphQL::MaxComplexitySchema
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::GraphQL::MaxComplexitySchema
- Defined in:
- lib/rubocop/cop/graphql/max_complexity_schema.rb
Overview
Detects missing max_complexity configuration in schema files
Constant Summary collapse
- MSG =
"max_complexity should be configured for schema."
Instance Method Summary collapse
Instance Method Details
#max_complexity(node) ⇒ Object
17 18 19 |
# File 'lib/rubocop/cop/graphql/max_complexity_schema.rb', line 17 def_node_matcher :max_complexity, <<~PATTERN `(send nil? :max_complexity ...) PATTERN |