chore(lint): upgrade golangci-lint to v1.49.0

- Add linter `interfacebloat` and fix code issues
- Add linter `reassign`
- Remove deprecated linter `nosnakecase`
This commit is contained in:
Quentin McGaw
2022-08-24 19:41:26 +00:00
parent 8dfaebc737
commit aa53436e56
6 changed files with 64 additions and 23 deletions

View File

@@ -29,23 +29,6 @@ issues:
- text: "returns interface \\(github\\.com\\/vishvananda\\/netlink\\.Link\\)"
linters:
- ireturn
- 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:
@@ -83,6 +66,7 @@ linters:
- gosec
- grouper
- importas
- interfacebloat
- ireturn
- lll
- maintidx
@@ -94,11 +78,11 @@ linters:
- nilnil
- noctx
- nolintlint
- nosnakecase
- nosprintfhostport
- prealloc
- predeclared
- promlinter
- reassign
- revive
- rowserrcheck
- sqlclosecheck