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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-07-13 12:10:21 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-07-13 12:10:21 +0300
commita4772171f93e06dcc4bbc78a3577b1faa7dd1f50 (patch)
tree33c6a1d0278581ff3140730b46f57df15b85cc85 /rubocop
parenta48b98b75db31df0c4feea4b4bb3e3afd7ce73cf (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'rubocop')
-rw-r--r--rubocop/cop/graphql/gid_expected_type.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/rubocop/cop/graphql/gid_expected_type.rb b/rubocop/cop/graphql/gid_expected_type.rb
deleted file mode 100644
index 7e802e6d2db..00000000000
--- a/rubocop/cop/graphql/gid_expected_type.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-# frozen_string_literal: true
-
-module RuboCop
- module Cop
- module Graphql
- class GIDExpectedType < RuboCop::Cop::Base
- MSG = 'Add an expected_type parameter to #object_from_id calls if possible.'
-
- def_node_search :id_from_object?, <<~PATTERN
- (send ... :object_from_id (...))
- PATTERN
-
- def on_send(node)
- return unless id_from_object?(node)
-
- add_offense(node)
- end
- end
- end
- end
-end