I want to ignore duplicate issues, how can I delete them?

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube,8)
  • what are you trying to achieve
    I want to ignore the problem detected as a duplicate issue in Sonarcube.

Please tell me how to delete duplicate detected issues

  • what have you tried so far to achieve this

Hi,

Welcome to the community!

Are you saying you want to delete/ignore issues about duplications in code? If so, you can simply mark them Won’t Fix via the Issues UI. Or you can remove that rule from your profile.

If you’re instead talking about other types of issues that are raised twice, some detail on the issues themselves will be needed.

 
Thx,
Ann

Thank you for answer.
I want to do not modify it through the UI, but I can’t see that part.
Where is that UI?

Hi,

That UI is SonarQube. Go to the issue in the project’s Issues tab, and if you have the Administer Issues permission on the project, you’ll be able to mark the issue False Positive or Won’t Fix.

 
HTH,
Ann

Even if you enter with admin privileges, if the problem type is duplicate, the wont fix UI is not displayed.

Maybe the entry method is wrong?

Hi,

Could you share a screenshot?

 
Ann

The duplicate problem is not in the issue type and cannot be controlled by the UI. How can I delete the duplicate without solving it?


<-Duplicate problem is not in issue type…

Hi,

Thanks for the screenshots! Now I understand!

These aren’t “issues” so you can’t mark them False Positive or Won’t Fix. The only way you can address them is to remove the duplications. Either that, or set duplication exclusions so that the files aren’t included in duplication detection.

 
HTH,
Ann

Hi!
Thank you for your reply!

Ah,this issue is not fix for UI… I see.
If so,where can I set the duplicate exclusion so that the file is not included in the duplicate detection?

Hi,

I recommend using the UI: [Project Homepage] → Project Settings → General Settings → Analysis Scope → Duplication Exclusions.

 
HTH,
Ann