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/group_public_or_visible_to_user.rb')
-rw-r--r--rubocop/cop/group_public_or_visible_to_user.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/rubocop/cop/group_public_or_visible_to_user.rb b/rubocop/cop/group_public_or_visible_to_user.rb
index beda0b7f8ba..d3aa230680b 100644
--- a/rubocop/cop/group_public_or_visible_to_user.rb
+++ b/rubocop/cop/group_public_or_visible_to_user.rb
@@ -3,7 +3,7 @@
module RuboCop
module Cop
# Cop that blacklists the usage of Group.public_or_visible_to_user
- class GroupPublicOrVisibleToUser < RuboCop::Cop::Cop
+ class GroupPublicOrVisibleToUser < RuboCop::Cop::Base
MSG = '`Group.public_or_visible_to_user` should be used with extreme care. ' \
'Please ensure that you are not using it on its own and that the amount ' \
'of rows being filtered is reasonable.'
@@ -15,7 +15,7 @@ module RuboCop
def on_send(node)
return unless public_or_visible_to_user?(node)
- add_offense(node, location: :expression)
+ add_offense(node)
end
end
end