forked from kosmos-io/kosmos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
executable file
·50 lines (46 loc) · 922 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
38
39
40
41
42
43
44
45
46
run:
timeout: 10m
modules-download-mode: vendor
skip-dirs:
- (^|/)vendor($|/)
- pkg/utils/lifted
- pkg/scheduler/lifted
linters:
disable-all: true
enable:
# linters maintained by golang.org
- gofmt
- govet
- goimports
# linters default enabled by golangci-lint .
- errcheck
- gosimple
- typecheck
- staticcheck
- ineffassign
- unused
# other linters supported by golangci-lint.
- gci
- misspell
- bodyclose
- gocyclo
- gosec
- dupl
- revive
- whitespace
linters-settings:
goimports:
local-prefixes: github.com/kosmos.io/kosmos
misspell:
ignore-words:
- creater
gci:
sections:
- Standard
- Default
- Prefix(github.com/kosmos.io/kosmos)
gocyclo:
# minimal cyclomatic complexity to report
min-complexity: 40 # The recommended value is 15
output:
sort-results: true