Hello Folks,
For explanataion on Sonarqube cyclomatic complexity metrics - I found this
link.
I used a Sonarqube 5.6.6 server, with Javascript plugin 2.20 and Java Plugin 4.5.
On testing Java and Javascript plugins I found the following inconsistencies:
- For Java:
- return statements not counted as +1 anymore (this is the non- last return statements of a method)
- catch and throw statements are not counted as +1 anymore
- For Javascript:
- return statments not counted as +!
- throw is not counted as +1
- function expression is not considered as +1
I couldn't find release notes references for the plugins that corresponded to these changes in behaviour of the plugins( I was using Java 3.0 and Javascript 2.8 before).
Kindly update the documentation link for cyclomatic complexity metrics - if it is obsolete.
Thanks,
Anand