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
1---2name: lint3description: Lint Skill4---5# Lint Skill67Check code quality and formatting before committing changes.89## Usage10Run this skill to check for lint errors and formatting issues.1112## Instructions13141. Run the lint check:15 ```bash16 make lint17 ```18192. If clippy reports warnings or errors, fix them before proceeding20213. Check formatting:22 ```bash23 make fmt CHECK=124 ```25264. If formatting check fails, apply formatting:27 ```bash28 make fmt29 ```30315. If license headers are missing, add them:32 ```bash33 cd src/redisearch_rs && cargo license-fix34 ```3536## Common Clippy Fixes3738- **Document unsafe blocks**: Add `// SAFETY:` comment explaining why the unsafe code is sound39- **Use `#[expect(...)]`**: Prefer over `#[allow(...)]` for lint suppressions4041## Rust-Specific Checks4243For Rust-only linting:44```bash45cd src/redisearch_rs && cargo clippy --all-targets --all-features46```
Run npx skillmds@latest add comeonoliver/lint in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Lint Skill It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
ComeOnOliver (@comeonoliver) published this skill. Their other Agent Skills are listed on their SkillMD profile.