You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: upgrade golangci-lint to v2.8.0 and resolve all linting issues
- Upgrade golangci-lint from v1.64.8 to v2.8.0 for Go 1.24 support
- Migrate .golangci.yml to v2 format with version declaration
- Use official golangci-lint-action@v9 in CI for better performance
- Fix linting issues in check-plugin-counts.go (unchecked error, formatting)
- Fix error message capitalization in config.go (ST1005)
- Apply De Morgan's law in cache.go for cleaner validation (QF1001)
- Add pre-push checklist to CLAUDE.md with linting requirements
All linting now passes with 0 issues. CI will no longer fail on lint step.
Copy file name to clipboardExpand all lines: CLAUDE.md
+23-2Lines changed: 23 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,25 @@
1
1
# Plum Project Guide
2
2
3
+
## Pre-Push Checklist
4
+
5
+
**ALWAYS run before pushing to main:**
6
+
7
+
```bash
8
+
# 1. Run linter (must pass)
9
+
golangci-lint run --timeout=5m
10
+
11
+
# 2. Run tests (must pass)
12
+
go test ./...
13
+
14
+
# 3. Verify build succeeds
15
+
go build -o ./plum ./cmd/plum
16
+
```
17
+
18
+
**If linter is not installed:**
19
+
```bash
20
+
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.8.0
21
+
```
22
+
3
23
## Routine Maintenance
4
24
5
25
**At the start of each session**, check marketplace data freshness:
@@ -16,8 +36,9 @@ go run scripts/check-plugin-counts.go
16
36
- Update `internal/marketplace/discovery.go` with new stats and plugin counts
17
37
- Update `README.md` marketplace table with accurate counts
18
38
- Update total plugin count in README intro and features section
19
-
- Run: `go test ./internal/marketplace && go build -o ./plum ./cmd/plum`
39
+
- Run pre-push checklist above
20
40
21
41
## Why This Matters
22
42
23
-
The README is users' first impression - accurate plugin counts and GitHub stats help them make informed decisions about installation.
43
+
-**Linting** - CI will fail if linting doesn't pass locally. Always lint before pushing.
44
+
-**Accurate Data** - The README is users' first impression. Accurate plugin counts and GitHub stats help them make informed decisions about installation.
returnnil, fmt.Errorf("Claude Code marketplaces not found at %s.\n\nPlease run Claude Code and configure at least one marketplace using the /plugin command.", path)
58
+
returnnil, fmt.Errorf("claude Code marketplaces not found at %s - please run Claude Code and configure at least one marketplace using the /plugin command", path)
0 commit comments