Cognitive complexity
70 %
Correct
7/10
20 %
Warning
2/10
(threshold : 10)
10 %
Error
1/10
(threshold : 20)
Cyclomatic complexity
90 %
Correct
9/10
10 %
Warning
1/10
(threshold : 5)
0 %
Error
0/10
(threshold : 10)
Subfolders of src/core/models
Folders | Number of files | Number of methods | Cognitive complexity of methods | Cyclomatic complexity of methods | ||||
---|---|---|---|---|---|---|---|---|
Correct | Warning | Error | Correct | Warning | Error | |||
../ | ||||||||
src/core/models | 10 | 10 | 7 | 2 | 1 | 9 | 1 | 0 |
src/core/models/cpx-factor | 9 | 2 | 2 | 0 | 0 | 2 | 0 | 0 |
Files of src/core/models
File | Method | Cognitive complexity | Cyclomatic complexity |
---|---|---|---|
options.model.ts | pathTransformator | 40.7 | 6 |
options.model.ts | setOptionsFromConfig | 17.3 | 3 |
options.model.ts | filterIgnorePathsForDotSlash | 10.9 | 1 |
options.model.ts | setOptions | 6.9 | 2 |
options.model.ts | handleStarPath | 6.7 | 2 |
options.model.ts | isIgnored | 5 | 3 |
options.model.ts | getThresholds | 3.6 | 1 |
options.model.ts | setOptionsFromCommandLine | 3.5 | 1 |
Methods of src/core/models folder and its subfolders
(ordered by decreasing cognitive complexity)
File | Method | Cognitive complexity | Cyclomatic complexity |
---|---|---|---|
options.model.ts | pathTransformator | 40.7 | 6 |
options.model.ts | setOptionsFromConfig | 17.3 | 3 |
options.model.ts | filterIgnorePathsForDotSlash | 10.9 | 1 |
options.model.ts | setOptions | 6.9 | 2 |
options.model.ts | handleStarPath | 6.7 | 2 |
cpx-factors.model.ts | totalByFactorCategory | 5.1 | 2 |
options.model.ts | isIgnored | 5 | 3 |
options.model.ts | getThresholds | 3.6 | 1 |
options.model.ts | setOptionsFromCommandLine | 3.5 | 1 |
cpx-factors.model.ts | add | 2 | 1 |