Code Analysis: Global Project / Build Suppression

I have several CA1704:IdentifiersShouldBeSpelledCorrectly warnings CA1704:IdentifiersShouldBeSpelledCorrectly that I want to suppress. Basically, they refer to the name of the company, which is considered incorrectly spelled. The company name is part of several namespaces in my project, and in order to suppress all warnings, I need to add many suppressions to the GlobalSuppressions file. Is there a way to suppress all warnings in a single line so that aviod my GlobalSuppressions file GlobalSuppressions excessively cluttered?

+4
source share
2 answers

You cannot suppress many warnings with one suppression, but when it comes to an unknown or intentional spelling rejection, the best solution is to add a custom Code Analysis Dictionary .

+4
source

You can add the company name in CustomDictionary.xml

+2
source

Source: https://habr.com/ru/post/1304136/


All Articles