We have started using Microsoft.Extensions.StaticAnalysis in most of our projects as a means to standardize and unify on a more strict static analysis profile without introducing too much maintenance overhead (just a single preconfigured NuGet).
However, we would also like to introduce standard StyleCop analyzer rules to our repositories, enforcing common practices in the .NET ecosystem:
While we can include the StyleCop analyzer separately and configure it to our liking, I think it would make a lot of sense for that analyzer to be included in this extension for the same reason that the other analyzers are included today:
- Microsoft-defined standard set of rules without needing extra configuration on consumers, provides higher cohesion across the ecosystem
- Centralized inclusion via a single package that is easier to maintain across multiple repositories and solutions
Would it be possible for Microsoft.Extensions.StaticAnalysis to include StyleCop?
@sharwell FYI
We have started using
Microsoft.Extensions.StaticAnalysisin most of our projects as a means to standardize and unify on a more strict static analysis profile without introducing too much maintenance overhead (just a single preconfigured NuGet).However, we would also like to introduce standard
StyleCopanalyzer rules to our repositories, enforcing common practices in the .NET ecosystem:While we can include the
StyleCopanalyzer separately and configure it to our liking, I think it would make a lot of sense for that analyzer to be included in this extension for the same reason that the other analyzers are included today:Would it be possible for
Microsoft.Extensions.StaticAnalysisto includeStyleCop?@sharwell FYI