-
Notifications
You must be signed in to change notification settings - Fork 45
/
.golangci.yaml
74 lines (71 loc) · 1.66 KB
/
.golangci.yaml
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
---
linters-settings:
exhaustive:
default-signifies-exhaustive: true
gci:
sections:
- standard
- default
- prefix(github.com/hetznercloud)
gomodguard:
blocked:
modules:
- github.com/tj/assert:
recommendations:
- github.com/stretchr/testify/assert
reason: |
One assertion library is enough and we use testify/assert
everywhere.
- github.com/magiconair/properties:
recommendations:
- github.com/stretchr/testify/assert
reason: >
We do not currently need to parse properties files. At the same
time this module has an assert package which tends to get
imported by accident. It is therefore blocked.
forbidigo:
forbid:
- ^print.*$
- ^fmt\.Print.*$
misspell:
locale: "US"
linters:
disable-all: true
enable:
- bodyclose
- errcheck
- errname
- exhaustive
- exportloopref
- gci
- gocritic
- godot
- goimports
- gomodguard
- gosec
- gosimple
- govet
- ineffassign
- misspell
- prealloc
- revive
- staticcheck
- typecheck
- unparam
- unused
- whitespace
- forbidigo
issues:
exclude-rules:
- path: _test\.go
linters:
- gosec
- errcheck
- path: hcloud/error.go
# False-positive in error codes
text: "G101: Potential hardcoded credentials" # gosec
- path: _test\.go
linters:
- revive
# From "env.Mux.HandleFunc"
text: "unused-parameter: parameter '(w|r)' seems to be unused, consider removing or renaming it as _"