Frage

Using the word 'MicroTep' in a string fires rule CA1703 because FxCop doesn't recognize 'Tep'. I want FxCop to treat 'MicroTep' as a single word. I couldn't solve this by adding 'MicroTep' to one of the dictionaries and I don't want to add just 'Tep'. How can I achieve this?

War es hilfreich?

Lösung

AFAIK, there simply isn't any way to do this without adding "tep" to the dictionary. If you're curious for the reasons for this, see http://social.msdn.microsoft.com/forums/en-US/vstscode/thread/d63b9cad-1133-403c-bdb4-526263d4b55d.

If adding "tep" to the dictionary isn't acceptable, the only other feasible option would be to suppress the violations individually (assuming that you want to keep the rule enabled).

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top