aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2017-10-27 09:34:38 +0100
committerMike McQuaid2017-10-27 14:20:37 +0100
commit47bfad64b05346fc6ba2e0c57cc6c1e2318c109c (patch)
tree96313a1cac5522beeb509a2ac40a7ba4c5b6bbb0 /Library/Homebrew
parent5a8d2352c2012504544cda53eab55eec324f4a82 (diff)
downloadbrew-47bfad64b05346fc6ba2e0c57cc6c1e2318c109c.tar.bz2
rubocop.yml: re-add Homebrew metrics maximums.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/.rubocop.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/Library/Homebrew/.rubocop.yml b/Library/Homebrew/.rubocop.yml
index 0e1fb2d04..354867738 100644
--- a/Library/Homebrew/.rubocop.yml
+++ b/Library/Homebrew/.rubocop.yml
@@ -25,6 +25,10 @@ Lint/NestedMethodDefinition:
Lint/ParenthesesAsGroupedExpression:
Enabled: true
+# TODO: try to bring down all metrics maximums
+Metrics/AbcSize:
+ Max: 250
+
Metrics/BlockLength:
Max: 1250
@@ -34,12 +38,24 @@ Metrics/BlockNesting:
Metrics/ClassLength:
Max: 1226
+Metrics/CyclomaticComplexity:
+ Max: 75
+
Metrics/LineLength:
+ # 124 is the goal as GitHub diff UI wraps beyond that
Max: 244
+ # ignore manpage comments
+ IgnoredPatterns: ['#: ']
Metrics/MethodLength:
Max: 195
+Metrics/ModuleLength:
+ Max: 222
+
+Metrics/PerceivedComplexity:
+ Max: 100
+
# we won't change backward compatible method names
Naming/MethodName:
Exclude: