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/graphql_name_position.rb')
-rw-r--r--rubocop/cop/graphql/graphql_name_position.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/rubocop/cop/graphql/graphql_name_position.rb b/rubocop/cop/graphql/graphql_name_position.rb
index f18d65588cc..b876fb5b088 100644
--- a/rubocop/cop/graphql/graphql_name_position.rb
+++ b/rubocop/cop/graphql/graphql_name_position.rb
@@ -20,7 +20,7 @@
module RuboCop
module Cop
module Graphql
- class GraphqlNamePosition < RuboCop::Cop::Cop
+ class GraphqlNamePosition < RuboCop::Cop::Base
MSG = '`graphql_name` should be the first line of the class: '\
'https://docs.gitlab.com/ee/development/api_graphql_styleguide.html#naming-conventions'
@@ -32,7 +32,7 @@ module RuboCop
return unless graphql_name?(node)
return if node.body.single_line?
- add_offense(node, location: :expression) unless graphql_name?(node.body.children.first)
+ add_offense(node) unless graphql_name?(node.body.children.first)
end
end
end