blocky/.golangci.yml

86 lines
1.3 KiB
YAML
Raw Normal View History

2020-01-12 18:23:35 +01:00
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
2022-11-03 23:47:31 +01:00
- nosprintfhostport
- prealloc
- predeclared
- revive
- sqlclosecheck
- staticcheck
- stylecheck
- tenv
- typecheck
- unconvert
- unparam
- unused
- usestdlibvars
- wastedassign
- whitespace
- wsl
disable:
- noctx
- contextcheck
2021-09-18 22:41:01 +02:00
- scopelint
- structcheck
- deadcode
- varcheck
- forbidigo
2020-01-12 18:23:35 +01:00
disable-all: false
presets:
- bugs
- unused
fast: false
2020-01-12 18:23:35 +01:00
linters-settings:
gomnd:
ignored-numbers:
- '0666'
2020-01-12 18:23:35 +01:00
issues:
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- gochecknoglobals
- dupl
- gosec