diff options
Diffstat (limited to '.rubocop.yml')
-rw-r--r-- | .rubocop.yml | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index 6ab1146b40..8f619b7956 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,7 +1,7 @@ AllCops: TargetRubyVersion: 2.3 # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop - # to ignore them, so only the ones explictily set in this file are enabled. + # to ignore them, so only the ones explicitly set in this file are enabled. DisabledByDefault: true Exclude: - '**/templates/**/*' @@ -20,6 +20,10 @@ Style/BracesAroundHashParameters: Style/CaseIndentation: Enabled: true +# No extra empty lines. +Style/EmptyLines: + Enabled: true + # In a regular class definition, no empty lines around the body. Style/EmptyLinesAroundClassBody: Enabled: true @@ -46,6 +50,18 @@ Style/IndentationWidth: Style/MethodDefParentheses: Enabled: true +# Use `foo {}` not `foo{}`. +Style/SpaceBeforeBlockBraces: + Enabled: true + +# Use `foo { bar }` not `foo {bar}`. +Style/SpaceInsideBlockBraces: + Enabled: true + +# Use `{ a: 1 }` not `{a:1}`. +Style/SpaceInsideHashLiteralBraces: + Enabled: true + # Check quotes usage according to lint rule below. Style/StringLiterals: Enabled: true |