Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FxCop Suppression

I have a control on an Asp.Net page, on that page is a control with the name "PaReq" that violates the rule:

CA1704:IdentifiersShouldBeSpelledCorrectly

I've used suppression before I'm not sure how to suppress this error since it is defined in the generated file.

I could do this in a custom dictionary but that would mean all the developers would need to keep sync a copy of this dictionary which is something I'd rather avoid if possible. Also that the term "PaReq" is only used in this project.

How and where would I apply the suppression?

like image 707
TWith2Sugars Avatar asked Mar 01 '23 01:03

TWith2Sugars


1 Answers

I keep a custom dictionary per project which contains specific words for that project. That dictionary file is in my SourceControl repository, so other developers can use it (and add new words) as well.

like image 148
Frederik Gheysels Avatar answered Mar 05 '23 17:03

Frederik Gheysels