Skip to content

Commit b97d269

Browse files
committed
Disable obsolete linters and add depguard config
1 parent 8a4d418 commit b97d269

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.golangci.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,28 @@ linters:
2323
- musttag
2424
- nosnakecase
2525
- wrapcheck
26+
- golint
27+
- scopelint
28+
- interfacer
29+
- varcheck
30+
- deadcode
31+
- ifshort
32+
- structcheck
33+
linters-settings:
34+
depguard:
35+
rules:
36+
main:
37+
files:
38+
- $all
39+
- "!$test"
40+
allow:
41+
- $gostd
42+
- "github.com/gatewayd-io/gatewayd-plugin-sdk"
43+
- "github.com/gatewayd-io/gatewayd-plugin-cache"
44+
- "github.com/prometheus/client_golang"
45+
- "github.com/hashicorp/go-plugin"
46+
- "github.com/hashicorp/go-hclog"
47+
- "github.com/go-redis/redis/v8"
48+
- "github.com/getsentry/sentry-go"
49+
- "github.com/spf13/cast"
50+
- "github.com/go-co-op/gocron"

0 commit comments

Comments
 (0)