Is it possible in sonar to transfer "false positives" between branches?
This is our workflow: we develop in branch 1, we do our sonar checks on this branch, when branch 1 will be released, we merge this into the trunk, then we create branch 2 from the trunk, and we do our sonar checks on branches2.
This "branch 2" is a new sonar project (it can't be the same because we sometimes have 2 branches open at the same time and also 2 sonar projects). But this "branch 2" sonar project has lost all the "false positives" marks.
How can we keep the false positives between 2 branches?
No, this is not possible yet. You can ask for this feature and discuss it on the Sonar user mailing-list.
There is a plugin that can be used for this https://github.com/willemsrb/sonar-issueresolver-plugin (also available in update center)
Basically you export the resolutions from one branch into another one. This can be automated using your CI system since the plugin provides REST api.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With