From 69e823d612d4c2d8a32a27a71c606e88eba0096c Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Wed, 14 Jun 2017 22:24:21 -0700 Subject: [PATCH] customize some oclint thresholds --- .oclint | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.oclint b/.oclint index f0b2482e4..7b4784e42 100644 --- a/.oclint +++ b/.oclint @@ -36,6 +36,18 @@ rule-configurations: - key: NCSS_METHOD value: 40 + # We're willing to allow slighly more linearly independent paths through a + # function. Most of our code has a lot of `switch` blocks or consecutive + # `if` tests that are straightforward to interpret but which increase this + # metric. Default is 10. + - key: CYCLOMATIC_COMPLEXITY + value: 14 + + # We're willing to allow slighly more execution paths through a function. + # Default is 300. + - key: HighNPathComplexity + value: 300 + disable-rules: # # A few instances of "useless parentheses" errors are meaningful. Mostly