Search across all documentation pages
10 pages in this section.
How rustfmt, clippy, and rustc's lint system work together as a layered quality pipeline built into the standard Rust toolchain.
Enforce consistent Rust code style across projects using rustfmt. Learn to configure formatting rules, integrate with CI, and resolve common issues.
Configure Rust lint levels and attributes to allow, warn, deny, or forbid lints at crate, module, or item levels. Centralize policy in Cargo.toml.
Configure Clippy with clippy.toml and Cargo.toml to set thresholds, disallow methods, and define third-party macro behavior for precise linting.
Configure documentation lints to ensure public API items have rustdoc comments and valid doc links, improving code quality and maintainability.
Configure rust-analyzer for inline diagnostics and format-on-save. Set up pre-commit hooks to run cargo fmt and cargo clippy locally.
Implement Rust linting and formatting best practices to maintain consistent codebases and reduce review churn. Configure cargo fmt, clippy, and documentation lints.
A single-page roundup of every highlight bullet from the 9 pages in the Linting & Formatting section, grouped by source page so you can scan all 48 takeaways without opening each article individually.