Check code quality and formatting before committing changes
Check code quality and formatting before committing changes.
Run this skill to check for lint errors and formatting issues.
Check C/C++ formatting against .clang-format:
clang-format --dry-run -Werror <modified .c and .h files>
If formatting check fails, apply formatting:
clang-format -i <modified .c and .h files>
Verify the project compiles without warnings-as-errors:
./build.sh
The CMake build promotes key warnings to errors (-Werror=incompatible-pointer-types,
-Werror=implicit-function-declaration). A successful build confirms these pass.
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) # subshell: custom subcommand, no --manifest-path
// SAFETY: comment explaining why the unsafe code is sound#[expect(...)]: Prefer over #[allow(...)] for lint suppressionscargo clippy --manifest-path src/redisearch_rs/Cargo.toml --all-targets --all-features
npx skills add RediSearch/lint下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer