Enable Style/ZeroLengthPredicate Rubocop cop

This cop checks for numeric comparisons that can be replaced by a predicate method. It supports autocorrection, so all the offenses where automatically solved.

Closes #1416
This commit is contained in:
Chaitanya 2017-03-28 14:42:21 +05:30
parent 8a19c52698
commit 782937b1d9
3 changed files with 5 additions and 6 deletions

View file

@ -92,6 +92,10 @@ Style/TrailingBlankLines:
Style/TrailingWhitespace:
Enabled: true
#This cop checks for numeric comparisons that can be replaced by a predicate method.
Style/ZeroLengthPredicate:
Enabled: true
#################### Metrics ###############################
# Avoid deep blocks nesting