summaryrefslogtreecommitdiff
path: root/rubocop/cop
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-05-04 00:09:14 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-05-04 00:09:14 +0000
commit09409d9dfb406911f45c867e2364e63a2620e966 (patch)
treed957796758912642536cdb0b673303f6775ea9dd /rubocop/cop
parent947478911040ee8e1c5bb09b3506782b68ff05ee (diff)
downloadgitlab-ce-09409d9dfb406911f45c867e2364e63a2620e966.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'rubocop/cop')
-rw-r--r--rubocop/cop/gitlab/avoid_feature_get.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/rubocop/cop/gitlab/avoid_feature_get.rb b/rubocop/cop/gitlab/avoid_feature_get.rb
index e36e0b020c0..1bce89268d9 100644
--- a/rubocop/cop/gitlab/avoid_feature_get.rb
+++ b/rubocop/cop/gitlab/avoid_feature_get.rb
@@ -5,8 +5,8 @@ module RuboCop
module Gitlab
# Cop that blacklists the use of `Feature.get`.
class AvoidFeatureGet < RuboCop::Cop::Cop
- MSG = 'Use `Feature.enable/disable` methods instead of `Feature.get`. ' \
- 'See doc/development/testing_guide/best_practices.md#feature-flags-in-tests for more information.'
+ MSG = 'Use `stub_feature_flags` method instead of `Feature.get`. ' \
+ 'See doc/development/feature_flags/index.md#feature-flags-in-tests for more information.'
def_node_matcher :feature_get?, <<~PATTERN
(send (const nil? :Feature) :get ...)