2020-04-12 20:05:28 +00:00
|
|
|
linters-settings:
|
|
|
|
|
misspell:
|
|
|
|
|
locale: US
|
|
|
|
|
|
2020-11-19 08:50:55 -05:00
|
|
|
issues:
|
|
|
|
|
exclude-rules:
|
|
|
|
|
- path: _test\.go
|
|
|
|
|
linters:
|
|
|
|
|
- dupl
|
2021-05-30 16:14:08 +00:00
|
|
|
- goerr113
|
2022-02-26 13:49:53 +00:00
|
|
|
- containedctx
|
2022-06-11 02:41:16 +00:00
|
|
|
- path: "internal\\/server\\/.+\\.go"
|
2020-12-29 01:02:47 +00:00
|
|
|
linters:
|
2021-02-06 17:16:58 +00:00
|
|
|
- dupl
|
2022-06-11 02:41:16 +00:00
|
|
|
- path: "internal\\/configuration\\/settings\\/.+\\.go"
|
2021-02-17 20:36:30 -05:00
|
|
|
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}\\)"
|
2021-06-20 16:39:38 +00:00
|
|
|
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}\\)"
|
2021-06-20 16:39:38 +00:00
|
|
|
linters:
|
|
|
|
|
- gomnd
|
2022-01-26 17:23:55 -05:00
|
|
|
- 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
|
2022-01-26 17:23:55 -05:00
|
|
|
|
2020-04-12 20:05:28 +00:00
|
|
|
linters:
|
|
|
|
|
enable:
|
2021-09-14 19:26:46 +00:00
|
|
|
# - cyclop
|
|
|
|
|
# - errorlint
|
2020-10-20 02:45:28 +00:00
|
|
|
- asciicheck
|
2021-11-08 22:41:20 +00:00
|
|
|
- bidichk
|
2020-04-12 20:05:28 +00:00
|
|
|
- bodyclose
|
2022-02-26 13:49:53 +00:00
|
|
|
- containedctx
|
|
|
|
|
- decorder
|
2020-04-12 20:05:28 +00:00
|
|
|
- dogsled
|
|
|
|
|
- dupl
|
2021-09-14 19:26:46 +00:00
|
|
|
- durationcheck
|
2022-02-26 13:49:53 +00:00
|
|
|
- errchkjson
|
2021-09-14 19:26:46 +00:00
|
|
|
- errname
|
2022-05-27 00:52:25 +00:00
|
|
|
- execinquery
|
2020-10-20 02:45:28 +00:00
|
|
|
- exhaustive
|
|
|
|
|
- exportloopref
|
2021-09-14 19:26:46 +00:00
|
|
|
- forcetypeassert
|
2020-10-20 02:45:28 +00:00
|
|
|
- gci
|
2020-04-12 20:05:28 +00:00
|
|
|
- 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
|
2020-04-12 20:05:28 +00:00
|
|
|
- goimports
|
2020-10-20 02:45:28 +00:00
|
|
|
- gomnd
|
2021-09-14 19:26:46 +00:00
|
|
|
- gomoddirectives
|
2020-10-20 02:45:28 +00:00
|
|
|
- goprintffuncname
|
2020-04-12 20:05:28 +00:00
|
|
|
- gosec
|
2022-02-26 13:49:53 +00:00
|
|
|
- grouper
|
2021-09-14 19:26:46 +00:00
|
|
|
- importas
|
2022-06-11 01:34:45 +00:00
|
|
|
- ireturn
|
2020-10-20 02:45:28 +00:00
|
|
|
- lll
|
2022-02-26 13:49:53 +00:00
|
|
|
- maintidx
|
2021-09-14 19:26:46 +00:00
|
|
|
- makezero
|
2020-04-12 20:05:28 +00:00
|
|
|
- misspell
|
|
|
|
|
- nakedret
|
2020-10-20 02:45:28 +00:00
|
|
|
- nestif
|
2021-05-30 03:09:22 +00:00
|
|
|
- nilerr
|
2021-11-08 22:41:20 +00:00
|
|
|
- nilnil
|
2020-10-20 02:45:28 +00:00
|
|
|
- noctx
|
|
|
|
|
- nolintlint
|
2022-08-12 23:53:18 +00:00
|
|
|
- nosnakecase
|
2022-05-27 00:52:25 +00:00
|
|
|
- nosprintfhostport
|
2020-04-12 20:05:28 +00:00
|
|
|
- prealloc
|
2021-05-30 03:09:22 +00:00
|
|
|
- predeclared
|
2021-09-14 19:26:46 +00:00
|
|
|
- promlinter
|
2021-06-20 16:12:39 +00:00
|
|
|
- revive
|
2020-04-12 20:05:28 +00:00
|
|
|
- rowserrcheck
|
2020-10-20 02:45:28 +00:00
|
|
|
- sqlclosecheck
|
2021-11-08 22:41:20 +00:00
|
|
|
- tenv
|
2021-05-30 03:09:22 +00:00
|
|
|
- thelper
|
|
|
|
|
- tparallel
|
2020-04-12 20:05:28 +00:00
|
|
|
- unconvert
|
|
|
|
|
- unparam
|
2021-09-14 19:26:46 +00:00
|
|
|
- wastedassign
|
2020-04-12 20:05:28 +00:00
|
|
|
- whitespace
|
|
|
|
|
|
|
|
|
|
run:
|
|
|
|
|
skip-dirs:
|
|
|
|
|
- .devcontainer
|
|
|
|
|
- .github
|
2020-11-19 08:50:55 -05:00
|
|
|
- doc
|