2022-03-19 00:38:49 +02:00
|
|
|
linters:
|
|
|
|
disable:
|
|
|
|
- structcheck # gives false positives
|
|
|
|
enable:
|
|
|
|
- gofumpt
|
|
|
|
- thelper
|
|
|
|
- goimports
|
|
|
|
- tparallel
|
|
|
|
- wastedassign
|
|
|
|
- exportloopref
|
|
|
|
- unparam
|
|
|
|
- prealloc
|
|
|
|
- unconvert
|
|
|
|
- exhaustive
|
|
|
|
- makezero
|
2022-03-25 14:16:24 +02:00
|
|
|
- nakedret
|
2022-03-19 00:38:49 +02:00
|
|
|
# - goconst # TODO: enable and fix issues
|
|
|
|
fast: false
|
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
exhaustive:
|
|
|
|
default-signifies-exhaustive: true
|
2023-09-30 11:23:52 +02:00
|
|
|
staticcheck:
|
|
|
|
# SA1019 is for checking that we're not using fields marked as deprecated
|
|
|
|
# in a comment. It decides this in a loose way so I'm silencing it. Also because
|
|
|
|
# it's tripping on our own structs.
|
|
|
|
checks: ["all", "-SA1019"]
|
2022-03-25 14:16:24 +02:00
|
|
|
nakedret:
|
|
|
|
# the gods will judge me but I just don't like naked returns at all
|
|
|
|
max-func-lines: 0
|
|
|
|
|
2022-03-19 00:38:49 +02:00
|
|
|
run:
|
2023-08-02 00:10:23 +02:00
|
|
|
go: '1.20'
|
|
|
|
timeout: 10m
|