Reputation: 519
I have problem with Suppression state of warnings thrown by StyleCop.Analyzer.
I am trying to start using it, but i have a lot of warnings, that I need suppress first. All of the warnings have Suppression State as N/A and I am not able to suppress that in file. Is here any way how to suppress them?
The same problem is with Microsoft.AnalyzerPowerpack.
Upvotes: 1
Views: 697
Reputation: 314
Add a Settings.StyleCop to the legacy projects and disable the errors or disable all error checking for said projects
<StyleCopSettings Version="105">
<GlobalSettings>
<BooleanProperty Name="RulesEnabledByDefault">False</BooleanProperty>
</GlobalSettings>
</StyleCopSettings>
You could misappropriate auto-generated in the offending files: (with the appropriate comment explaining why of course)
// <auto-generated />
Upvotes: 1