When using StyleCop with TreatWarningsAsErrors, it will always treat StyleCop's warning as error. Is there anyway to make all stylecop's warning not been treated as error without changing TreatWarningsAsErrors to false?
Maybe WarningsNotAsErrors property would help resolve this - For example, StyleCop provides a full list of its warnings for users to append, or provide a switch to control if it should append the list to the property.
E.g.
<!-- In StyleCop nuget package -->
<PropertyGroup>
<StyleCopWarningList>SA1000,SA1001,...</StyleCopWarningList>
</PropertyGroup>
<!-- In user code -->
<PropertyGroup>
<WarningsNotAsErrors>$(WarningsNotAsErrors);$(StyleCopWarningList)</StyleCopWarningList>
</PropertyGroup>
When using StyleCop with
TreatWarningsAsErrors
, it will always treat StyleCop's warning as error. Is there anyway to make all stylecop's warning not been treated as error without changingTreatWarningsAsErrors
to false?Maybe
WarningsNotAsErrors
property would help resolve this - For example, StyleCop provides a full list of its warnings for users to append, or provide a switch to control if it should append the list to the property.E.g.