rubocop files update and auto correction
This commit is contained in:
parent
42e8bb11ea
commit
2a30b076b8
88 changed files with 519 additions and 452 deletions
17
.rubocop.yml
17
.rubocop.yml
|
|
@ -25,8 +25,15 @@ Style/EmptyLinesAroundAccessModifier:
|
|||
Enabled: true
|
||||
|
||||
# Do not insert empty line after class definition and before closing class
|
||||
Style/EmptyLinesAroundBody:
|
||||
Enabled: true
|
||||
|
||||
Style/EmptyLinesAroundBlockBody:
|
||||
EnforcedStyle: no_empty_lines
|
||||
|
||||
Style/EmptyLinesAroundClassBody:
|
||||
EnforcedStyle: no_empty_lines
|
||||
|
||||
Style/EmptyLinesAroundModuleBody:
|
||||
EnforcedStyle: no_empty_lines
|
||||
|
||||
# Use hash literal {} instead of Hash.new
|
||||
Style/EmptyLiteral:
|
||||
|
|
@ -93,12 +100,12 @@ Style/AndOr:
|
|||
Enabled: true
|
||||
|
||||
# avoid deep blocks nesting
|
||||
Style/BlockNesting:
|
||||
Metrics/BlockNesting:
|
||||
Max: 4
|
||||
|
||||
# use do instead of {...} in multiline blocks
|
||||
Style/Blocks:
|
||||
Enabled: true
|
||||
Style/BlockDelimiters:
|
||||
EnforcedStyle: line_count_based
|
||||
|
||||
# avoid redundunt curly braces when it is obvious that hash is used
|
||||
Style/BracesAroundHashParameters:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue