Skip to content

feat(rules): workspace-lints --fix adds each lint the standard requires that the workspace lacks - #45

Draft
PiquelChips wants to merge 1 commit into
feat/rule-nextest-configfrom
feat/rule-required-lints
Draft

PiquelChips wants to merge 1 commit into
feat/rule-nextest-configfrom
feat/rule-required-lints

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Stacked on #44; 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

LN1: the standard's lint set lives in this crate. #13's workspace-lints now holds that set (14 lints, each present and warn), so a separate required-lints rule would duplicate it: it is dropped. Its one difference is folded in here: workspace-lints reports a missing required lint but doesn't fix it.

  • --fix adds each required lint [workspace.lints] lacks at warn under its tool's table (Clippy's all and pedantic as { level = "warn", priority = -1 }), creating the table when needed. An allow stays unfixed, as before.

Measured

piqueld sourceorigin DirkEngine
Violations 2 1 2

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

workspace-lints as a whole. piqueld's missing unwrap_used (its PQD-124 deviation) is the one this fix would add.

Testing

  • New fixture test: a workspace with only unsafe_code set, fixed with no violation left, and Clippy's table written as a table.
  • 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. (None: a new fix for an existing rule.)
  • just check-changed passes.

Note

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

@PiquelChips
PiquelChips force-pushed the feat/rule-nextest-config branch from 51d775d to f340cfb Compare November 22, 2026 22:30
@PiquelChips
PiquelChips force-pushed the feat/rule-required-lints branch from 2d8df30 to 2b5c700 Compare November 22, 2026 22:30
@PiquelChips PiquelChips changed the title feat(rules): required-lints makes every workspace set the standard's lints feat(rules): workspace-lints --fix adds each lint the standard requires that the workspace lacks Nov 22, 2026
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