SonarQA
SonarQA

Reputation: 11

Did the complexity metric change?

Are there any changes in metric complexity the way it measures in different versions of SonarQube for PL/SQL code?

The number of complexities on version 5.6.6 is much lower than that in version 4.5.4, even though I did not change the code.

Upvotes: 1

Views: 83

Answers (1)

G. Ann - SonarSource Team
G. Ann - SonarSource Team

Reputation: 22824

This is unrelated to the version of SonarQube, but instead to the version of SonarPLSQL. Version 2.9 includes corrections to the calculation of Cyclomatic Complexity. Previously it was a mix between Cyclomatic Complexity and Essential Complexity (so extra points were added for early returns) but now it is purely Cyclomatic Complexity, so a drop in values is expected.

SonarPLSQL 2.9 release notes

Upvotes: 1

Related Questions