blocky/.golangci.yml

86 lines
1.3 KiB
YAML

linters:
enable:
- asciicheck
- bidichk
- bodyclose
- depguard
- dogsled
- dupl
- durationcheck
- errcheck
- errchkjson
- errorlint
- exhaustive
- exportloopref
- funlen
- gochecknoglobals
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- godox
- gofmt
- goimports
- gomnd
- gomodguard
- gosec
- gosimple
- govet
- grouper
- importas
- ineffassign
- lll
- makezero
- misspell
- nakedret
- nestif
- nilerr
- nilnil
- nlreturn
- nolintlint
- nosprintfhostport
- prealloc
- predeclared
- revive
- sqlclosecheck
- staticcheck
- stylecheck
- tenv
- typecheck
- unconvert
- unparam
- unused
- usestdlibvars
- wastedassign
- whitespace
- wsl
disable:
- noctx
- contextcheck
- scopelint
- structcheck
- deadcode
- varcheck
- forbidigo
disable-all: false
presets:
- bugs
- unused
fast: false
linters-settings:
gomnd:
ignored-numbers:
- '0666'
issues:
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- gochecknoglobals
- dupl
- gosec