mirror of
https://github.com/sbrow/nix.git
synced 2026-06-27 18:58:32 -04:00
feat(go): Added depguard rules.
This commit is contained in:
1
templates/go/.air.toml
Normal file
1
templates/go/.air.toml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
tmp_dir = "var/air"
|
||||||
@@ -49,6 +49,23 @@ linters:
|
|||||||
- varnamelen
|
- varnamelen
|
||||||
- wsl_v5
|
- wsl_v5
|
||||||
settings:
|
settings:
|
||||||
|
depguard:
|
||||||
|
rules:
|
||||||
|
main:
|
||||||
|
list-mode: strict
|
||||||
|
files:
|
||||||
|
"**/main.go"
|
||||||
|
allow:
|
||||||
|
- "$gostd"
|
||||||
|
catchall:
|
||||||
|
list-mode: strict
|
||||||
|
files:
|
||||||
|
- "!$test"
|
||||||
|
- "!**/main.go"
|
||||||
|
- "**/internal/**"
|
||||||
|
allow:
|
||||||
|
- "$gostd"
|
||||||
|
- "golang.org/**"
|
||||||
recvcheck:
|
recvcheck:
|
||||||
disable-builtin: false
|
disable-builtin: false
|
||||||
exclusions:
|
exclusions:
|
||||||
|
|||||||
Reference in New Issue
Block a user