Literals should be spelled correctly
This warning is supported in the stand-alone version of FxCop only. It is not supported in Code Analysis, which is integrated into Visual Studio.
TypeName |
LiteralsShouldBeSpelledCorrectly |
CheckId |
CA2204 |
Category |
Microsoft.Usage |
Breaking Change |
NonBreaking |
A literal string in a method body contains one or more words that are not recognized by the Microsoft spelling checker library.
This rule parses the literal string into words, tokenizing compound words, and checks the spelling of each word/token. For information about the parsing algorithm, see Identifiers should be spelled correctly.
This rule only fires if the literal string passed to a method which does not require a localized parameter. The logic for determining this is described in the rule topic Do not pass literals as localized parameters.
By default, the English (en) version of the spelling checker is used.
To fix a violation of this rule, correct the spelling of the word or add the word to a custom dictionary. For information about how to use custom dictionaries, see Identifiers should be spelled correctly.
Do not exclude a warning from this rule. Correctly spelled words reduce the learning curve required for new software libraries.