Repository navigation
Format with curb, and check it in CI - #42
Merged
Merged
Conversation
Take the shared nullean .editorconfig, add curb-cli 0.14.0 to the tool manifest, add `mise run format`, make `mise run check` and `mise run ci` fail on formatting drift, and add the format skill. Co-Authored-By: Claude Opus 5.5 <[email protected]>
`mise run format`, nothing else: curb 0.14.0 with the shared nullean .editorconfig. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 11, 2026
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.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, and nobody hand-formats around review comments.What
Config (first commit)
.editorconfigis the nullean template, unchanged except for the repo-specific block at its end (below).curb-cli0.14.0 indotnet-tools.json(rollForward: false).mise run formatrunsdotnet curb format ..mise run checkrunsdotnet curb check .and then zizmor.dotnet-ciworkflow, which runsmise run ci, somise run cinow ends withdotnet curb check ., after the build and tests. That runs on both the ubuntu and macOS legs.formatskill (.claude/skills/format/SKILL.md) and the task list inAGENTS.md.Repo-specific override
[src/Proc.ControlC/**.cs] csharp_style_namespace_declarations = block_scoped:silent. Proc.ControlC targets net40, so it compiles as C# 7.3. The template asks for file-scoped namespaces and curb applies that, which broke the build with CS8370. Curb reads no project files, so it cannot see the language version itself.Reformat (second commit)
Only
mise run formatoutput: 59 C# files. That covers the 160-columnmax_line_length, the IDE0055 layout, braceless single statements on their own line, and the UTF-8 BOM dropped from files that had one (charset = utf-8). The 18 F# files are left alone: there is no Fantomas in the tool manifest.Verify
🤖 Generated with Claude Code