clippy-html
A Cargo tool that turns Rust Clippy diagnostics into a navigable static HTML report.
What does it do?
Running the command in a Cargo project collects Clippy diagnostics and creates an HTML report under the target directory by default. From the overview, developers can check whether the scan succeeded and how many diagnostics it found, then navigate to lint, category, and source pages to review locations and suggested fixes. Suggested changes can be viewed as unified diffs, and a JSON index can be output if needed. The finished report includes the required scripts, styles, and fonts so it can be opened offline.
Key features
- Generate static HTML pages of Clippy diagnostics by lint, category, and source file.
- Show suggested fixes as unified diffs and copy patches.
- Search lint names, paths, messages, and categories.
- Optionally output a JSON index for filtering by lint code, severity, and category.
- Read the generated HTML report without an internet connection.