chore(lint): add containedctx, decorder and errchkjson
This commit is contained in:
@@ -19,7 +19,7 @@ func newDNSHandler(ctx context.Context, looper dns.Looper,
|
||||
}
|
||||
|
||||
type dnsHandler struct {
|
||||
ctx context.Context
|
||||
ctx context.Context //nolint:containedctx
|
||||
looper dns.Looper
|
||||
warner warner
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ func newHandlerV0(ctx context.Context, logger infoWarner,
|
||||
}
|
||||
|
||||
type handlerV0 struct {
|
||||
ctx context.Context
|
||||
ctx context.Context //nolint:containedctx
|
||||
logger infoWarner
|
||||
vpn vpn.Looper
|
||||
dns dns.Looper
|
||||
|
||||
@@ -21,7 +21,7 @@ func newOpenvpnHandler(ctx context.Context, looper vpn.Looper,
|
||||
}
|
||||
|
||||
type openvpnHandler struct {
|
||||
ctx context.Context
|
||||
ctx context.Context //nolint:containedctx
|
||||
looper vpn.Looper
|
||||
pf portforward.Getter
|
||||
warner warner
|
||||
|
||||
@@ -21,7 +21,7 @@ func newUpdaterHandler(
|
||||
}
|
||||
|
||||
type updaterHandler struct {
|
||||
ctx context.Context
|
||||
ctx context.Context //nolint:containedctx
|
||||
looper updater.Looper
|
||||
warner warner
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user