About lint
A repository skill for checking code quality and formatting before committing, aimed at contributors working in this Rust-containing codebase. It runs the project’s lint and format commands and notes common Clippy and license-header fixes.
Key features
- 01Run `make lint`
- 02Check formatting with `make fmt CHECK=1`
- 03Apply formatting with `make fmt`
- 04Fix license headers
- 05Run Rust Clippy checks
Use cases
- 01Check code before committing
- 02Resolve Clippy warnings and errors
- 03Verify formatting and license headers
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ redisearch/ redisearch --skill lintAfter installing, type/lintin Claude Code to confirm it loaded.
Details
From the project READMELint 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:
make lint -
If clippy reports warnings or errors, fix them before proceeding
-
Check formatting:
make fmt CHECK=1 -
If formatting check fails, apply formatting:
make fmt -
If license headers are missing, add them:
cd 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:
cd src/redisearch_rs && cargo clippy --all-targets --all-features
Comments
Markdown supported