Migrate formatting from dotnet-format to CSharpier#3381
Draft
mbroshi-stripe wants to merge 4 commits into
Draft
Conversation
dotnet-format requires package restore and compilation, making it slow (minutes) and prone to OOM/timeouts in CI. CSharpier parses C# syntax directly and formats the full repo in ~3 seconds. - Add CSharpier 1.0.3 as a local dotnet tool - Add .csharpierrc.yaml with printWidth: 100 - Update `just format` and `just format-check` to use CSharpier Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Committed-By-Agent: claude
One-time reformatting of the codebase using CSharpier 1.0.3 with printWidth: 100. Purely whitespace/style changes — no logic changes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Committed-By-Agent: claude
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Committed-By-Agent: claude
One file changed: added blank lines after #endif directives in Service.cs (minor formatting difference between CSharpier 1.0.3 and 1.2.6). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Committed-By-Agent: claude
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why?
dotnet formatrequires package restore and full compilation before formatting, making it slow (minutes) and prone to OOM kills/timeouts in CI. CSharpier parses C# syntax directly without compilation and formats the full repo (~5400 files) in ~3 seconds.What?
.config/dotnet-tools.json).csharpierrc.yamlwithprintWidth: 100(matches existing.vscode/settings.jsonruler)just formatandjust format-checkto use CSharpierSee Also