forked from lf-edge/eve
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.golangci.yml
More file actions
54 lines (50 loc) · 1.95 KB
/
.golangci.yml
File metadata and controls
54 lines (50 loc) · 1.95 KB
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:
deadline: 30m
linters-settings:
depguard:
rules:
main:
list-mode: lax # allow unless explicitly denied
files:
- $all
allow:
- $gostd
- $ven
linters:
enable-all: true
disable:
- gochecknoglobals # unreliable
- lll # line length check
- mnd # troublesome with little value
- stylecheck # covered by revive
- typecheck # See golangci/golangci-lint#419
- 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?
- err113 # Too opinioned about error handling (also yetus probably doesn't run it correctly)
- gofumpt # Too opinionated about whitespace
- gocognit # Too opinionated on existing code
- gocyclo # Too opinionated on existing code
- nestif # Too opinionated on existing code
- exhaustruct # Too opinionated on existing code
- 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
- tenv # Deprecated
- 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:
issues.uniq-by-line: false