-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy path.golangci.yml
More file actions
77 lines (74 loc) · 1.63 KB
/
.golangci.yml
File metadata and controls
77 lines (74 loc) · 1.63 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
run:
go: "1.24"
timeout: 10m
modules-download-mode: readonly
linters:
disable-all: true
enable:
- govet
- staticcheck
- gosimple
- ineffassign
- typecheck
- gofmt
- goimports
- gofumpt
- whitespace
- gci
- unconvert
- misspell
- revive
- durationcheck
- gosec
linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/zilliztech/woodpecker)
gofumpt:
module-path: github.com/zilliztech/woodpecker
extra-rules: false
goimports:
local-prefixes: github.com/zilliztech/woodpecker
revive:
rules:
- name: exported
disabled: true
- name: package-comments
disabled: true
gosec:
excludes:
- G102 # Binds to all network interfaces - intentional in test utilities
- G108 # Profiling endpoint exposed - intentional for monitoring
- G114 # net/http serve without timeouts - used in test/monitor utilities
- G115 # Integer overflow conversion - all instances are safe (bounded by segment/block size limits)
- G404 # Insecure random number source (math/rand)
govet:
enable-all: true
disable:
- fieldalignment
- shadow
issues:
exclude-dirs:
- proto
- mocks
- tests/benchmark
- tests/docker
- tests/stability
- bin
- build
- deployments
exclude-files:
- ".*\\.pb\\.go$"
- ".*_vtproto\\.pb\\.go$"
exclude-rules:
- path: _test\.go
linters:
- gosec
- revive
- linters:
- staticcheck
text: "SA1019:" # Ignore deprecated usage warnings
max-issues-per-linter: 0
max-same-issues: 0