Add comment rules and a lint check #30

Merged
arne merged 1 commit from process-comment-rules into main 2026-11-07 22:14:35 +01:00
Owner

Comments had grown into decision histories (milestone tags, machine anecdotes, "used to" paragraphs). This sets a rule and a check.

  • CLAUDE.md: what a comment is for. Short, still true, no history. The decision story goes in the commit message.
  • PR template: flake check, comment rules, and "I read the whole diff".
  • checks.lint: nixfmt, statix and deadnix in nix flake check. statix's repeated_keys is off, because modules group settings by concern.
  • flake.nix: one inputs = { … } block and one attrset per output, with comments cut to the new rules (247 → about 175 lines).
  • deadnix fixes: unused arguments dropped (herdr in experience-home, self in options.nix and dev-config.nix), with their callers updated.

Tested: nix flake check passes, and .#docs and .#dev-config build. black's system builds with this branch, and its closure has the same package names and versions as on main.

🤖 Generated with Claude Code

Comments had grown into decision histories (milestone tags, machine anecdotes, "used to" paragraphs). This sets a rule and a check. - **CLAUDE.md**: what a comment is for. Short, still true, no history. The decision story goes in the commit message. - **PR template**: flake check, comment rules, and "I read the whole diff". - **`checks.lint`**: nixfmt, statix and deadnix in `nix flake check`. statix's `repeated_keys` is off, because modules group settings by concern. - **flake.nix**: one `inputs = { … }` block and one attrset per output, with comments cut to the new rules (247 → about 175 lines). - **deadnix fixes**: unused arguments dropped (`herdr` in experience-home, `self` in options.nix and dev-config.nix), with their callers updated. Tested: `nix flake check` passes, and `.#docs` and `.#dev-config` build. black's system builds with this branch, and its closure has the same package names and versions as on main. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Code comments had grown into decision histories: milestone tags, machine
anecdotes, "used to" paragraphs. CLAUDE.md now says what a comment is for,
and the PR template asks for a full read of the diff before merge.

`nix flake check` gains a lint check: nixfmt, statix and deadnix.
statix's repeated_keys is off, since modules group settings by concern;
flake.nix itself now uses one attrset per output. Fixing deadnix's
findings dropped arguments nothing used (herdr in experience-home,
self in options.nix and dev-config.nix). black builds the same package
set on this branch as on main.

flake.nix comments are cut to the new rules as the first example.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
arne merged commit b773594a88 into main 2026-11-07 22:14:35 +01:00
arne referenced this pull request from a commit 2026-11-07 22:14:36 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bases/fjord!30
No description provided.