summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-08-29 16:23:02 +0000
committerRobert Speicher <robert@gitlab.com>2017-08-29 16:23:02 +0000
commit172cb70d4c427163895ec1792bd955f85748842d (patch)
tree3f72e17f3beeac3547cbbbf28bfd0d1cda272e33 /.rubocop.yml
parent8e60636984d9f559f7e3cceee04be599b0df583f (diff)
parent380dff622f83e199a08f37692395bfe3a3e5b437 (diff)
downloadgitlab-ce-172cb70d4c427163895ec1792bd955f85748842d.tar.gz
Merge branch '35793_fix_predicate_names' into 'master'
Remove `is_` prefix from predicate method names See merge request !13810
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index abdda90a33e..e96f4273c6a 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -606,6 +606,18 @@ Style/YodaCondition:
Style/Proc:
Enabled: true
+# Use `spam?` instead of `is_spam?`
+# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
+# NamePrefix: is_, has_, have_
+# NamePrefixBlacklist: is_, has_, have_
+# NameWhitelist: is_a?
+Style/PredicateName:
+ Enabled: true
+ NamePrefixBlacklist: is_
+ Exclude:
+ - 'spec/**/*'
+ - 'features/**/*'
+
# Metrics #####################################################################
# A calculated magnitude based on number of assignments,