mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 06:19:17 +08:00
DEV: Add RedundantReturn style check to Rubocop
This commit is contained in:
parent
6c16d5762c
commit
be15abcf7f
17
.rubocop.yml
17
.rubocop.yml
|
@ -2,12 +2,12 @@ AllCops:
|
|||
TargetRubyVersion: 2.4
|
||||
DisabledByDefault: true
|
||||
Exclude:
|
||||
- 'db/schema.rb'
|
||||
- 'bundle/**/*'
|
||||
- 'vendor/**/*'
|
||||
- 'node_modules/**/*'
|
||||
- 'public/**/*'
|
||||
- 'plugins/**/gems/**/*'
|
||||
- "db/schema.rb"
|
||||
- "bundle/**/*"
|
||||
- "vendor/**/*"
|
||||
- "node_modules/**/*"
|
||||
- "public/**/*"
|
||||
- "plugins/**/gems/**/*"
|
||||
|
||||
# Prefer &&/|| over and/or.
|
||||
Style/AndOr:
|
||||
|
@ -57,7 +57,7 @@ Layout/SpaceAroundOperators:
|
|||
Enabled: true
|
||||
|
||||
Layout/SpaceBeforeFirstArg:
|
||||
Enabled: true
|
||||
Enabled: true
|
||||
|
||||
# Defining a method with parameters needs parentheses.
|
||||
Style/MethodDefParentheses:
|
||||
|
@ -125,3 +125,6 @@ Style/SingleLineMethods:
|
|||
Style/Semicolon:
|
||||
Enabled: true
|
||||
AllowAsExpressionSeparator: true
|
||||
|
||||
Style/RedundantReturn:
|
||||
Enabled: true
|
||||
|
|
Loading…
Reference in New Issue
Block a user