mircealungu
mircealungu

Reputation: 6981

SonarQube not detecting removed issues

In the documentation of the SonarQube issue lifecycle (https://docs.sonarqube.org/display/SONAR/Issue+Lifecycle) one of the two possible resolutions is:

Even after analyzing dozens of commits of an open-source project, in which files were clearly renamed and moved, the Removed count is still zero.

Does anybody understand why this is? Shouldn't the counter increase?

Upvotes: 0

Views: 338

Answers (1)

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

Reputation: 22824

SonarQube detects file move, so when E.G. A.java is moved to B.java, its issues will move with it.

Removed, as described in the docs, is used when the rule no longer applies. Try removing a high issue count rule from your profile and reanalyzing; you should see the Removed number increase.

Upvotes: 2

Related Questions