versions used:
SonarQube server 9.3.0
SonarScanner 4.6.2.2472
error observed:
Deactivated parent rules in custom extended child language quality profiles are still created as issues
steps to reproduce:
Extend a language quality profile and mark it as the default
Bulk deactivate all code smells rules
Scan the project and you will find all code smells issues still reported
PS: Just to make sure I checked Under “Project Information” / “Quality Profiles used” it shows that the custom extended profiles marked as default is being used to scan the project
If I create a quality profile, and cannot deactivate rules, then what is the point of a custom quality profile?
I want to inherit goodies from the parent, yes. But that does not mean the parent has to force stuff down my throat I do not want.
And we cannot simply deactivate it in the parent either, sine the parent does not let edit itself.
This is serious, it makes the whole concept totally unusable. I literally have thousands of “Tabs should not be used” nonsense in my logs, just because PSR2 does not know what accessibility is, and tries to force me to use spaces over tabs.
Yet, that is totally outdated to start with, and … well, we really need to be able to deactivate rules in an extended profile without losing the actual core features!