-
Notifications
You must be signed in to change notification settings - Fork 29
/
.golangci.yml
49 lines (46 loc) · 1.05 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
run:
concurrency: 4
timeout: 10m
issues-exit-code: 1
skip-files:
- "^zz_generated.*"
skip-dirs:
- vendor
- test
output:
format: colored-line-number
print-issued-lines: true
print-linter-name: true
linters:
fast: false
disable-all: true
enable:
- gofmt
- govet
- goimports
- ineffassign
- staticcheck
- misspell
- vet
- unconvert
linters-settings:
golint:
# minimal confidence for issues, default is 0.8
min-confidence: 0.8
gofmt:
# simplify code: gofmt with `-s` option, true by default
simplify: true
misspell:
locale: US
staticcheck:
go: "1.19"
checks: [
"all",
"-ST1000", # Incorrect or missing package comment
"-ST1003", # Poorly chosen identifier
"-ST1005", # Incorrectly formatted error string
"-ST1006", # Poorly chosen receiver name
"-ST1012", # Poorly chosen name for error variable
"-ST1016", # Use consistent method receiver names
"-SA1019", # Using a deprecated function, variable, constant or field
]