A platform for community discussion. Free, open, simple.
Enable `Style/BlockDelimiters` rule.
Guo Xiang Tan3c22fb6b7034
diff --git a/.rubocop.yml b/.rubocop.ymlindex e28a0876aa1..6fb7ac25de5 100644--- a/.rubocop.yml+++ b/.rubocop.yml@@ -2,11 +2,11 @@ AllCops:TargetRubyVersion: 2.4DisabledByDefault: trueExclude:- - '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@@ -53,7 +57,7 @@ Layout/SpaceAroundOperators:Enabled: trueLayout/SpaceBeforeFirstArg:- Enabled: true+ Enabled: true# Defining a method with parameters needs parentheses.Style/MethodDefParentheses: