forked from banzaicloud/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
70 lines (61 loc) · 1.39 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
run:
skip-dirs:
- .gen
- client
- plz-out
- lib
skip-files:
- ".*_gen\\.go$"
- "zz_generated\\..*\\.go$"
timeout: 10m
linters-settings:
golint:
min-confidence: 0.9
gocyclo:
min-complexity: 15
goimports:
local-prefixes: github.com/banzaicloud/pipeline/
depguard:
list-type: blacklist
include-go-root: false
packages:
- github.com/prometheus/common/log
packages-with-error-messages:
github.com/prometheus/common/log: "Global logger is deprecated. Inject a logger here. If you are trying to log in a function, chances are you should make it a struct."
linters:
enable-all: true
disable:
- funlen
- maligned
- wsl
- gomnd
- godot
# TODO: fixme
- gosec
- megacheck
- varcheck
# Disable govet for now because it fails on Circle
- govet
# TODO: fixme
- nestif
- exhaustive
- nlreturn
- noctx
- goerr113
- bodyclose
- dupl
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- godox
- interfacer
- lll
- nakedret
- prealloc
- scopelint
- stylecheck
- testpackage
- unparam
fast: false