Expand description
Code quality and miscellaneous rules.
Rules detecting code quality issues:
- Crate-wide allow lint (RUSTCOLA049)
- Misordered assert_eq arguments (RUSTCOLA050)
- Try operator on io::Result (RUSTCOLA051)
- Local RefCell patterns (RUSTCOLA052)
- Unnecessary borrow_mut (RUSTCOLA057)
- Dead stores in arrays (RUSTCOLA068)
- Overscoped allow attributes (RUSTCOLA072)
- Commented-out code (RUSTCOLA092)
Structs§
- Commented
OutCode Rule - Detects commented-out code that should be removed.
- Crate
Wide Allow Rule - Detects crate-wide #![allow(…)] attributes that disable lints.
- Dead
Store Array Rule - Detects array elements written but never read before being overwritten.
- Local
RefCell Rule - Detects RefCell used for purely local mutable state.
- Misordered
Assert EqRule - Detects assert_eq! calls where literal appears as first argument instead of second.
- Overscoped
Allow Rule - Detects crate-level #![allow(…)] that suppresses security-relevant lints.
- TryIo
Result Rule - Detects use of ? operator on io::Result without additional context.
- Unnecessary
Borrow MutRule - Detects borrow_mut() on RefCell where borrow() would suffice.
- Unwrap
InHot Path Rule - Detects panic-prone code in performance-critical paths. Panics in hot paths can cause cascading failures under load.
Functions§
- register_
code_ quality_ rules - Register all code quality rules with the rule engine.