Skip to content

Commit 067b554

Browse files
committed
Simplify golangci-lint config for v2 compatibility
- Remove linters-settings (not supported in v2) - Remove issues.exclude-rules (not supported in v2) - Remove run.skip-dirs (not supported in v2) - Keep minimal config: version, enabled linters, timeout - Rely on CLI args to specify which packages to lint
1 parent d40b36f commit 067b554

1 file changed

Lines changed: 0 additions & 52 deletions

File tree

.golangci.yml

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,11 @@
11
version: "2"
22

3-
linters-settings:
4-
govet:
5-
enable:
6-
- shadow
7-
disable:
8-
- structtag
9-
- composites
10-
errcheck:
11-
check-type-assertions: true
12-
staticcheck:
13-
checks: ["all"]
14-
153
linters:
164
enable:
175
- errcheck
186
- staticcheck
197
- ineffassign
208
- unused
21-
disable:
22-
- govet
23-
24-
issues:
25-
exclude-rules:
26-
# Exclude generated files
27-
- path: _gen\.go$
28-
linters:
29-
- govet
30-
- errcheck
31-
- staticcheck
32-
# Exclude WASM runtime (uses syscall/js)
33-
- path: pkg/runtime/
34-
linters:
35-
- govet
36-
- errcheck
37-
- staticcheck
38-
- ineffassign
39-
- unused
40-
# Exclude examples (WASM code)
41-
- path: examples/
42-
linters:
43-
- govet
44-
- errcheck
45-
- staticcheck
46-
- ineffassign
47-
- unused
48-
# Exclude participle struct tag warnings (false positives)
49-
- path: pkg/ast/ast\.go
50-
linters:
51-
- govet
52-
text: "structtag.*not compatible with reflect.StructTag"
53-
- path: pkg/parser/parser\.go
54-
linters:
55-
- govet
56-
text: "composites.*struct literal uses unkeyed fields"
579

5810
run:
5911
timeout: 5m
60-
skip-dirs:
61-
- pkg/runtime
62-
- examples
63-
skip-dirs-use-default: false

0 commit comments

Comments
 (0)