blocky/.golangci.yml

104 lines
2.1 KiB
YAML
Raw Normal View History

2020-01-12 18:23:35 +01:00
linters:
enable:
- asciicheck
- bidichk
- bodyclose
- 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
- ginkgolinter
disable:
- noctx
- contextcheck
2021-09-18 22:41:01 +02:00
- scopelint
- structcheck
- deadcode
- varcheck
- forbidigo
- gosmopolitan
disable-all: false
presets:
- bugs
- unused
fast: false
2020-01-12 18:23:35 +01:00
linters-settings:
gomnd:
ignored-numbers:
- "0666"
ginkgolinter:
# Suppress the wrong length assertion warning.
suppress-len-assertion: true
# Suppress the wrong nil assertion warning.
suppress-nil-assertion: true
# Suppress the wrong error assertion warning.
suppress-err-assertion: true
# Suppress the wrong comparison assertion warning.
suppress-compare-assertion: true
# Suppress the function all in async assertion warning.
suppress-async-assertion: true
# Suppress warning for comparing values from different types, like int32 and uint32
suppress-type-compare-assertion: true
# Trigger warning for ginkgo focus containers like FDescribe, FContext, FWhen or FIt
forbid-focus-container: true
# Don't trigger warnings for HaveLen(0)
allow-havelen-zero: true
2020-01-12 18:23:35 +01:00
issues:
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- dupl
2023-04-17 18:21:56 +02:00
- funlen
- gochecknoglobals
- gosec