Must-share information (formatted with Markdown ):
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension): Enterprise Edition - Version 9.9.1 (build 69595)
how is SonarQube deployed: zip, Docker, Helm: zip
what are you trying to achieve: Find the rule from which an issue is showing from
what have you tried so far to achieve this: Went through the Sonarqube Dashboard UI to navigate to the selected profile, but the profile doesn’t have a rule showing for that particular issue.
Also, the selected Profile is a parent profile, & no other quality profile is inherited from or to the selected profile.
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
Colin
(Colin)
August 18, 2023, 8:39am
2
Hey there.
Can you give an example of the specific rule?
Hi @Colin ,
As per your request, I have attached a few screenshots to showcase the issue.
So this is the rule which lies in the mentioned in one of the quality profiles:
And here is the list of quality profiles having this rule:
But if I try to search this rule in the Quality Profile selected for my project, it shows none:
Then why is this rule showing as an issue in my code?:
See the quality profile selected in the project, it does not contain the mentioned rule, still it is showing in the project as an issue.
Also, I checked, the Quality profiles donot have any inheritance from any/each other.
Please let me know if you need anything else.
Colin
(Colin)
August 21, 2023, 1:20pm
4
Thanks.
It looks like the issue is coming from GitHub - spotbugs/sonar-findbugs: SpotBugs plugin for SonarQube
I’d suggest raising an issue with the maintainer.
Thank you @Colin ,
We have raised a support request to the SpotBugs plugin maintainer.
Here’s the reference:
opened 12:03PM - 23 Aug 23 UTC
## Issue Description
Hi Team,
Good Day!
So this is the rule which lie… s in the mentioned image in one of the quality profiles:
![img1](https://github.com/spotbugs/sonar-findbugs/assets/116165272/66f57865-b1b5-481d-8c4b-e8c80385713c)
And here is the list of quality profiles having this rule:
![img2](https://github.com/spotbugs/sonar-findbugs/assets/116165272/22c733f9-de5b-49cb-969f-a1120f78678b)
But if I try to search this rule in the Quality Profile selected for my project, it shows none:
![img3](https://github.com/spotbugs/sonar-findbugs/assets/116165272/9e0ce556-b04c-423c-a2fe-ba52aae38ec6)
Then why is this rule showing as an issue in my code?:
![img4](https://github.com/spotbugs/sonar-findbugs/assets/116165272/b7d50fc9-b086-492a-9459-49b97e4491e2)
See the quality profile selected in the project, it does not contain the mentioned rule, still it is showing in the project as an issue.
This rule is automatically being picked from findbugs.
Also, I checked, the Quality profiles donot have any inheritance from any/each other.
Please let me know if you need anything else.
## Environment
| Component | Version |
| ------------------ | ------- |
| SonarQube | Enterprise Edition - Version 9.9.1 |
| Sonar-FindBugs | 4.2.3 |
| Maven | ????? |
| Gradle | ????? |
| Java | ????? |
Thanks for the support.
Kind regards,
Zeeshan
system
(system)
Closed
September 1, 2023, 5:49am
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.