Repository navigation
refactor(rules): the rules read TOML files through one typed loader that keeps their lines - #35
Draft
PiquelChips wants to merge 1 commit into
Draft
PiquelChips wants to merge 1 commit into
PiquelChips wants to merge 1 commit into
Conversation
Draft
3 tasks done
PiquelChips
force-pushed
the
feat/readme-standard
branch
from
November 22, 2026 21:37
1264082 to
c4a57df
Compare
PiquelChips
force-pushed
the
refactor/toml-files
branch
from
November 22, 2026 22:30
25c6e36 to
571b88e
Compare
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.
Stacked on #13; 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
The next rules each read a TOML file (
rust-toolchain.toml,rustfmt.toml,clippy.toml,deny.toml, the manifests…) and need a line for every violation. Todayworkspace-lintsandbudgeteach read, parse and track lines by hand.TomlFile<T>: a file deserialized into the shape its rule needs, keeping its text, withline(&Spanned).load(missing isNone) andrequire(missing is an error).workspace-lints' manifests and[workspace.lints]move tomanifest.rs(RootManifest,Manifest,Setting) and load through it;budget.tomltoo.--fixkeeps its owntoml_editpath.Testing
cargo xtask standardpasses on this repository.-D warnings,cargo nextest run --workspaceandcargo xtask standardpass with a clean tree;just readmeregenerated the rules list.just check-changed origin/feat/readme-standardpasses (fmt-check, audit, unused, standard, lint, doc, test, doc-test, package).Checklist
just check-changedpasses.Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)