docker-tools icon indicating copy to clipboard operation
docker-tools copied to clipboard

Use StyleCop.Analyzers to enforce code style/quality

Open lbussell opened this issue 1 year ago • 2 comments

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.

lbussell avatar Sep 14 '23 16:09 lbussell

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.

[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.

mthalman avatar Sep 20 '23 18:09 mthalman