mirror of
https://github.com/discourse/discourse.git
synced 2025-04-01 20:32:04 +08:00
Revert "Enable Style/BlockDelimiters
rule."
This reverts commit 3c22fb6b7034df7f9bd5adf0b07c781d694fcbcf.
This commit is contained in:
parent
eecd1a7d8c
commit
df2d02a7bc
16
.rubocop.yml
16
.rubocop.yml
@ -2,11 +2,11 @@ AllCops:
|
|||||||
TargetRubyVersion: 2.4
|
TargetRubyVersion: 2.4
|
||||||
DisabledByDefault: true
|
DisabledByDefault: true
|
||||||
Exclude:
|
Exclude:
|
||||||
- "db/schema.rb"
|
- 'db/schema.rb'
|
||||||
- "bundle/**/*"
|
- 'bundle/**/*'
|
||||||
- "vendor/**/*"
|
- 'vendor/**/*'
|
||||||
- "node_modules/**/*"
|
- 'node_modules/**/*'
|
||||||
- "public/**/*"
|
- 'public/**/*'
|
||||||
|
|
||||||
# Prefer &&/|| over and/or.
|
# Prefer &&/|| over and/or.
|
||||||
Style/AndOr:
|
Style/AndOr:
|
||||||
@ -17,10 +17,6 @@ Style/AndOr:
|
|||||||
Style/BracesAroundHashParameters:
|
Style/BracesAroundHashParameters:
|
||||||
Enabled: true
|
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`.
|
# Align `when` with `case`.
|
||||||
Layout/CaseIndentation:
|
Layout/CaseIndentation:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
@ -57,7 +53,7 @@ Layout/SpaceAroundOperators:
|
|||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Layout/SpaceBeforeFirstArg:
|
Layout/SpaceBeforeFirstArg:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
# Defining a method with parameters needs parentheses.
|
# Defining a method with parameters needs parentheses.
|
||||||
Style/MethodDefParentheses:
|
Style/MethodDefParentheses:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user