Skip to content

Include StyleCop analyzer in Microsoft.Extensions.StaticAnalysis #7214

@julealgon

Description

@julealgon

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions