mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 11:44:02 +00:00
Merge pull request #768 from hennevogel/rubocop
Update rubocop todo file
This commit is contained in:
commit
e2fb83146a
5 changed files with 589 additions and 140 deletions
12
.rubocop.yml
12
.rubocop.yml
|
|
@ -1,3 +1,5 @@
|
|||
Rails:
|
||||
Enabled: true
|
||||
inherit_from: .rubocop_todo.yml
|
||||
|
||||
Style/HashSyntax:
|
||||
|
|
@ -24,10 +26,6 @@ Style/EmptyLines:
|
|||
Style/EmptyLinesAroundAccessModifier:
|
||||
Enabled: true
|
||||
|
||||
# Do not insert empty line after class definition and before closing class
|
||||
Style/EmptyLinesAroundBody:
|
||||
Enabled: true
|
||||
|
||||
# Use hash literal {} instead of Hash.new
|
||||
Style/EmptyLiteral:
|
||||
Enabled: true
|
||||
|
|
@ -93,13 +91,9 @@ 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
|
||||
|
||||
# avoid redundunt curly braces when it is obvious that hash is used
|
||||
Style/BracesAroundHashParameters:
|
||||
Enabled: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue