mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-01 05:47:01 +03:00
Changes for rubocop yaml
(cherry picked from commit 122a77c201075b2da7e30d170b0e8e923abdec22)
This commit is contained in:
parent
7099e4408a
commit
caa8ed3a81
@ -52,7 +52,7 @@ Style/SignalException:
|
||||
EnforcedStyle: only_raise
|
||||
|
||||
Style/BracesAroundHashParameters:
|
||||
EnforcedStyle: braces
|
||||
EnforcedStyle: context_dependent
|
||||
|
||||
Style/ConditionalAssignment:
|
||||
EnforcedStyle: assign_inside_condition
|
||||
@ -116,6 +116,9 @@ Style/RescueModifier:
|
||||
Style/MutableConstant:
|
||||
Enabled: false
|
||||
|
||||
Style/SymbolProc:
|
||||
Enabled: false
|
||||
|
||||
######
|
||||
# LINT
|
||||
######
|
||||
@ -156,6 +159,9 @@ Lint/ShadowingOuterLocalVariable:
|
||||
# METRICS
|
||||
########
|
||||
|
||||
Metrics/BlockLength:
|
||||
Enabled: False
|
||||
|
||||
# Line Length config:
|
||||
Metrics/LineLength:
|
||||
Max: 80
|
||||
@ -165,11 +171,30 @@ Metrics/ParameterLists:
|
||||
Max: 5
|
||||
CountKeywordArgs: true
|
||||
|
||||
Metrics/CyclomaticComplexity:
|
||||
Enabled: false
|
||||
|
||||
Metrics/PerceivedComplexity:
|
||||
Enabled: false
|
||||
|
||||
# Block nesting is 4
|
||||
Metrics/BlockNesting:
|
||||
Max: 5
|
||||
|
||||
Metrics/AbcSize:
|
||||
Enabled: false
|
||||
|
||||
# Disable method length
|
||||
Metrics/MethodLength:
|
||||
Enabled: false
|
||||
|
||||
# uppercase constant mandatory
|
||||
Naming/ConstantName:
|
||||
Enabled: true
|
||||
|
||||
Naming/HeredocDelimiterNaming:
|
||||
Enabled: false
|
||||
|
||||
###
|
||||
# Bundler
|
||||
####
|
||||
|
Loading…
x
Reference in New Issue
Block a user