Skip to content

feat(rules): recipes gives every justfile the standard's recipes - #49

Draft
PiquelChips wants to merge 1 commit into
feat/rule-anyhow-edgesfrom
feat/rule-recipes
Draft

PiquelChips wants to merge 1 commit into
feat/rule-anyhow-edgesfrom
feat/rule-recipes

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Stacked on #48; part of a stack adding the standard's rules over manifests, config files, workflows, recipes and docs. Rebased onto #13's head c4a57df.

What and why

V1, with the owner's change: just alone may run check-changed instead of validate.

  • Reads just --dump --dump-format json.
  • The justfile has validate, fmt, fmt-check, lint, standard, test, doc, doc-test, audit, unused and check-changed.
  • just alone runs validate or check-changed.
  • validate depends on fmt first, then at least the other checks, standard included (docs: the crate's README is the standard, its rules generated from Rule's docs #13 made just standard a recipe with its own CI job), and never fmt-check.
  • test takes *ARGS defaulting to --workspace.
  • No fix: a recipe's body is the repository's.

Measured

piqueld sourceorigin DirkEngine
Violations 2 3 3

Measured read-only at origin/main: piqueld a17710f52, sourceorigin e99cc0e6b, DirkEngine 07e8ba44.

  • No repository has a standard recipe yet, nor runs it from validate: 2 each.
  • sourceorigin and DirkEngine also lack check-changed.

Testing

  • New fixture test: a conforming justfile passes; one missing recipes, with a wrong first recipe, validate order and test, gives each violation.
  • At this commit: Clippy with -D warnings, cargo nextest run --workspace and cargo xtask standard pass with a clean tree; just readme regenerated the rules list.
  • At the stack's tip: just check-changed origin/feat/readme-standard passes (fmt-check, audit, unused, standard, lint, doc, test, doc-test, package).

Checklist

  • The crate's README (its documentation on docs.rs) shows the change, and a repository's xtask can still follow it.
  • A change to the public API is noted for the next release, with what each repository's xtask must change. (A new rule: each repository fixes its violations (cargo xtask standard --fix where a fix exists) or adds a deviation with its reason.)
  • just check-changed passes.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

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