codeformatter icon indicating copy to clipboard operation
codeformatter copied to clipboard

Distribute CodeFormatter as NuGet package?

Open ghuntley opened this issue 10 years ago • 6 comments

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.

ghuntley avatar Jan 04 '16 09:01 ghuntley

Any updates on this?

challe avatar Mar 22 '18 17:03 challe

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.

ghuntley avatar Aug 08 '18 13:08 ghuntley

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

csr-nick avatar Aug 17 '18 05:08 csr-nick

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

hanabi1224 avatar Feb 14 '19 10:02 hanabi1224

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

jmarolf avatar Feb 15 '19 13:02 jmarolf

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

sharwell avatar Feb 15 '19 14:02 sharwell