From 380dff622f83e199a08f37692395bfe3a3e5b437 Mon Sep 17 00:00:00 2001 From: Maxim Rydkin Date: Tue, 29 Aug 2017 11:51:15 +0300 Subject: exclude spec/ and features/ from `Style/PredicateName` cop --- .rubocop.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to '.rubocop.yml') 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, -- cgit v1.2.3