Camel Case should have been Pascal Case in csharpsquid:S101

I know, I know, I am a pit picky here, but hey … the tool IS picky! And it is supposed to.

In the rule " csharpsquid:S101" it says, that Type names should be in camelCase. Which is wrong, because in C# they are supposed to be in PascalCase. Only difference is the first letter, which is UpperCase in PascalCase and lowerCase in camelCase.

I checked, and the rule text is still using “camel case” in the latest version.

So please, change the text to Pascal Case, whenever the first letter should be a capital letter.

Hi @AndreasJakof, thanks for the feedback. You are right, it is more appropriate to say PascalCase instead of camelCase for C# type names. I changed the documentation and the next release of SonarC# will contain the updated text.

1 Like

Thank you very much!

Hi,

Why I can not find csharpsquid:S101 into my C# rules. I can only find
Methods and properties should be named in camel case under csharpsquid:S100 which is not correct?