summaryrefslogtreecommitdiff
path: root/rubocop/cop/graphql/id_type.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-07-23 18:10:06 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-07-23 18:10:06 +0000
commit4a6e6c740b131b6291d553fcdab5a0612f8c099b (patch)
treec9b31140b4161e25f5395447272187e344ea9ca1 /rubocop/cop/graphql/id_type.rb
parent228eb2ee910e2fb7f9bedf713c43a30c55cf3314 (diff)
downloadgitlab-ce-4a6e6c740b131b6291d553fcdab5a0612f8c099b.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'rubocop/cop/graphql/id_type.rb')
-rw-r--r--rubocop/cop/graphql/id_type.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/rubocop/cop/graphql/id_type.rb b/rubocop/cop/graphql/id_type.rb
index 0d2fb6ad852..ba973242efa 100644
--- a/rubocop/cop/graphql/id_type.rb
+++ b/rubocop/cop/graphql/id_type.rb
@@ -4,12 +4,12 @@ module RuboCop
module Cop
module Graphql
class IDType < RuboCop::Cop::Cop
- MSG = 'Do not use GraphQL::ID_TYPE, use a specific GlobalIDType instead'
+ MSG = 'Do not use GraphQL::Types::ID, use a specific GlobalIDType instead'
WHITELISTED_ARGUMENTS = %i[iid full_path project_path group_path target_project_path namespace_path].freeze
def_node_search :graphql_id_type?, <<~PATTERN
- (send nil? :argument (_ #does_not_match?) (const (const nil? :GraphQL) :ID_TYPE) ...)
+ (send nil? :argument (_ #does_not_match?) (const (const (const nil? :GraphQL) :Types) :ID) ...)
PATTERN
def on_send(node)