Update golangci-lint config

This commit is contained in:
Daniel 2022-02-01 13:16:38 +01:00
parent ea57310483
commit dba4ba3dc7

View file

@ -1,17 +1,37 @@
# Docs:
# https://golangci-lint.run/usage/linters/
linters: linters:
enable-all: true enable-all: true
disable: disable:
- lll - cyclop
- gochecknoinits - exhaustivestruct
- gochecknoglobals - forbidigo
- funlen - funlen
- whitespace - gochecknoglobals
- wsl - gochecknoinits
- gomnd - gocognit
- gocyclo
- goerr113 - goerr113
- gomnd
- ifshort
- interfacer
- lll
- nestif
- nlreturn
- noctx
- revive
- testpackage - testpackage
- whitespace
- wrapcheck
- wsl
linters-settings: linters-settings:
gci:
# put imports beginning with prefix after 3rd-party packages;
# only support one prefix
# if not set, use goimports.local-prefixes
local-prefixes: github.com/safing
godox: godox:
# report any comments starting with keywords, this is useful for TODO or FIXME comments that # report any comments starting with keywords, this is useful for TODO or FIXME comments that
# might be left in the code accidentally and should be resolved before merging # might be left in the code accidentally and should be resolved before merging