2025-08-15 16:53:05 +00:00
|
|
|
version: "2"
|
2020-04-12 20:05:28 +00:00
|
|
|
|
2025-08-15 16:53:05 +00:00
|
|
|
formatters:
|
|
|
|
|
enable:
|
|
|
|
|
- gci
|
|
|
|
|
- gofumpt
|
|
|
|
|
- goimports
|
|
|
|
|
exclusions:
|
|
|
|
|
generated: lax
|
|
|
|
|
paths:
|
|
|
|
|
- third_party$
|
|
|
|
|
- builtin$
|
|
|
|
|
- examples$
|
2022-01-26 17:23:55 -05:00
|
|
|
|
2020-04-12 20:05:28 +00:00
|
|
|
linters:
|
2025-08-15 16:53:05 +00:00
|
|
|
settings:
|
|
|
|
|
misspell:
|
|
|
|
|
locale: US
|
|
|
|
|
goconst:
|
|
|
|
|
ignore-string-values:
|
|
|
|
|
# commonly used settings strings
|
|
|
|
|
- "^disabled$"
|
|
|
|
|
# Firewall and routing strings
|
|
|
|
|
- "^(ACCEPT|DROP)$"
|
|
|
|
|
- "^--delete$"
|
|
|
|
|
- "^all$"
|
|
|
|
|
- "^(tcp|udp)$"
|
|
|
|
|
# Server route strings
|
|
|
|
|
- "^/status$"
|
|
|
|
|
|
|
|
|
|
exclusions:
|
|
|
|
|
generated: lax
|
|
|
|
|
presets:
|
|
|
|
|
- comments
|
|
|
|
|
- common-false-positives
|
|
|
|
|
- legacy
|
|
|
|
|
- std-error-handling
|
|
|
|
|
rules:
|
|
|
|
|
- linters:
|
|
|
|
|
- containedctx
|
|
|
|
|
- dupl
|
|
|
|
|
- err113
|
|
|
|
|
- maintidx
|
|
|
|
|
path: _test\.go
|
|
|
|
|
- linters:
|
|
|
|
|
- dupl
|
|
|
|
|
path: internal\/server\/.+\.go
|
|
|
|
|
- linters:
|
|
|
|
|
- ireturn
|
|
|
|
|
text: returns interface \(github\.com\/vishvananda\/netlink\.Link\)
|
|
|
|
|
- linters:
|
|
|
|
|
- ireturn
|
|
|
|
|
path: internal\/openvpn\/pkcs8\/descbc\.go
|
|
|
|
|
text: newCipherDESCBCBlock returns interface \(github\.com\/youmark\/pkcs8\.Cipher\)
|
|
|
|
|
- linters:
|
|
|
|
|
- revive
|
|
|
|
|
path: internal\/provider\/(common|utils)\/.+\.go
|
|
|
|
|
text: "var-naming: avoid (bad|meaningless) package names"
|
2025-11-13 14:05:26 -05:00
|
|
|
- linters:
|
|
|
|
|
- lll
|
|
|
|
|
source: "^// https://.+$"
|
2025-10-30 03:44:31 +01:00
|
|
|
- linters:
|
|
|
|
|
- err113
|
|
|
|
|
- mnd
|
|
|
|
|
path: ci\/.+\.go
|
2025-08-15 16:53:05 +00:00
|
|
|
|
|
|
|
|
paths:
|
|
|
|
|
- third_party$
|
|
|
|
|
- builtin$
|
|
|
|
|
- examples$
|
2020-04-12 20:05:28 +00:00
|
|
|
enable:
|
2021-09-14 19:26:46 +00:00
|
|
|
# - cyclop
|
|
|
|
|
# - errorlint
|
2022-08-12 23:54:20 +00:00
|
|
|
- asasalint
|
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
|
2024-10-11 18:28:00 +00:00
|
|
|
- copyloopvar
|
2022-02-26 13:49:53 +00:00
|
|
|
- decorder
|
2020-04-12 20:05:28 +00:00
|
|
|
- dogsled
|
|
|
|
|
- dupl
|
2023-06-08 07:21:12 +00:00
|
|
|
- dupword
|
2021-09-14 19:26:46 +00:00
|
|
|
- durationcheck
|
2024-10-11 18:05:40 +00:00
|
|
|
- err113
|
2022-02-26 13:49:53 +00:00
|
|
|
- errchkjson
|
2021-09-14 19:26:46 +00:00
|
|
|
- errname
|
2020-10-20 02:45:28 +00:00
|
|
|
- exhaustive
|
2024-10-11 18:28:00 +00:00
|
|
|
- fatcontext
|
2021-09-14 19:26:46 +00:00
|
|
|
- forcetypeassert
|
2023-06-08 07:21:12 +00:00
|
|
|
- gocheckcompilerdirectives
|
2020-04-12 20:05:28 +00:00
|
|
|
- gochecknoglobals
|
|
|
|
|
- gochecknoinits
|
|
|
|
|
- gocognit
|
|
|
|
|
- goconst
|
|
|
|
|
- gocritic
|
|
|
|
|
- gocyclo
|
2020-10-20 02:45:28 +00:00
|
|
|
- godot
|
|
|
|
|
- goheader
|
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
|
2023-06-08 07:27:21 +00:00
|
|
|
- gosmopolitan
|
2022-02-26 13:49:53 +00:00
|
|
|
- grouper
|
2021-09-14 19:26:46 +00:00
|
|
|
- importas
|
2022-08-24 19:41:26 +00:00
|
|
|
- interfacebloat
|
2024-10-11 18:28:00 +00:00
|
|
|
- intrange
|
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
|
2023-06-08 07:27:21 +00:00
|
|
|
- mirror
|
2020-04-12 20:05:28 +00:00
|
|
|
- misspell
|
2024-10-11 18:05:40 +00:00
|
|
|
- mnd
|
2023-06-08 07:26:29 +00:00
|
|
|
- musttag
|
2020-04-12 20:05:28 +00:00
|
|
|
- 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-05-27 00:52:25 +00:00
|
|
|
- nosprintfhostport
|
2023-06-08 07:21:12 +00:00
|
|
|
- paralleltest
|
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
|
2022-08-24 19:41:26 +00:00
|
|
|
- reassign
|
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
|
2023-06-08 07:27:21 +00:00
|
|
|
- tagalign
|
2021-05-30 03:09:22 +00:00
|
|
|
- thelper
|
|
|
|
|
- tparallel
|
2020-04-12 20:05:28 +00:00
|
|
|
- unconvert
|
|
|
|
|
- unparam
|
2022-08-12 23:54:20 +00:00
|
|
|
- usestdlibvars
|
2021-09-14 19:26:46 +00:00
|
|
|
- wastedassign
|
2020-04-12 20:05:28 +00:00
|
|
|
- whitespace
|
2023-06-08 07:27:21 +00:00
|
|
|
- zerologlint
|