Skip to content

Commit f9a249a

Browse files
committed
Add Claude skill for fixing clippy issues
1 parent 213f7d3 commit f9a249a

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.claude/skills/fix-clippy/SKILL.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: fix-clippy
3+
description: Fix all clippy lint warnings in the project
4+
---
5+
6+
# Fix Clippy
7+
8+
Clippy issues are **warnings**, not errors. Never grep for `error` when looking for clippy issues.
9+
10+
## Step 1: Auto-fix
11+
12+
Run `make fix` to automatically fix clippy warnings:
13+
14+
```
15+
make fix
16+
```
17+
18+
## Step 2: Fix remaining warnings manually
19+
20+
Check for remaining warnings that couldn't be auto-fixed:
21+
22+
```
23+
cargo clippy --tests 2>&1 | grep "^warning:" | sort -u
24+
```
25+
26+
For each remaining warning, find the exact location and fix it manually.

0 commit comments

Comments
 (0)