mirror of
https://github.com/safing/portbase
synced 2025-09-01 10:09:50 +00:00
Update golangci-lint config
This commit is contained in:
parent
ea57310483
commit
dba4ba3dc7
1 changed files with 26 additions and 6 deletions
|
@ -1,17 +1,37 @@
|
|||
# Docs:
|
||||
# https://golangci-lint.run/usage/linters/
|
||||
|
||||
linters:
|
||||
enable-all: true
|
||||
disable:
|
||||
- lll
|
||||
- gochecknoinits
|
||||
- gochecknoglobals
|
||||
- cyclop
|
||||
- exhaustivestruct
|
||||
- forbidigo
|
||||
- funlen
|
||||
- whitespace
|
||||
- wsl
|
||||
- gomnd
|
||||
- gochecknoglobals
|
||||
- gochecknoinits
|
||||
- gocognit
|
||||
- gocyclo
|
||||
- goerr113
|
||||
- gomnd
|
||||
- ifshort
|
||||
- interfacer
|
||||
- lll
|
||||
- nestif
|
||||
- nlreturn
|
||||
- noctx
|
||||
- revive
|
||||
- testpackage
|
||||
- whitespace
|
||||
- wrapcheck
|
||||
- wsl
|
||||
|
||||
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:
|
||||
# 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
|
||||
|
|
Loading…
Add table
Reference in a new issue