Updated values of rules doesn't take effect in analysis report

Hi team,

We are using C# language. There are some rules for naming conventions of Sonar by default. However, it doesn’t fit to our naming convention, so we updated the Regex values of the rule in a Quality Custom Profile (and set it as default quality profile for our projects). And assign our projects to that profile, when sonar client does code analysis, i see it gets the custom Quality Profile. However, after code analysis step and check the result in SonarCloud Dashboard, we see that the rule is still using the old value (set in Sonar-way profile)

Could you take a look and share comments?

Hi,

Thanks for this report.

And we’ll need some more details:

  • SonarQube version
  • Rule keys & regexes
  • And ideally some screenshots to verify the customized rules’ presence in the profile, the profile’s application to the project, and the wrong issues raised in the project.

 
Thx,
Ann

Hi Ann,

We are using SonarCloud service. Here is the rule:
key: csharpsquid:S6669
origin value: ^_?[Ll]og(ger)?$
new value: ^(s_|_)?[Ll]og(ger)?$
screenshot:

Hi,

Could I have the other two screenshots too, please?

 
Thx,
Ann

Hi Ann,
Could you help to reproduce the issue at your end? We also retried some times, but it still use the origin value.

  • as my check, I set the new profile as default one for our company, also checked quality profile of the project in SonarCloud UI for sure. And during code analysis process at sonarclient, it loaded the correct profile. But the report result showed it get the value in Sonar way profile.

Hi,

I can’t actually. I’m on Linux and have never been a .NET developer. I’m trying to get the i’s dotted before I flag this for those who are.

 
Thx,
Ann