forked from fluxcd/go-git-providers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
59 lines (58 loc) · 1.15 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:
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 1m
tests: false
linters:
enable:
# Default
- govet
- errcheck
- staticcheck
- unused
- gosimple
- structcheck
- varcheck
- ineffassign
- deadcode
- typecheck
# Extra, see list of https://golangci-lint.run/usage/linters/
- bodyclose
- golint
# - rowserrcheck is not applicable here
- stylecheck
- gosec
# - interfacer is deprecated
- unconvert
- dupl
- goconst
- gocyclo
- gocognit
- asciicheck
- gofmt
- goimports
- maligned
# - depguard is not applicable here
- misspell
# - lll allow long lines for now, maybe revisit this later
- unparam
- dogsled
- nakedret
- prealloc
- scopelint
- gocritic
- gochecknoinits
- gochecknoglobals
# - godox don't error although there are TODOs in the code
- funlen
- whitespace
# - wsl allow "non-idiomatic" whitespace formattings for now
- goprintffuncname
- gomnd
- goerr113
# - gomodguard is not applicable here
- godot
# - testpackage is not applicable here
# - nestif is covered by gocognit
# - exportloopref is covered by scopelint
- exhaustive
- nolintlint