Enable `Style/BlockDelimiters` rule.
This commit is contained in:
parent
ad665b901a
commit
3c22fb6b70
14
.rubocop.yml
14
.rubocop.yml
|
@ -2,11 +2,11 @@ AllCops:
|
|||
TargetRubyVersion: 2.4
|
||||
DisabledByDefault: true
|
||||
Exclude:
|
||||
- 'db/schema.rb'
|
||||
- 'bundle/**/*'
|
||||
- 'vendor/**/*'
|
||||
- 'node_modules/**/*'
|
||||
- 'public/**/*'
|
||||
- "db/schema.rb"
|
||||
- "bundle/**/*"
|
||||
- "vendor/**/*"
|
||||
- "node_modules/**/*"
|
||||
- "public/**/*"
|
||||
|
||||
# Prefer &&/|| over and/or.
|
||||
Style/AndOr:
|
||||
|
@ -17,6 +17,10 @@ Style/AndOr:
|
|||
Style/BracesAroundHashParameters:
|
||||
Enabled: true
|
||||
|
||||
# Check for uses of braces or do/end around single line or multi-line blocks.
|
||||
Style/BlockDelimiters:
|
||||
Enabled: true
|
||||
|
||||
# Align `when` with `case`.
|
||||
Layout/CaseIndentation:
|
||||
Enabled: true
|
||||
|
|
Loading…
Reference in New Issue