forked from kubernetes/perf-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
37 lines (34 loc) · 959 Bytes
/
.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
run:
timeout: 10m
linters-settings:
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
- deadcode
# 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"