Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sonarqube 5 - how do I mark false-positive?

Tags:

sonarqube

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.

enter image description here

like image 279
RCross Avatar asked Apr 15 '15 09:04

RCross


People also ask

How do you mark a false positive in SonarQube?

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.

Which is the wrong severity in SonarQube?

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.

How do you stop the problem in SonarQube?

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.


1 Answers

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).

like image 135
RCross Avatar answered Oct 22 '22 08:10

RCross