restic-scheduler/.golangci.yml

113 lines
1.7 KiB
YAML
Raw Normal View History

2022-02-18 22:36:19 +00:00
---
linters:
enable:
2022-02-23 00:55:41 +00:00
- deadcode
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
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
- depguard
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-02-23 00:55:41 +00:00
- exhaustivestruct
- 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
- ifshort
- 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-02-18 22:36:19 +00:00
linters-settings:
2022-02-23 00:55:41 +00:00
# gosec:
# excludes:
# - G204
gomnd:
settings:
mnd:
ignored-functions: math.*
2022-02-18 22:36:19 +00:00
issues:
exclude-rules:
- path: _test\.go
linters:
- errcheck
- gosec
2022-02-23 22:13:00 +00:00
- funlen
2022-02-23 00:55:41 +00:00
# Enable autofix
fix: true