Lint Skill
Check code quality and formatting before committing changes.
Usage
Run this skill to check for lint errors and formatting issues.
Instructions
- •
Run the lint check:
bashmake lint
- •
If clippy reports warnings or errors, fix them before proceeding
- •
Check formatting:
bashmake fmt CHECK=1
- •
If formatting check fails, apply formatting:
bashmake fmt
- •
If license headers are missing, add them:
bashcd src/redisearch_rs && cargo license-fix
Common Clippy Fixes
- •Document unsafe blocks: Add
// SAFETY:comment explaining why the unsafe code is sound - •Use
#[expect(...)]: Prefer over#[allow(...)]for lint suppressions
Rust-Specific Checks
For Rust-only linting:
bash
cd src/redisearch_rs && cargo clippy --all-targets --all-features