Andy
Andy

Reputation: 1994

How inform SonarQube about a package rename?

After I renamed a Java package the SonarQube Preview shows me about +174 issues. About 150 of which already have been flagged as false-positives, but have been in another package back then.

(How) can I inform SonarQube about that package rename so that already flagged issues are recognized and do not pop-up again?

P.S.: I'm using SonarQube 5.1

Upvotes: 2

Views: 877

Answers (2)

I do confirm that this is a known limitation, see https://jira.sonarsource.com/browse/SONAR-3321

Upvotes: 3

agabrys
agabrys

Reputation: 9116

For SonarQube all rename and move actions are equivalent to the creation of new sources. Unfortunately you cannot associate these new sources with the old, so you need to mark those issues as False-Positives again.


SonarQube supports rename only for projects (with all components).

All components:

Project -> Settings -> Update Key

Single component:

Project -> Components -> (choose component) -> Settings -> Update Key

See SonarQube wiki: Updating Project Key

Upvotes: 2

Related Questions