Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'rubocop/cop/graphql/resolver_type.rb')
-rw-r--r--rubocop/cop/graphql/resolver_type.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/rubocop/cop/graphql/resolver_type.rb b/rubocop/cop/graphql/resolver_type.rb
index e9fa768fd3e..34f1d43fc2a 100644
--- a/rubocop/cop/graphql/resolver_type.rb
+++ b/rubocop/cop/graphql/resolver_type.rb
@@ -23,7 +23,7 @@
module RuboCop
module Cop
module Graphql
- class ResolverType < RuboCop::Cop::Cop
+ class ResolverType < RuboCop::Cop::Base
MSG = 'Missing type annotation: Please add `type` DSL method call. ' \
'e.g: type UserType.connection_type, null: true'
@@ -32,7 +32,7 @@ module RuboCop
PATTERN
def on_class(node)
- add_offense(node, location: :expression) if resolver?(node) && !typed?(node)
+ add_offense(node) if resolver?(node) && !typed?(node)
end
private