rubocop.yml: re-add Homebrew metrics maximums.
This commit is contained in:
parent
5a8d2352c2
commit
47bfad64b0
@ -25,6 +25,10 @@ Lint/NestedMethodDefinition:
|
|||||||
Lint/ParenthesesAsGroupedExpression:
|
Lint/ParenthesesAsGroupedExpression:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
# TODO: try to bring down all metrics maximums
|
||||||
|
Metrics/AbcSize:
|
||||||
|
Max: 250
|
||||||
|
|
||||||
Metrics/BlockLength:
|
Metrics/BlockLength:
|
||||||
Max: 1250
|
Max: 1250
|
||||||
|
|
||||||
@ -34,12 +38,24 @@ Metrics/BlockNesting:
|
|||||||
Metrics/ClassLength:
|
Metrics/ClassLength:
|
||||||
Max: 1226
|
Max: 1226
|
||||||
|
|
||||||
|
Metrics/CyclomaticComplexity:
|
||||||
|
Max: 75
|
||||||
|
|
||||||
Metrics/LineLength:
|
Metrics/LineLength:
|
||||||
|
# 124 is the goal as GitHub diff UI wraps beyond that
|
||||||
Max: 244
|
Max: 244
|
||||||
|
# ignore manpage comments
|
||||||
|
IgnoredPatterns: ['#: ']
|
||||||
|
|
||||||
Metrics/MethodLength:
|
Metrics/MethodLength:
|
||||||
Max: 195
|
Max: 195
|
||||||
|
|
||||||
|
Metrics/ModuleLength:
|
||||||
|
Max: 222
|
||||||
|
|
||||||
|
Metrics/PerceivedComplexity:
|
||||||
|
Max: 100
|
||||||
|
|
||||||
# we won't change backward compatible method names
|
# we won't change backward compatible method names
|
||||||
Naming/MethodName:
|
Naming/MethodName:
|
||||||
Exclude:
|
Exclude:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user