Skip to content

Cache boolean, comparison, documentation and unit lints by module - #84

Open
charliermarsh wants to merge 1 commit into
charlie/struct-qpath-clippyfrom
charlie/clippy-cache-documented-modules
Open

charliermarsh wants to merge 1 commit into
charlie/struct-qpath-clippyfrom
charlie/clippy-cache-documented-modules

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Clippy used 10.02% fewer instructions on a Ruff linter edit and 5.74% fewer on a ty edit, with one pair for ty. All 297 upstream Ruff output files matched.

Boolean, comparison-chain, documentation, and unit-expression lints can revisit unchanged modules. We run the eligible checks through Clippy’s incremental module query and record the source or Markdown files they read for suggestions. Editing a relevant snippet invalidates the cached result. Ruff edit · ty edit

@charliermarsh
charliermarsh force-pushed the charlie/clippy-cache-documented-modules branch from 54185b1 to fa3fb5b Compare November 12, 2026 15:09
@charliermarsh
charliermarsh marked this pull request as ready for review November 12, 2026 15:15
@charliermarsh
charliermarsh added this pull request to stack #80 November 12, 2026 15:15
@charliermarsh
charliermarsh force-pushed the charlie/clippy-cache-documented-modules branch from fa3fb5b to 086adb2 Compare November 17, 2026 05:22
@charliermarsh
charliermarsh removed this pull request from stack #80 November 17, 2026 05:26
@charliermarsh
charliermarsh added this pull request to stack #85 November 17, 2026 05:26
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