restic-scheduler/.golangci.yml

88 lines
1.3 KiB
YAML
Raw 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
- godot
2024-01-06 23:10:29 +00:00
- gofumpt
2022-02-23 00:55:41 +00:00
- 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
- 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
- revive
- rowserrcheck
- sqlclosecheck
- tagliatelle
- tenv
- testpackage
- thelper
- tparallel
- unconvert
2022-02-18 22:36:19 +00:00
- unparam
2022-02-23 00:55:41 +00:00
- 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
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