forked from ansible/receptor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
80 lines (78 loc) · 2.25 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
71
72
73
74
75
76
77
78
79
80
run:
timeout: 10m
linters:
disable-all: true
enable:
- asciicheck
- bodyclose
#- cyclop # TODO: Reduce code complexity.
- deadcode
- depguard
- dogsled
#- dupl # TODO: Remove duplicates.
- durationcheck
#- errcheck # TODO: Not all received errors are checked.
#- errorlint # TODO: Use errors package.
- exportloopref
#- forcetypeassert # TODO: always assert types when when casting.
#- funlen # TODO: Reduce code complexity.
- gci
#- gochecknoglobals # TODO: Reduce number of globals.
#- gochecknoinits # TODO: Maybe not use init().
#- gocognit # TODO: Reduce code complexity.
- gocritic
#- gocyclo # TODO: Reduce code complexity.
- godot
#- goerr113 # TODO: Please do not use dynamic errors.
- gofmt
- gofumpt
- goheader
- goimports
- golint
- gomoddirectives
- gomodguard
# - goprintffuncname # TODO: logging methods are not named like the ones in `fmt` which could lead to problems.
- gosec
- gosimple
- govet
- ifshort
- importas
- ineffassign
- makezero
- misspell
- nakedret
#- nestif # TODO: Reduce code complexity.
- nilerr
- nlreturn
- noctx
- nolintlint
#- paralleltest # TODO: missing at some locations
- prealloc
- predeclared
- revive
- rowserrcheck
- sqlclosecheck
- staticcheck
- structcheck
- stylecheck
#- testpackage # TODO: Put tests in their dedicated test packages.
#- thelper # TODO: Requires test refactoring.
- tparallel
- typecheck
- unconvert
#- unparam # TODO: This breaks something, look at it!
- unused
- varcheck
- wastedassign
- whitespace
# - wrapcheck # TODO: Errors passed upwards should be wrapped.
issues:
# Dont commit the following line.
# It will make CI pass without telling you about errors.
# fix: true
exclude:
- "lostcancel" # TODO: Context is not canceled on multiple occasions. Needs more detailed work to be fixed.
- "SA2002|thelper|testinggoroutine" # TODO: Test interface used outside of its routine, tests need to be rewritten.
- "G306" # TODO: Restrict perms of touched files.
- "G402|G404" # TODO: Make TLS more secure.
- "G204" # gosec is throwing a fit, ignore.