-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
62 lines (60 loc) · 1.36 KB
/
.golangci.yml
File metadata and controls
62 lines (60 loc) · 1.36 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
version: "2"
linters:
default: none
enable:
- misspell
- govet
- ineffassign
- staticcheck
- errcheck
- unused
settings:
errcheck:
exclude-functions:
- io.Copy
- (io.Closer).Close
- (*os.File).Close
- (net/http.ResponseWriter).Write
- fmt.Fprint
- fmt.Fprintf
- fmt.Fprintln
misspell:
locale: US
exclusions:
generated: strict
paths:
- pkg/rpc
- pkg/argon2
- pkg/s3select/internal/parquet-go
- pkg/s3select/internal/parquet-go/gen-go
- pkg/s3select/internal/parquet-go/tools
- pkg/smart/bindata.go
- pkg/mimedb/util
- _gen_test\.go
- _gen\.go
rules:
- text: "should have a package comment"
linters:
- staticcheck
- text: "error strings should not be capitalized or end with punctuation or a newline"
linters:
- staticcheck
- path: _test\.go
linters:
- errcheck
- text: "Error return value is not checked"
linters:
- errcheck
formatters:
enable:
- goimports
- gofmt
exclusions:
paths:
- pkg/rpc
- pkg/argon2
- pkg/s3select/internal/parquet-go
- pkg/s3select/internal/parquet-go/gen-go
- pkg/s3select/internal/parquet-go/tools
- pkg/smart/bindata.go
- pkg/mimedb/util