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>2022-12-03 18:07:15 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-03 18:07:15 +0300
commitfdd5c2a476dade1dd0874e37ab0c0b9ff88381ab (patch)
tree4abb334a7f0fab9698e20e2e6e672abc66c37113 /rubocop/cop/gitlab/feature_available_usage.rb
parenta3759fc2e1f8aa1493840ab0d4ebd4a2e5f495aa (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'rubocop/cop/gitlab/feature_available_usage.rb')
-rw-r--r--rubocop/cop/gitlab/feature_available_usage.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/rubocop/cop/gitlab/feature_available_usage.rb b/rubocop/cop/gitlab/feature_available_usage.rb
index 16f23bb06c4..fcf4992a19d 100644
--- a/rubocop/cop/gitlab/feature_available_usage.rb
+++ b/rubocop/cop/gitlab/feature_available_usage.rb
@@ -39,7 +39,7 @@ module RuboCop
return if feature_name(node).nil?
return if ALL_FEATURES.include?(feature_name(node)) && args_count(node) == 2
- if ALL_FEATURES.exclude?(feature_name(node))
+ if !ALL_FEATURES.include?(feature_name(node))
add_offense(node, message: licensed_feature_message(node))
elsif args_count(node) < 2
add_offense(node, message: NOT_ENOUGH_ARGS_MSG)