-
Notifications
You must be signed in to change notification settings - Fork 5
/
.golangci.yaml
34 lines (33 loc) · 1.37 KB
/
.golangci.yaml
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
linters-settings:
nlreturn:
block-size: 2
wsl:
enforce-err-cuddling: true
funlen:
lines: 100
statements: 50
gomoddirectives:
replace-allow-list:
- maunium.net/go/mautrix # currently needed for the PoC to work (custom mautrix)
linters:
enable-all: true
disable:
- ifshort # deprecated
- nosnakecase # deprecated
- interfacer # deprecated
- deadcode # deprecated
- exhaustivestruct # deprecated
- varcheck # deprecated
- structcheck # deprecated
- maligned # deprecated
- scopelint # deprecated
- golint # deprecated
- rowserrcheck # https://github.com/golangci/golangci-lint/issues/2649
- sqlclosecheck # https://github.com/golangci/golangci-lint/issues/2649
- wastedassign # https://github.com/golangci/golangci-lint/issues/2649
- gomnd # we use status code numbers and for our use case it's not practical
- godox # we have TODOs at this stage of the project, enable in future
- forbidigo # we use things like fmt.Printf for debugging, enable in future
- wsl # somehow this plugin causes more harm than use as it enables lots of things to be configured without causing spaghetti-code (grouping similar things together)
- nlreturn # not always practical, it was disabled before strict lints were introduced, then added, now it's clear why it was disabled at the first place :)
fast: true