-
Notifications
You must be signed in to change notification settings - Fork 7
/
.golangci.yml
84 lines (80 loc) · 1.74 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
81
82
83
84
run:
deadline: 10m
linters:
enable:
- asciicheck
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- durationcheck
- errcheck
- errorlint
- exportloopref
- forbidigo
- goconst
- gocritic
- godot
- godox
- goerr113
- gofmt
- goheader
- gomoddirectives
- gomodguard
- goprintffuncname
- gosimple
- govet
- importas
- ineffassign
- lll
- makezero
- misspell
- nilerr
- noctx
- nolintlint
- predeclared
- promlinter
- revive
- rowserrcheck
- sqlclosecheck
- staticcheck
- structcheck
- tagliatelle
- testpackage
- thelper
- tparallel
- typecheck
- unconvert
- unused
- varcheck
- wastedassign
- whitespace
# linters are disabled if their majority of issues is considered false-positive (intended code)
# and the remaining issues (if existing) aren't worth it.
disable:
- gochecknoglobals
- gochecknoinits
- goimports # disabled because of so many false-positives with "imgui-go"
- gosec
- maligned
- nakedret
- prealloc
- unparam
- wsl
- funlen
- gocyclo # disabled for UI code
- nestif # disabled for UI code
- gocognit
- stylecheck # enable again for doing all the package documentation.
- gomnd # too many false positives with constants themselves.
issues:
exclude:
# too often for OpenGL constants
- don't use ALL_CAPS in Go names
exclude-use-default: false # disable filtering of defaults for better zero-issue policy
max-per-linter: 0 # disable limit; report all issues of a linter
max-same-issues: 0 # disable limit; report all issues of the same issue
linters-settings:
lll:
line-length: 160