You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Checks cyclomatic complexity against a specified limit. It is a quantitative measure of the number of linearly independent paths through a program's source code",
14
-
rationale: 'Cyclomatic complexity over some threshold indicates that the logic should be moved outside the template.',
12
+
optionExamples: ['true','[true, 6]'],
15
13
options: {
16
-
type: 'array',
17
14
items: {
18
15
type: 'string'
19
16
},
17
+
maxLength: 2,
20
18
minLength: 0,
21
-
maxLength: 2
19
+
type: 'array'
22
20
},
23
-
optionExamples: ['true','[true, 6]'],
24
21
optionsDescription: 'Determine the maximum number of the cyclomatic complexity.',
22
+
rationale: 'Cyclomatic complexity over some threshold indicates that the logic should be moved outside the template.',
23
+
ruleName: 'template-cyclomatic-complexity',
24
+
type: 'functionality',
25
25
typescriptOnly: true
26
26
};
27
27
28
-
staticCOMPLEXITY_FAILURE_STRING="The cyclomatic complexity exceeded the defined limit (cost '%s'). Your template should be refactored.";
29
-
30
-
staticCOMPLEXITY_MAX=5;
28
+
staticreadonlyFAILURE_STRING="The cyclomatic complexity exceeded the defined limit (cost '%s'). Your template should be refactored.";
0 commit comments