We are currently using SonarQube 10.2.
We found an issue with “// NOSONAR” rules in Rules.
The issue count for C language is always being shown as 0.
Below is how it looks like in the Rules page:
Issues([0]
No issues were detected for this rule in the main project branches.
Is the issue count really working?
We have done physical count and there are at least a few hundreds of LOC with that comment.
This rule is not activated in the default Sonar Way Quality Profile. You may want to create a new Quality Profile with it turned on, apply it to your projects (or set it as the default), and run a new analysis of the main branch.
Hi Colin, thanks for your reply. Can I check what screenshots are you looking for? A screenshot where it shows that profile with the rule turn on and still returning (0)?
Hi Colin, sorry maybe I am not being clear. The comment “// NOSONAR” is working during the scanning of the codes. I am talking about the count in the Rules page, where it is always shown as “0”. Please see screenshot.