Merge pull request #1421 from sunny-b/master
Enable Style/NegatedIf Cop and Fix Alphabetical Ordering
This commit is contained in:
commit
d1bf19867c
3 changed files with 9 additions and 19 deletions
12
.rubocop.yml
12
.rubocop.yml
|
|
@ -63,15 +63,15 @@ Style/EmptyLiteral:
|
|||
Style/For:
|
||||
Enabled: true
|
||||
|
||||
# Checks that operators have space around them, except for ** which should not have surrounding space.
|
||||
Style/SpaceAroundOperators:
|
||||
Enabled: true
|
||||
|
||||
# Use the new Ruby 1.9 hash syntax
|
||||
Style/HashSyntax:
|
||||
Enabled: true
|
||||
EnforcedStyle: ruby19
|
||||
|
||||
# Checks for uses of if with negated condition. Use unless instead
|
||||
Style/NegatedIf:
|
||||
Enabled: true
|
||||
|
||||
# Do not compare with nil. Use .nil? instead
|
||||
Style/NilComparison:
|
||||
Enabled: true
|
||||
|
|
@ -80,6 +80,10 @@ Style/NilComparison:
|
|||
Style/RedundantSelf:
|
||||
Enabled: true
|
||||
|
||||
# Checks that operators have space around them, except for ** which should not have surrounding space.
|
||||
Style/SpaceAroundOperators:
|
||||
Enabled: true
|
||||
|
||||
# Use single quotes unless there's string interpolation
|
||||
Style/StringLiterals:
|
||||
Enabled: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue