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
|
2024-10-11 18:05:40 +00:00
|
|
|
- err113
|
2022-02-26 13:49:53 +00:00
|
|
|
- containedctx
|
2024-03-22 09:02:31 +00:00
|
|
|
- maintidx
|
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 01:34:45 +00:00
|
|
|
- text: "returns interface \\(github\\.com\\/vishvananda\\/netlink\\.Link\\)"
|
|
|
|
|
linters:
|
|
|
|
|
- ireturn
|
2023-04-22 08:13:09 +00:00
|
|
|
- path: "internal\\/openvpn\\/pkcs8\\/descbc\\.go"
|
|
|
|
|
text: "newCipherDESCBCBlock returns interface \\(github\\.com\\/youmark\\/pkcs8\\.Cipher\\)"
|
|
|
|
|
linters:
|
|
|
|
|
- ireturn
|
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
|
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
|
2020-10-20 02:45:28 +00:00
|
|
|
- gci
|
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
|
2024-10-11 19:20:48 +00:00
|
|
|
- gofumpt
|
2020-10-20 02:45:28 +00:00
|
|
|
- goheader
|
2020-04-12 20:05:28 +00:00
|
|
|
- goimports
|
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-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
|
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
|