chore(lint): add nosnakecase linter
This commit is contained in:
@@ -19,7 +19,6 @@ issues:
|
|||||||
source: "^.+= os\\.OpenFile\\(.+, .+, 0[0-9]{3}\\)"
|
source: "^.+= os\\.OpenFile\\(.+, .+, 0[0-9]{3}\\)"
|
||||||
linters:
|
linters:
|
||||||
- gomnd
|
- gomnd
|
||||||
|
|
||||||
- text: "^mnd: Magic number: 0[0-9]{3}, in <argument> detected$"
|
- text: "^mnd: Magic number: 0[0-9]{3}, in <argument> detected$"
|
||||||
source: "^.+= os\\.MkdirAll\\(.+, 0[0-9]{3}\\)"
|
source: "^.+= os\\.MkdirAll\\(.+, 0[0-9]{3}\\)"
|
||||||
linters:
|
linters:
|
||||||
@@ -30,6 +29,23 @@ issues:
|
|||||||
- text: "returns interface \\(github\\.com\\/vishvananda\\/netlink\\.Link\\)"
|
- text: "returns interface \\(github\\.com\\/vishvananda\\/netlink\\.Link\\)"
|
||||||
linters:
|
linters:
|
||||||
- ireturn
|
- 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:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
@@ -77,6 +93,7 @@ linters:
|
|||||||
- nilnil
|
- nilnil
|
||||||
- noctx
|
- noctx
|
||||||
- nolintlint
|
- nolintlint
|
||||||
|
- nosnakecase
|
||||||
- nosprintfhostport
|
- nosprintfhostport
|
||||||
- prealloc
|
- prealloc
|
||||||
- predeclared
|
- predeclared
|
||||||
|
|||||||
Reference in New Issue
Block a user