Files
gluetun/.golangci.yml

111 lines
1.9 KiB
YAML
Raw Normal View History

linters-settings:
misspell:
locale: US
issues:
exclude-rules:
- path: _test\.go
linters:
- dupl
- maligned
2021-05-30 16:14:08 +00:00
- goerr113
- containedctx
2021-02-06 17:16:58 +00:00
- path: internal/server/
linters:
2021-02-06 17:16:58 +00:00
- dupl
- path: internal/configuration/
linters:
- dupl
- path: internal/constants/
linters:
- dupl
2021-06-20 16:12:39 +00:00
- text: "exported: exported var Err*"
linters:
- revive
- text: "mnd: Magic number: 0644*"
linters:
- gomnd
- text: "mnd: Magic number: 0400*"
linters:
- gomnd
- text: "variable 'mssFix' is only used in the if-statement*"
path: "openvpnconf.go"
linters:
- ifshort
- text: "variable 'auth' is only used in the if-statement*"
path: "openvpnconf.go"
linters:
- ifshort
- linters:
- lll
source: "^//go:generate "
linters:
enable:
# - cyclop
# - errorlint
# - ireturn
# - varnamelen
# - wrapcheck
2020-10-20 02:45:28 +00:00
- asciicheck
- bidichk
- bodyclose
- containedctx
- decorder
- dogsled
- dupl
- durationcheck
- errchkjson
- errname
2020-10-20 02:45:28 +00:00
- exhaustive
- exportloopref
- forcetypeassert
2020-10-20 02:45:28 +00:00
- gci
- gochecknoglobals
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
2020-10-20 02:45:28 +00:00
- godot
2021-06-07 23:31:52 +00:00
- goerr113
2020-10-20 02:45:28 +00:00
- goheader
- goimports
2020-10-20 02:45:28 +00:00
- gomnd
- gomoddirectives
2020-10-20 02:45:28 +00:00
- goprintffuncname
- gosec
- grouper
- ifshort
- importas
2020-10-20 02:45:28 +00:00
- lll
- maintidx
- makezero
- misspell
- nakedret
2020-10-20 02:45:28 +00:00
- nestif
- nilerr
- nilnil
2020-10-20 02:45:28 +00:00
- noctx
- nolintlint
- prealloc
- predeclared
- predeclared
- promlinter
2021-06-20 16:12:39 +00:00
- revive
- rowserrcheck
2020-10-20 02:45:28 +00:00
- sqlclosecheck
- tenv
- thelper
- tparallel
- unconvert
- unparam
- wastedassign
- whitespace
run:
skip-dirs:
- .devcontainer
- .github
- doc