UNPKG
tslint-config-alloy
Version:
latest (0.2.1)
0.2.1
0.2.0
0.1.0
AlloyTeam TSLint 规则
github.com/AlloyTeam/tslint-config-alloy
AlloyTeam/tslint-config-alloy
tslint-config-alloy
/
test
/
cyclomatic-complexity
/
tslint.json
10 lines
(9 loc)
•
255 B
JSON
View Raw
1
2
3
4
5
6
7
8
9
10
{
"rules"
:
{
"cyclomatic-complexity"
:
[
true
,
20
]
}
,
"meta"
:
{
"category"
:
"maintainability"
,
"description"
:
"禁止函数的循环复杂度超过 20,详见 https://en.wikipedia.org/wiki/Cyclomatic_complexity"
}
}