mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
customize some oclint thresholds
This commit is contained in:
parent
d910b7af7d
commit
69e823d612
1 changed files with 12 additions and 0 deletions
12
.oclint
12
.oclint
|
@ -36,6 +36,18 @@ rule-configurations:
|
||||||
- key: NCSS_METHOD
|
- key: NCSS_METHOD
|
||||||
value: 40
|
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:
|
disable-rules:
|
||||||
#
|
#
|
||||||
# A few instances of "useless parentheses" errors are meaningful. Mostly
|
# A few instances of "useless parentheses" errors are meaningful. Mostly
|
||||||
|
|
Loading…
Reference in a new issue