Style/Blocks Style/BlockNesting cops enabled
This commit is contained in:
parent
4aa1f0bf3a
commit
99f773a040
2 changed files with 8 additions and 11 deletions
|
|
@ -92,6 +92,14 @@ Style/AlignParameters:
|
|||
Style/AndOr:
|
||||
Enabled: true
|
||||
|
||||
# avoid deep blocks nesting
|
||||
Style/BlockNesting:
|
||||
Max: 4
|
||||
|
||||
# use do instead of {...} in multiline blocks
|
||||
Style/Blocks:
|
||||
Enabled: true
|
||||
|
||||
AllCops:
|
||||
Include:
|
||||
- '**/Rakefile'
|
||||
|
|
|
|||
|
|
@ -5,17 +5,6 @@
|
|||
# Note that changes in the inspected code, or installation of new
|
||||
# versions of RuboCop, may require this file to be generated again.
|
||||
|
||||
|
||||
|
||||
# Offense count: 1
|
||||
Style/BlockNesting:
|
||||
Max: 4
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
Style/Blocks:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue