Add a new rule to rubocop

This commit is contained in:
Rafael Mendonça França 2016-07-20 00:35:11 -03:00
parent d8bc0964d2
commit 0f96d01758
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
1 changed files with 13 additions and 10 deletions

View File

@ -4,37 +4,40 @@ AllCops:
# Two spaces, no tabs (for indentation). # Two spaces, no tabs (for indentation).
Style/IndentationWidth: Style/IndentationWidth:
enabled: true Enabled: true
# No trailing whitespace. # No trailing whitespace.
Style/TrailingWhitespace: Style/TrailingWhitespace:
enabled: true Enabled: true
# Blank lines should not have any spaces. # Blank lines should not have any spaces.
Style/TrailingBlankLines: Style/TrailingBlankLines:
enabled: true Enabled: true
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }. # Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
Style/HashSyntax: Style/HashSyntax:
enabled: true Enabled: true
# Prefer &&/|| over and/or. # Prefer &&/|| over and/or.
Style/AndOr: Style/AndOr:
enabled: true Enabled: true
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg. # Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
Lint/RequireParentheses: Lint/RequireParentheses:
enabled: true Enabled: true
Style/BracesAroundHashParameters: Style/BracesAroundHashParameters:
enabled: true Enabled: true
Style/IndentationConsistency: Style/IndentationConsistency:
enabled: true Enabled: true
EnforcedStyle: rails EnforcedStyle: rails
Style/EmptyLinesAroundClassBody: Style/EmptyLinesAroundClassBody:
enabled: true Enabled: true
Style/EmptyLinesAroundModuleBody: Style/EmptyLinesAroundModuleBody:
enabled: true Enabled: true
Lint/EndAlignment:
AlignWith: variable