Camel Case should have been Pascal Case in csharpsquid:S101


(Andreas Jakof) #1

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.

(Valeri Hristov) #2

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.

(Andreas Jakof) #3

Thank you very much!