mirror of
https://github.com/sbrow/nix.git
synced 2026-06-27 10:48:33 -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
|
||||
- wsl_v5
|
||||
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:
|
||||
disable-builtin: false
|
||||
exclusions:
|
||||
|
||||
Reference in New Issue
Block a user