diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-13 12:10:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-13 12:10:21 +0300 |
commit | a4772171f93e06dcc4bbc78a3577b1faa7dd1f50 (patch) | |
tree | 33c6a1d0278581ff3140730b46f57df15b85cc85 /rubocop | |
parent | a48b98b75db31df0c4feea4b4bb3e3afd7ce73cf (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'rubocop')
-rw-r--r-- | rubocop/cop/graphql/gid_expected_type.rb | 21 |
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 |