Cognitive complexity
80 %
Correct
16/20
20 %
Warning
4/20
(threshold : 10)
0 %
Error
0/20
(threshold : 20)
Cyclomatic complexity
100 %
Correct
20/20
0 %
Warning
0/20
(threshold : 5)
0 %
Error
0/20
(threshold : 10)
Methods of file.service.ts
getFilename | Complexity Index | 2.5 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
getAllFiles | Complexity Index | 17.7 | Cyclomatic complexity | 3 |
---|---|---|---|---|
|
getArrayOfPathsWithDotSlash | Complexity Index | 7.5 | Cyclomatic complexity | 3 |
---|---|---|---|---|
|
getPathWithDotSlash | Complexity Index | 8.9 | Cyclomatic complexity | 5 |
---|---|---|---|---|
|
getPathWithSlash | Complexity Index | 4.3 | Cyclomatic complexity | 2 |
---|---|---|---|---|
|
getRouteToRoot | Complexity Index | 14 | Cyclomatic complexity | 4 |
---|---|---|---|---|
|
getFileExtension | Complexity Index | 4.2 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
getFilenameWithoutExtension | Complexity Index | 8.9 | Cyclomatic complexity | 2 |
---|---|---|---|---|
|
getLanguageExtensions | Complexity Index | 3.8 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
createRelativeDir | Complexity Index | 7 | Cyclomatic complexity | 2 |
---|---|---|---|---|
|
createOutDir | Complexity Index | 6.6 | Cyclomatic complexity | 2 |
---|---|---|---|---|
|
deleteFile | Complexity Index | 4.1 | Cyclomatic complexity | 2 |
---|---|---|---|---|
|
copyFile | Complexity Index | 4.2 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
platformPath | Complexity Index | 8.3 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
windowsPath | Complexity Index | 5.8 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
createFile | Complexity Index | 2.2 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
getOS | Complexity Index | 16.1 | Cyclomatic complexity | 5 |
---|---|---|---|---|
|
antislash | Complexity Index | 3 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
constructLink | Complexity Index | 4.3 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
deleteLastSlash | Complexity Index | 11.5 | Cyclomatic complexity | 4 |
---|---|---|---|---|
|