-
Notifications
You must be signed in to change notification settings - Fork 625
Expand file tree
/
Copy path.golangci.yml
More file actions
41 lines (37 loc) · 1.05 KB
/
.golangci.yml
File metadata and controls
41 lines (37 loc) · 1.05 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
version: "2"
run:
timeout: 10m
linters:
default: none
enable:
# TODO(wojtek-t): Reenable after fixing existing issues.
# - revive
- govet
# TODO(wojtek-t): Reenable after fixing existing issues.
# - errcheck
- unused
- misspell
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
formatters:
enable:
- gofmt
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"