-
Notifications
You must be signed in to change notification settings - Fork 164
/
.golangci.yml
59 lines (55 loc) · 2.23 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
---
run:
deadline: 30m
linters-settings:
depguard:
rules:
main:
list-mode: lax # allow unless explicitly denied
files:
- $all
linters:
enable-all: true
disable:
- gochecknoglobals # unreliable
- golint # covered by revive
- interfacer # deprecated
- lll # line length check
- mnd # troublesome with little value
- stylecheck # covered by revive
- typecheck # See golangci/golangci-lint#419
- varcheck # unreliable
- varnamelen # Too opinionated about var length
- funlen # function length checks
- godot # Don't mandate periods at end of comments
- nlreturn # Too opioniated about whitespace
- wsl # Way to opinionated
- whitespace # Too opinionated about whitespace
- wrapcheck # XXX should we switch to wrapped errors etc?
- goerr113 # XXX should we switch to wrapped errors etc?
- exhaustivestruct # Too opinionated
- gofumpt # Too opinionated about whitespace
- gomnd # We use plenty of magic constants
- scopelint # Obsoleted
- gocognit # Too opinionated on existing code
- gocyclo # Too opinionated on existing code
- maligned # Too opinionated on existing structs
- nestif # Too opinionated on existing code
- exhaustruct # Too opinionated on existing code
- nosnakecase # Uppercase with underscores is in some cases used for enum values
- nonamedreturns # Named return is not a bad practice
- cyclop # Raises warnings even for relatively simple functions
- ireturn # Returning interfaces is a common practise for constructors in defensive programming
- exhaustive # Complains even if struct has default branch
- musttag # pillar uses implicit tags for all structs
- maintidx # Disable maintainability index
- ifshort
- dupl
issues:
max-issues-per-linter: 0
max-same-issues: 0
# yetus expects stable output from linter
# that is we should return all errors
# not only the first hit
output:
uniq-by-line: false