lint
Original:🇺🇸 English
Translated
Check code quality and formatting before committing changes
1installs
Sourceredisearch/redisearch
Added on
NPX Install
npx skill4agent add redisearch/redisearch lintTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →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:bash
make lint -
If clippy reports warnings or errors, fix them before proceeding
-
Check formatting:bash
make fmt CHECK=1 -
If formatting check fails, apply formatting:bash
make fmt -
If license headers are missing, add them:bash
cd src/redisearch_rs && cargo license-fix
Common Clippy Fixes
- Document unsafe blocks: Add comment explaining why the unsafe code is sound
// SAFETY: - Use : Prefer over
#[expect(...)]for lint suppressions#[allow(...)]
Rust-Specific Checks
For Rust-only linting:
bash
cd src/redisearch_rs && cargo clippy --all-targets --all-features