diff options
Diffstat (limited to '.rubocop.yml')
-rw-r--r-- | .rubocop.yml | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index dd8db6af3a..62fb263c9e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -4,24 +4,40 @@ AllCops: # Two spaces, no tabs (for indentation). Style/IndentationWidth: - enabled: true + Enabled: true # No trailing whitespace. Style/TrailingWhitespace: - enabled: true + Enabled: true # Blank lines should not have any spaces. Style/TrailingBlankLines: - enabled: true + Enabled: true # Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }. Style/HashSyntax: - enabled: true + Enabled: true # Prefer &&/|| over and/or. Style/AndOr: - enabled: true + Enabled: true # Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg. Lint/RequireParentheses: - enabled: true + Enabled: true + +Style/BracesAroundHashParameters: + Enabled: true + +Style/IndentationConsistency: + Enabled: true + EnforcedStyle: rails + +Style/EmptyLinesAroundClassBody: + Enabled: true + +Style/EmptyLinesAroundModuleBody: + Enabled: true + +Lint/EndAlignment: + AlignWith: variable |