Skip to content

hygiene: add [docs] and strict [comments] to .drover/arch.toml - #5

Merged
jirathip-k merged 2 commits into
stagingfrom
issue-4
Nov 29, 2026
Merged

jirathip-k merged 2 commits into
stagingfrom
issue-4

Conversation

@jirathip-k

Copy link
Copy Markdown
Contributor

Closes #4

Adds .drover/arch.toml with [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 --help text is unchanged.

Changes

  • .drover/arch.toml: new, [docs] and [comments] policy = "strict".
  • src/main.rs: the /// line on the private Opts struct (flagged by strict comments, not a pub item) becomes #[command(about = …)] with the same text, so compact --help prints the same description.

src/ net +4 (budget +5): one doc line swapped for clap's about attribute; 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:16 comment violation, exit 1)
  • cargo fmt --check → exit 0
  • cargo +1.99.1 test -q → exit 0 (2 passed); the default 1.97.1 toolchain is below the crate's rust-version = "1.99"
  • cargo run -q -- --help first line: A repo's fresh start: one root before a cut, one commit per landed PR after it; archive, undo.

Decisions

  • Used clap's about attribute rather than making Opts pub: it keeps the help text without a fake public item.
  • The branch keeps the earlier lane's wip: supersede snapshot commit (it adds the arch.toml); no history rewrite.

@jirathip-k
jirathip-k merged commit c7bd91b into staging Nov 29, 2026
2 checks passed
@jirathip-k
jirathip-k deleted the issue-4 branch November 29, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant