summaryrefslogtreecommitdiff
path: root/rubocop
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-10-28 18:10:48 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-10-28 18:10:48 +0000
commit0076bbc67375ff1507e42ce479406daf92c0a6a2 (patch)
treeaa0a1c6f575ac050504c397c7edf8f9789d46046 /rubocop
parent8966e39395e22465ac3ff58407868b872a3ecffe (diff)
downloadgitlab-ce-0076bbc67375ff1507e42ce479406daf92c0a6a2.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'rubocop')
-rw-r--r--rubocop/cop/gitlab/mark_used_feature_flags.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/rubocop/cop/gitlab/mark_used_feature_flags.rb b/rubocop/cop/gitlab/mark_used_feature_flags.rb
index 23de0644385..d1722a47c8a 100644
--- a/rubocop/cop/gitlab/mark_used_feature_flags.rb
+++ b/rubocop/cop/gitlab/mark_used_feature_flags.rb
@@ -59,7 +59,7 @@ module RuboCop
def on_casgn(node)
_, lhs_name, rhs = *node
- save_used_feature_flag(rhs.value) if lhs_name == :FEATURE_FLAG
+ save_used_feature_flag(rhs.value) if lhs_name.to_s.end_with?('FEATURE_FLAG')
end
def on_send(node)