Stylecopanalyzers: Still get warnings despite ruleset file

Created on 5 Jan 2019  路  2Comments  路  Source: DotNetAnalyzers/StyleCopAnalyzers

Hello,
We just installed StyleCop with a .ruleset and a .json configuration files in our project (https://github.com/SOFTINUX/Base), in repository root.

In .csproj, there is a relative path to .ruleset and .json files. Both VS 2017 and dotnet cli (2.2) still output warnings, despite some rules being flagged "None" in .ruleset file.
The .json file works fine.

What did we miss?

Thanks

question resolved

All 2 comments

I left some notes here: https://github.com/SOFTINUX/Base/commit/be71f1ce0fd46836869657d9d5c1e58425e04034

It looks like the cause was a Condition attribute that resulted in the rules only getting configured for Release builds.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

batwad picture batwad  路  5Comments

vweijsters picture vweijsters  路  3Comments

MartyIX picture MartyIX  路  5Comments

SurajGupta picture SurajGupta  路  5Comments

sharwell picture sharwell  路  4Comments