Repository navigation
Format with curb, and check it in CI - #51
Merged
Merged
Conversation
The nullean `.editorconfig` replaces the repository's own, curb-cli 0.14.0 joins the tool manifest, `mise run format` formats and `mise run check` fails on drift before zizmor. CI's build job and `mise run ci` end with `dotnet curb check .`. The format skill documents it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Only `dotnet curb format .` output: 25 C# files, which also lose their UTF-8 BOM (`charset = utf-8`). The 4 F# build files are left alone, as there is no Fantomas in the tool manifest. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Formats the repository with curb and fails CI when a C# file drifts from what curb would produce.
Prompt summary: Every nullean repository adopts curb for formatting, with the shared
.editorconfigfromnullean/.github,mise run format/mise run check, and a CI check (step 5 of the rollout playbook, as on nullean/proc#42 and nullean/nupkg-validator#33).Why
Behaviour PRs stay readable only if formatting is never part of them. With one
.editorconfigacross the org and curb enforcing it in CI, a formatting change is amise run formataway.What
Config (first commit)
.editorconfigis the nullean template, unchanged: braceless single statements, a 160-columnmax_line_length, the IDE0055 layout. No repo-specific override was needed. The template raises analyzers to warnings, which adds CA warnings to the build (CA2201, CA1510 and CA1822 are the most common), but nothing sets warnings as errors, so the build passes.curb-cli0.14.0 indotnet-tools.json(rollForward: false).mise run formatrunsdotnet curb format ..mise run checkrunsdotnet curb check .and then zizmor, andmise run ciends withdotnet curb check ..Check formatting (curb)step after the API diff, once the earlier steps have restored the tools.formatskill (.claude/skills/format/SKILL.md) and the task list inAGENTS.md.Reformat (second commit)
Only
dotnet curb format .output: 25 C# files. Namespaces become file-scoped, single-statementifs move their statement onto its own line, wrapping follows the 160-column limit, and files lose their UTF-8 BOM (charset = utf-8). The 4 F# build files are left alone, because there is no Fantomas in the tool manifest.Verify
mise run check # 0 files would change mise run ciLocally: a second
dotnet curb format .changes nothing, andmise run cipasses. The packages validate, and the API diff suggests the same version change as onmain.🤖 Generated with Claude Code