safeword 0.26.0 → 0.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/commands/lint.md +10 -2
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ Run the full linting and formatting suite for the detected project type(s).
|
|
|
8
8
|
|
|
9
9
|
## Instructions
|
|
10
10
|
|
|
11
|
-
Run these commands based on project type.
|
|
11
|
+
Run these commands based on project type. All detected languages run for polyglot projects.
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
14
|
# Python linting (if pyproject.toml or requirements.txt exists)
|
|
@@ -34,12 +34,20 @@ Run these commands based on project type. Both Python and JS commands run for po
|
|
|
34
34
|
# TypeScript type check (if tsconfig.json exists)
|
|
35
35
|
[ -f tsconfig.json ] && bunx tsc --noEmit 2>&1 || true
|
|
36
36
|
}
|
|
37
|
+
|
|
38
|
+
# Go linting (if go.mod exists)
|
|
39
|
+
[ -f go.mod ] && {
|
|
40
|
+
# golangci-lint - fix and report issues
|
|
41
|
+
golangci-lint run --fix ./... 2>&1 || true
|
|
42
|
+
# golangci-lint - format
|
|
43
|
+
golangci-lint fmt ./... 2>&1 || true
|
|
44
|
+
}
|
|
37
45
|
```
|
|
38
46
|
|
|
39
47
|
## Summary
|
|
40
48
|
|
|
41
49
|
After running, report:
|
|
42
50
|
|
|
43
|
-
1. Any linting errors that couldn't be auto-fixed (Ruff or
|
|
51
|
+
1. Any linting errors that couldn't be auto-fixed (Ruff, ESLint, or golangci-lint)
|
|
44
52
|
2. Any formatting issues
|
|
45
53
|
3. Type errors (mypy or TypeScript)
|