diff --git a/share/linters/.rubocop.yml b/share/linters/.rubocop.yml index dc5d0b073c..e61571053d 100644 --- a/share/linters/.rubocop.yml +++ b/share/linters/.rubocop.yml @@ -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 ####