restic-scheduler/.golangci.yml

109 lines
1.7 KiB
YAML
Raw Permalink Normal View History

2022-02-18 22:36:19 +00:00
---
linters:
enable:
2022-02-23 00:55:41 +00:00
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
2022-02-18 22:36:19 +00:00
- asciicheck
2022-02-23 00:55:41 +00:00
- bidichk
2022-02-18 22:36:19 +00:00
- bodyclose
2022-02-23 00:55:41 +00:00
- containedctx
- contextcheck
- cyclop
- decorder
2022-02-18 22:36:19 +00:00
- dupl
2022-02-23 00:55:41 +00:00
- durationcheck
- errchkjson
- errname
- errorlint
2022-02-18 22:36:19 +00:00
- exhaustive
2022-11-10 21:30:30 +00:00
- exhaustruct
2022-02-23 00:55:41 +00:00
- exportloopref
- forcetypeassert
- funlen
- gci
2022-02-18 22:36:19 +00:00
- gochecknoinits
- gocognit
2022-02-23 00:55:41 +00:00
- goconst
2022-02-18 22:36:19 +00:00
- gocritic
2022-02-23 00:55:41 +00:00
# - gocyclo # Using cyclop
- godot
# - goerr113 # Using errorlint
- gofmt
- goheader
2022-02-18 22:36:19 +00:00
- goimports
- gomnd
2022-02-23 00:55:41 +00:00
- gomoddirectives
- gomodguard
2022-02-18 22:36:19 +00:00
- goprintffuncname
2022-02-23 00:55:41 +00:00
- gosec
- grouper
- importas
# - ireturn
- lll
- maintidx
- makezero
2022-02-18 22:36:19 +00:00
- misspell
- nakedret
- nestif
2022-02-23 00:55:41 +00:00
- nilerr
- nilnil
2022-02-18 22:36:19 +00:00
- nlreturn
- noctx
2022-02-23 00:55:41 +00:00
- nolintlint
- paralleltest
- prealloc
- predeclared
# - promlinter # Not common enough
- revive
- rowserrcheck
- sqlclosecheck
# - stylecheck # Using revive
- tagliatelle
- tenv
- testpackage
- thelper
- tparallel
- unconvert
2022-02-18 22:36:19 +00:00
- unparam
2022-02-23 00:55:41 +00:00
- varnamelen
- wastedassign
- whitespace
- wrapcheck
2022-02-18 22:36:19 +00:00
- wsl
2022-02-23 00:55:41 +00:00
2022-02-18 22:36:19 +00:00
disable:
- gochecknoglobals
2022-02-23 00:55:41 +00:00
- godox
- forbidigo
# Deprecated
- golint
- interfacer
- maligned
- scopelint
2022-11-10 21:30:30 +00:00
- ifshort
- varcheck
- structcheck
- deadcode
- exhaustivestruct
2022-02-18 22:36:19 +00:00
linters-settings:
2022-02-23 00:55:41 +00:00
gomnd:
settings:
mnd:
ignored-functions: math.*
2022-02-18 22:36:19 +00:00
issues:
2022-11-10 21:30:30 +00:00
fix: true
2022-02-18 22:36:19 +00:00
exclude-rules:
- path: _test\.go
linters:
- errcheck
- gosec
2022-02-23 22:13:00 +00:00
- funlen