-
Notifications
You must be signed in to change notification settings - Fork 536
/
.golangci.yml
40 lines (37 loc) · 1.03 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
run:
timeout: 10m
linters-settings:
errcheck:
# Workaround for https://github.com/golangci/golangci-lint/issues/4733
ignore: ""
golint:
min-confidence: 0
misspell:
locale: US
govet:
check-shadowing: false
settings:
printf:
funcs:
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
# TODO(kushthedude) remove the disabled checks
disable:
- composites
- copylocks
linters:
disable-all: true
enable:
- gofmt
- revive
- govet
- errcheck
- unused
# TODO(kushthedude) fix after vendor is migrated to go modules
# - misspell
service:
golangci-lint-version: 1.51.x # use the fixed version to not introduce new linters unexpectedly
prepare:
- echo "here I can run custom commands, but no preparation needed for this repo"