dotnet / docker-tools

This is a repo to house some common tools for our various docker repos.
MIT License
122 stars 46 forks source link

Use StyleCop.Analyzers to enforce code style/quality #1180

Open lbussell opened 1 year ago

lbussell commented 1 year ago

Currently there are no enforced rules as to code quality or style in any of the .NET Docker repos. We should consider using StyleCop.Analyzers to enforce consistency within and across projects. We can share the StyleCopAnalyzers.ruleset and stylecop.json across repos in the eng/common directory and reference it from each .csproj.

dotnet-issue-labeler[bot] commented 1 year ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

mthalman commented 1 year ago

[Triage]

There's already this existing config file: https://github.com/dotnet/docker-tools/blob/main/.editorconfig. But that may only be supported by VS. The use of StyleCop.Analyzers is a more modern solution for handling this.