Monday, 27 April 2015

Code Analysis CA1704: Identifiers should be spelled correctly

I had a variable, DisableDtc, that was throwing code analysis error

CA1704: Identifiers should be spelled correctly.

The description is slightly confusing. What it really means is that it doesn't think one of the words is a real word.

In this case, it recognises Disable, but doesn't recognise Dtc.
The solution is to add Dtc to Dictionary/Words/Recognised/Word.

No comments:

Post a Comment