Repository navigation
hygiene: add [docs] and strict [comments] to .drover/arch.toml - #5
Merged
Merged
Conversation
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.
Closes #4
Adds
.drover/arch.tomlwith[docs](paths = ["docs/**/*.md", "README.md"],watch = ["src/main.rs"]) and[comments] policy = "strict", and fixes the one violation the strict policy flagged.For humans
The repo now carries the hygiene config that drover's doctor checks, so doc drift and stray code comments are caught by CI. The tool's
--helptext is unchanged.Changes
.drover/arch.toml: new,[docs]and[comments] policy = "strict".src/main.rs: the///line on the privateOptsstruct (flagged by strict comments, not a pub item) becomes#[command(about = …)]with the same text, socompact --helpprints the same description.src/ net +4 (budget +5): one doc line swapped for clap'saboutattribute; rustfmt splits the attribute over several lines.Evidence at eab79db
drover arch-check→ exit 0 (12 files, 0 violations; before the fix:src/main.rs:16comment violation, exit 1)cargo fmt --check→ exit 0cargo +1.99.1 test -q→ exit 0 (2 passed); the default 1.97.1 toolchain is below the crate'srust-version = "1.99"cargo run -q -- --helpfirst line:A repo's fresh start: one root before a cut, one commit per landed PR after it; archive, undo.Decisions
aboutattribute rather than makingOptspub: it keeps the help text without a fake public item.wip: supersede snapshotcommit (it adds the arch.toml); no history rewrite.