dotnet / codeformatter

Tool that uses Roslyn to automatically rewrite the source to follow our coding styles
MIT License
1.24k stars 244 forks source link

Distribute CodeFormatter as NuGet package? #201

Open ghuntley opened 8 years ago

ghuntley commented 8 years ago

Howdy,

Any plans to ship CodeFormatter as a NuGet package so it can be installed via the command line:

PM> Install-Package CodeFormatter

Example usages, integration with a git-precommit hook or as part of a FAKE build script.

The GitHub guys (@shiftkey) have rolled their own package which is perfect but it has been customized for their coding convention used in Octokit -> https://www.nuget.org/packages/Octokit.CodeFormatter/1.0.0-preview

Potential duplicate, see #162.

challe commented 6 years ago

Any updates on this?

ghuntley commented 6 years ago

CodeFormatter was a one time thing by Microsoft to bring their closed source code up to spec. It isn't maintained by Microsoft and there's no assigned owner. Huge shame.

Personally I have wasted so much energy over the years as a consultant, team-lead and open-source maintainer about code style. It's stupid. Languages should autoformat by default. Was going some golang this afternoon and one thing that hits you immediately is just how GOOD having gofmt existing by default and an entire ecosystem using it.

csr-nick commented 6 years ago

@ghuntley agree. This project is MIT licensed; is anyone up for forking it and fixing the outstanding issues?

hanabi1224 commented 5 years ago

I recently made a fork of this repo and created a nuget package: Dotnet.CodeFormatter.BuildTask.Fork. Hope it helps. @ghuntley @challe @csr-nick

jmarolf commented 5 years ago

We hope https://github.com/dotnet/roslyn/tree/master/src/Tools/dotnet-format will be the replacement for this repo someday

sharwell commented 5 years ago

🔗 Which is published here: https://www.nuget.org/packages/dotnet-format/