diff options
author | Maxim Rydkin <maks.rydkin@gmail.com> | 2017-08-29 11:51:15 +0300 |
---|---|---|
committer | Maxim Rydkin <maks.rydkin@gmail.com> | 2017-08-29 11:51:15 +0300 |
commit | 380dff622f83e199a08f37692395bfe3a3e5b437 (patch) | |
tree | 0b71d76a9863b22ea10efc325e0ed83e889775fe /.rubocop.yml | |
parent | e637f802431bc3d9b289299c1d5d4d2a6127cf6b (diff) | |
download | gitlab-ce-380dff622f83e199a08f37692395bfe3a3e5b437.tar.gz |
exclude spec/ and features/ from `Style/PredicateName` cop
Diffstat (limited to '.rubocop.yml')
-rw-r--r-- | .rubocop.yml | 12 |
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, |