restic-scheduler/.golangci.yml
Ian Fijolek cff06cd1c6
Some checks reported errors
continuous-integration/drone/push Build was killed
Update linters and fumpt all files
2024-01-06 15:10:29 -08:00

88 lines
1.3 KiB
YAML

---
linters:
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
- asciicheck
- bidichk
- bodyclose
- containedctx
- contextcheck
- cyclop
- decorder
- dupl
- durationcheck
- errchkjson
- errname
- errorlint
- exhaustive
- exhaustruct
- exportloopref
- forcetypeassert
- funlen
- gci
- gochecknoinits
- gocognit
- goconst
- gocritic
- godot
- gofumpt
- goheader
- goimports
- gomnd
- gomoddirectives
- gomodguard
- goprintffuncname
- gosec
- grouper
- importas
- lll
- maintidx
- makezero
- misspell
- nakedret
- nestif
- nilerr
- nilnil
- nlreturn
- noctx
- nolintlint
- paralleltest
- prealloc
- predeclared
- revive
- rowserrcheck
- sqlclosecheck
- tagliatelle
- tenv
- testpackage
- thelper
- tparallel
- unconvert
- unparam
- wastedassign
- whitespace
- wrapcheck
- wsl
linters-settings:
gomnd:
settings:
mnd:
ignored-functions: math.*
issues:
fix: true
exclude-rules:
- path: _test\.go
linters:
- errcheck
- gosec
- funlen