Sonarqube is not detecting naming conventions for functions and variables for C# code

  • Sonarqube version 9.5, sonar-scanner-msbuild-5.2.0.29862-net46
  • I have tried naming the variables using pascal case and functions using camel case in C#
    code…but this wrong naming conventions are not detectable by sonar

Hey there.

Have you made sure the relevant rules are active in the Quality Profile your projects are using?

For example, this rule is not in the default “Sonar Way”, and needs to be enabled in a separate Quality Profile.

I have added the rule which u mentioned in a new quality profile…thanks for ur help
Now sonar is detecting the naming conventions

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.