Language: C# | Type: CODE_SMELL | Severity: Minor
Tags: convention
Shared naming conventions allow teams to collaborate efficiently.
This rule raises an issue when a method or a property name is not PascalCased.
For example, the method
public int doSomething() {...} // Noncompliant
should be renamed to
public int DoSomething() {...}
ComImportAttribute or InterfaceTypeAttribute.extern methods.MyXMethod is compliant, but
XM is not.'_' character.
void My_method_(){...} // Noncompliant, leading and trailing underscores are reported
void My_method(){...} // Compliant by exception
You can configure the rule to ignore certain acronyms by adding a Microsoft Code Analysis
Dictionary as an AdditionalFiles item in your project:
<Dictionary>
<Acronyms>
<CasingExceptions>
<Acronym>SEO</Acronym>
<Acronym>IAC</Acronym>
</CasingExceptions>
</Acronyms>
</Dictionary>
<ItemGroup>
<AdditionalFiles Include="CustomDictionary.xml" />
</ItemGroup>