warning | layout | title |
---|---|---|
This is a dynamically generated file. Do not edit manually. |
default |
code-complexity | Solhint |
Function has cyclomatic complexity "current" but allowed no more than maxcompl.
This rule accepts an array of options:
Index | Description | Default Value |
---|---|---|
0 | Rule severity. Must be one of "error", "warn", "off". | warn |
1 | Maximum allowed cyclomatic complexity | 7 |
{
"rules": {
"code-complexity": ["warn",7]
}
}
if (a > b) {
if (b > c) {
if (c > d) {
}
}
}
for (i = 0; i < b; i += 1) { }
do { d++; } while (b > c);
while (d > e) { }
if (a > b) {
if (b > c) {
if (c > d) {
if (d > e) {
} else {
}
}
}
}
for (i = 0; i < b; i += 1) { }
do { d++; } while (b > c);
while (d > e) { }
This rule was introduced in Solhint 1.1.5