Skip to content

Implement a Analyzers similar to dotnet/runtime and use their ruleset #5655

Closed

Description

@elachlan

dotnet/runtime has analyzers implemented to help reduce code issues and have put together a decent list of rules.

https://github.com/dotnet/runtime/blob/master/eng/CodeAnalysis.ruleset

I suggest the rules and the analyzers are duplicated here in msbuild to help enforce code style and reduce potential errors. It will also help make PRs higher quality, reducing the burden on reviewers for trivial issues.

We could have the rules set to "info" so they don't cause build failures. Then enable each rule one by one over time so that the changes are isolated to a PR/commit.

Activity

  1. added
    Area: Debuggability
    on Aug 13, 2020
  2. cdmihai commented on Aug 13, 2020

    @cdmihai
    Contributor

    And it would cool to also have a formatter: #4092

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: DebuggabilityRefactoringtriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions