I'm currently getting the following messages from the VS2012 code analysis tool:
CA1709 Identifiers should be cased correctly In member 'Action.ExecuteAction(string, string)', correct the casing of 'ID' in parameter name 'merchantID' by changing it to 'Id'. 'Id' is an abbreviation and therefore is not subject to acronym casing guidelines.
I have this defined in my GlobalSuppressions.cs file:
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
"CA1709:IdentifiersShouldBeCasedCorrectly",
MessageId = "ID",
Scope = "Global")]
How can I define a rule that says "ignore this specific spelling (I want ID, not Id) in all files"?
EDIT: Mike's solution worked, this is what I ended up with:
<?xml version="1.0" encoding="utf-8" ?>
<Dictionary>
<Acronyms>
<CasingExceptions>
<Acronym>ID</Acronym>
</CasingExceptions>
</Acronyms>
</Dictionary>