This repository has been archived by the owner on Jun 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.golangci.yml
112 lines (112 loc) · 2.04 KB
/
.golangci.yml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
run:
timeout: 5m
build-tags:
- integration
linters:
enable:
- asciicheck
- bidichk
- bodyclose
- decorder
- depguard
- dogsled
- durationcheck
- errcheck
- exportloopref
- exhaustive
- forbidigo
- forcetypeassert
- gci
- goconst
- gocritic
- godot
- gofmt
- gofumpt
- goimports
- gomnd
- gosec
- gosimple
- govet
- grouper
- importas
- ineffassign
- lll
- megacheck
- misspell
- nakedret
- nilerr
- nilnil
- noctx
- nolintlint
- prealloc
- predeclared
- promlinter
- revive
- rowserrcheck
- sqlclosecheck
- staticcheck
- stylecheck
- typecheck
- unconvert
- unparam
- wastedassign
- whitespace
- tenv
issues:
exclude-rules:
- linters:
- staticcheck
text: "SA4006" # ignore err not checked in test files
path: _test\.go
- linters:
- ineffassign
text: "ineffectual assignment" # ignore err not checked in test files
path: _test\.go
- linters:
- gocritic
text: "unlambda"
- linters:
- revive
text: "blank-imports"
path: "internal/persistence" # blank imports for SQLs
- linters:
- staticcheck
text: "SA1019" # using old proto package because of dependency
path: "internal/server/util/deprecated_proto.go"
- linters:
- goconst
path: _test\.go
- linters:
- forbidigo
text: "fmt.Printf"
path: "internal/cmd/|internal/test/kong/manual/main.go"
- linters:
- errcheck
text: "Error return value of"
path: _test\.go
- linters:
- noctx
path: _test\.go
- linters:
- gosec
text: "G402"
path: _test\.go
- linters:
- forcetypeassert
text: "type assertion must be checked"
path: _test\.go
- linters:
- gofumpt
path: internal/gen/wrpc
- linters:
- prealloc
path: _test\.go
linters-settings:
depguard:
include-go-root: true
packages:
- encoding/json
packages-with-error-message:
- encoding/json: 'only the internal/json package is allowed'
ignore-file-rules:
- '**/internal/json/json.go'