Files
gluetun/.golangci.yml

117 lines
2.5 KiB
YAML
Raw Normal View History

linters-settings:
misspell:
locale: US
issues:
exclude-rules:
- path: _test\.go
linters:
- dupl
2021-05-30 16:14:08 +00:00
- goerr113
- containedctx
2022-06-11 02:41:16 +00:00
- path: "internal\\/server\\/.+\\.go"
linters:
2021-02-06 17:16:58 +00:00
- dupl
2022-06-11 02:41:16 +00:00
- path: "internal\\/configuration\\/settings\\/.+\\.go"
linters:
- dupl
2022-06-11 02:41:16 +00:00
- text: "^mnd: Magic number: 0[0-9]{3}, in <argument> detected$"
source: "^.+= os\\.OpenFile\\(.+, .+, 0[0-9]{3}\\)"
linters:
- gomnd
2022-06-11 02:41:16 +00:00
- text: "^mnd: Magic number: 0[0-9]{3}, in <argument> detected$"
source: "^.+= os\\.MkdirAll\\(.+, 0[0-9]{3}\\)"
linters:
- gomnd
- linters:
- lll
2022-06-11 02:41:16 +00:00
source: "^//go:generate .+$"
2022-06-11 01:34:45 +00:00
- text: "returns interface \\(github\\.com\\/vishvananda\\/netlink\\.Link\\)"
linters:
- ireturn
2022-08-12 23:53:18 +00:00
- text: "_main contains underscore\\. You should use mixedCap or MixedCap\\."
path: "cmd\\/gluetun\\/main\\.go"
linters:
- nosnakecase
- text: "O_[A-Z]+ contains underscore\\. You should use mixedCap or MixedCap\\."
linters:
- nosnakecase
- text: "Stat_t contains underscore\\. You should use mixedCap or MixedCap\\."
linters:
- nosnakecase
- text: "S_IFCHR contains underscore\\. You should use mixedCap or MixedCap\\."
linters:
- nosnakecase
- text: "FAMILY_(ALL|V4|V6) contains underscore\\. You should use mixedCap or MixedCap\\."
path: "internal\\/(netlink|routing|wireguard)\\/.+\\.go"
linters:
- nosnakecase
linters:
enable:
# - cyclop
# - errorlint
2020-10-20 02:45:28 +00:00
- asciicheck
- bidichk
- bodyclose
- containedctx
- decorder
- dogsled
- dupl
- durationcheck
- errchkjson
- errname
- execinquery
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
- importas
2022-06-11 01:34:45 +00:00
- ireturn
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
2022-08-12 23:53:18 +00:00
- nosnakecase
- nosprintfhostport
- prealloc
- 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