Cognitive complexity
80 %
Correct
4/5
20 %
Warning
1/5
(threshold : 10)
0 %
Error
0/5
(threshold : 20)
Cyclomatic complexity
80 %
Correct
4/5
20 %
Warning
1/5
(threshold : 5)
0 %
Error
0/5
(threshold : 10)
Subfolders of src/json-ast-to-reports/models/code
Folders | Number of files | Number of methods | Cognitive complexity of methods | Cyclomatic complexity of methods | ||||
---|---|---|---|---|---|---|---|---|
Correct | Warning | Error | Correct | Warning | Error | |||
../ | ||||||||
src/json-ast-to-reports/models/code | 2 | 5 | 4 | 1 | 0 | 4 | 1 | 0 |
Files of src/json-ast-to-reports/models/code
File | Method | Cognitive complexity | Cyclomatic complexity |
---|---|---|---|
code-line.model.ts | setDepthAndNestingCpx | 13.3 | 9 |
code.model.ts | setTextWithLines | 4.4 | 1 |
code.model.ts | getLine | 3.3 | 1 |
code-line.model.ts | addComment | 2.9 | 1 |
code.model.ts | setLinesDepthAndNestingCpx | 2.8 | 2 |
Methods of src/json-ast-to-reports/models/code folder and its subfolders
(ordered by decreasing cognitive complexity)
File | Method | Cognitive complexity | Cyclomatic complexity |
---|---|---|---|
code-line.model.ts | setDepthAndNestingCpx | 13.3 | 9 |
code.model.ts | setTextWithLines | 4.4 | 1 |
code.model.ts | getLine | 3.3 | 1 |
code-line.model.ts | addComment | 2.9 | 1 |
code.model.ts | setLinesDepthAndNestingCpx | 2.8 | 2 |