forked from dotzero/git-profile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
49 lines (46 loc) · 1.17 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:
modules-download-mode: readonly
# all available settings of specific linters
linters-settings:
govet:
check-shadowing: true
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
gocyclo:
min-complexity: 10
maligned:
suggest-new: true
misspell:
locale: US
# ignore-words:
# - someword
gocritic:
# disabled-checks:
# - wrapperFunc
enabled-tags:
- performance
- style
- experimental
linters:
enable-all: true
disable:
- maligned
- prealloc
- depguard
- wrapcheck # Requires wrapping external Errors to new ones
- forbidigo # Restricts using of fmt.Println
- goerr113 # Requires rewriting of most of errors to static ones in cmd/usage.go
- exhaustivestruct # Reports errors in Cobra structs
issues:
exclude-rules:
- path: cmd/
linters:
- gochecknoglobals
- gochecknoinits
- path: editor/
text: ".*"