forked from openshift-kni/eco-goinfra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
96 lines (90 loc) · 1.56 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
run:
timeout: 15m0s
skip-dirs-use-default: true
fast: false
# modules-download-mode: readonly
linters-settings:
revive:
rules:
- name: indent-error-flow
- name: var-naming
- name: increment-decrement
- name: exported
arguments:
- disableStutteringCheck
wsl:
strict-append: false
gofmt:
simplify: true
funlen:
lines: 90
statements: 40
unused:
check-exported: true
go: "1.19"
stylecheck:
# Select the Go version to target. The default is '1.13'.
go: "1.19"
# https://staticcheck.io/docs/options#checks
checks:
- all
- ST1001
linters:
disable:
- structcheck
enable:
- asciicheck
- bidichk
- depguard
- durationcheck
- errcheck
- errname
- errorlint
- exhaustive
- forcetypeassert
- funlen
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- godot
- godox
- gofmt
- goheader
- goimports
- gomodguard
- goprintffuncname
- gosimple
- govet
- importas
- ineffassign
- ireturn
- lll
- makezero
- misspell
- nakedret
- nilnil
- nolintlint
- predeclared
- promlinter
- revive
- staticcheck
- stylecheck
- tenv
- thelper
- typecheck
- unconvert
- unparam
- unused
- varnamelen
- wsl
- nlreturn
output:
format: colored-line-number
issues:
exclude-rules:
#- # Exclude some linters from running on tests files.
- path: 'pkg/polarion'
linters:
- exhaustive