Skip to content

Migrate formatting from dotnet-format to CSharpier#3381

Draft
mbroshi-stripe wants to merge 4 commits into
masterfrom
mbroshi/csharpier-migration
Draft

Migrate formatting from dotnet-format to CSharpier#3381
mbroshi-stripe wants to merge 4 commits into
masterfrom
mbroshi/csharpier-migration

Conversation

@mbroshi-stripe
Copy link
Copy Markdown
Contributor

@mbroshi-stripe mbroshi-stripe commented May 8, 2026

Why?

dotnet format requires 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?

  • Added CSharpier 1.0.3 as a local dotnet tool (.config/dotnet-tools.json)
  • Added .csharpierrc.yaml with printWidth: 100 (matches existing .vscode/settings.json ruler)
  • Updated just format and just format-check to use CSharpier
  • Applied CSharpier formatting to all source files (purely whitespace changes)

See Also

mbroshi-stripe and others added 4 commits May 8, 2026 16:48
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant