-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.golangci.yml
More file actions
59 lines (57 loc) · 1.34 KB
/
Copy path.golangci.yml
File metadata and controls
59 lines (57 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
run:
timeout: 5m
linters:
enable:
- govet
- gofmt
- goimports
- ineffassign
- gosimple
- errcheck
- staticcheck
- unused
issues:
exclude-rules:
# Temporarily suppress deprecated ioutil warnings until a follow-up PR
- linters:
- staticcheck
text: "SA1019:.*io/ioutil"
# Suppress gosimple nil checks in config (existing code)
- path: pkg/config/config\.go
linters:
- gosimple
text: "S1009"
# Suppress ineffassign and SA4006 in existing cache tests
- path: pkg/cache/cache_test\.go
linters:
- ineffassign
- staticcheck
# Suppress errcheck in existing production code (pre-existing issues)
- path: pkg/config/config\.go
linters:
- errcheck
text: "godotenv.Load"
- path: pkg/llm/.*_test\.go
linters:
- errcheck
text: "json.Unmarshal"
- path: pkg/monitoring/monitoring\.go
linters:
- errcheck
text: "Encode"
- path: pkg/streaming/websocket\.go
linters:
- errcheck
text: "WriteJSON"
- path: pkg/jobs/handlers\.go
linters:
- errcheck
text: "Encode"
- path: pkg/jobs/worker\.go
linters:
- errcheck
text: "UpdateJobError"
- path: pkg/api/handlers\.go
linters:
- errcheck
text: "w.Write"