From e55077ca3f0d0a008be0ecfded670bc21fd8db80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Taka=20/=20=E9=9B=80=E5=B7=BD=EF=BC=88=E3=81=98=E3=82=83?= =?UTF-8?q?=E3=81=8F=E3=81=9D=E3=82=93=EF=BC=89?= Date: Fri, 9 Jun 2017 16:45:18 +0900 Subject: [PATCH] Prefer `has_` as prefix of predicate methods --- rubocop.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rubocop.yml b/rubocop.yml index db92b77..d1e5cca 100644 --- a/rubocop.yml +++ b/rubocop.yml @@ -76,3 +76,13 @@ Style/PercentLiteralDelimiters: '%I': '()' '%w': '()' '%W': '()' + +# Allow `has_` as prefix of predicate methods +Style/PredicateName: + NamePrefixBlacklist: + - is_ + - have_ + +# Prefer `has_?` style for Hash methods +Style/PreferredHashMethods: + EnforcedStyle: verbose