-
Notifications
You must be signed in to change notification settings - Fork 38
/
.golangci.yml
54 lines (51 loc) · 1.08 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
run:
timeout: 10m
tests: false
issues:
max-same-issues: 0
max-issues-per-linter: 0
exclude-rules:
- linters: [golint]
text: "should not use dot imports|don't use an underscore in package name"
exclude-dirs:
- third_party/*
- pkg/azure/wstrust
exclude-files:
- "zz_generated.*\\.go$"
- ".*_mock\\.go"
linters-settings:
gomoddirectives:
# Allow local `replace` directives.
replace-local: true
# List of allowed `replace` directives.
# Default: []
replace-allow-list:
- github.com/spf13/cobra
funlen:
lines: 110
statements: 60
linters:
fast: true
enable-all: true
disable:
- gochecknoglobals
- gochecknoinits
- lll
- wsl
- whitespace
- godot
- godox
- maligned
- nlreturn
- exhaustivestruct
- gofumpt
- gci
- ifshort
- tagliatelle
- gomnd
- execinquery
- scopelint # deprecated by the owner
- nosnakecase # deprecated by the owner
- interfacebloat
- forcetypeassert # maybe enable in the future
- depguard # maybe enable in the future