Cognitive complexity is 0 which does not make sense
Hey, I am working on an uni project and one of the requirements for our code is to have a cognitive complexity lower than 50, which assumes good readability of the code. Sonar Cloud gives us a cognitive complexity of 0. However, we have some if clauses, ternary operators and for loops, which should increase the complexity. Has anyone already run into this issue? Thanks in advance
If so, that implies that your code isn’t being properly recognized / parsed / analyzed.
Can you share your analysis log?
The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.