I've recently installed SonarQube 5.0.1, but I can't find where to mark issues as false-positive. In the drop-down box where this option used to be, the only option is "Link to JIRA", and I'm signed in as admin.
Is this feature now provided as part of an optional plugin?
EDIT: I have added a screenshot of exactly what I see in the UI.
False-Positive and Won't FixYou can mark individual issues False Positive or Won't Fix through the issues interface. If you're using PR analysis provided by the Developer Edition, issues marked False Positive or Won't Fix will retain that status after merge. This is the preferred approach.
In SonarQube context, we are using the types and severity provided by SonarQube, it is not possible to set any severity you may want. So despite the fact that scapegoat refers to it as an “error”, I think it makes sense to set it as a minor bug.
Using //NOSONAR The //NOSONAR tag at the end of the line suppresses all issues that might be raised on it. This approach works for most languages supported by SonarQube. We're also allowed to put some additional comments after NOSONAR explaining why we have disabled the check.
I have found the answer here: False Positive option don't appear on projects
The issue is that although the admin LDAP group I belong to was granted "Administer System" rights in Global Permissions, it also needs to be added excplicitly to Project Permissions (either per project, or to the default template).
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