We have a custom Quality Profile for C# which works great except for rule S6669. The parameter we want to have is ^m?Logger$ but analysis keeps showing code rules violations: Rename this field 'mLogger' to match the regular expression '^_?[Ll]og(ger)?$'.
Is anyone using a customized S6669 rule succesfully?
Would you be able to perform the following actions, to investigate the issue:
Login into your SonarQube Server instance
Open the URL: <your SQ server>/api/qualityprofiles/search?project=<your project key>&language=cs This should give you the uuid of the quality profile associated to your project.
Open the URL: <your SQ server>/api/rules/list?qprofile=<the quality profile uuid from step 2>&language=cs
You should get a JSON response, please look for the rule csharpsquid:S6669 in the actives section.
We tried to update this C# rule today and the error is still the same. The overridden regex is ignored. All other custom rules with overridden values work correctly.
When I call the API endpoints to get list of rules, csharpsquid:S6669 appears twice. The default value comes first and then our overridden value.
Could that be a problem?
We are using SonarQube Developer Edition v2026.1 (119033)