Skip to content

Commit

Permalink
Merge pull request #11 from pixta-dev/prefer-has-prefix
Browse files Browse the repository at this point in the history
Prefer `has_` as prefix of predicate methods
  • Loading branch information
yasaichi authored Jun 9, 2017
2 parents bbdd862 + e55077c commit cf10720
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cf10720

Please sign in to comment.