Cognitive-Complexity-TS icon indicating copy to clipboard operation
Cognitive-Complexity-TS copied to clipboard

Cognitive Complexity code metric for TypeScript (https://www.sonarsource.com/docs/CognitiveComplexity.pdf)

Results 2 Cognitive-Complexity-TS issues
Sort by recently updated
recently updated
newest added

Take this example: ```ts function stuff() { if (val > someConstant && (condition2 || condition3) && condition4 && !condition5 || val < someOtherConstant) { } } ``` This is calculated...

I just installed it and tried to run it, but it gives me an error: ``` $ npx ccts src/ C:\Users\Marco\AppData\Roaming\npm\node_modules\cognitive-complexity-ts\build\src\cognitive-complexity\node-naming.js:216 throw new node_util_1.UnreachableNodeState(node, "Module has no module/namespace keyword."); ^...