-
Notifications
You must be signed in to change notification settings - Fork 1
/
.golangci.yml
60 lines (57 loc) · 1.2 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
run:
# Our CI expects a vendor directory, hence we have to use -mod=readonly here as well.
modules-download-mode: readonly
issues:
# on default, golangci-lint excludes gosec. Hence, we have to
# explicitly disable the exclude-use-default: https://github.com/golangci/golangci-lint/issues/1504
exclude-use-default: false
# individual linter configs go here
linters-settings:
# default linters are enabled `golangci-lint help linters`
linters:
disable-all: true
enable:
- asciicheck
- bidichk
#- bodyclose
- containedctx
- decorder
- dogsled
- dupl
#- exhaustivestruct
#- forbidigo # we use prints and stuff as this is a dev project
- forcetypeassert
- funlen
- gci
#- gochecknoglobals # we use globals for cobra commands init
#- gochecknoinits # we use init to fill in the cobra commands
- gocognit
- goconst
- gocyclo
- godot
- godox
- gofmt
- gofumpt
- goheader
- goimports
- gomnd
- gomoddirectives
- gomodguard
- goprintffuncname
- gosec
- grouper
- lll
- maintidx
- misspell
- nakedret
- nestif
- nlreturn
- nolintlint
- paralleltest
- prealloc
- predeclared
- promlinter
- tagliatelle
- testpackage
- whitespace
- wsl