From 31f3af61c50c445c27c959cab67bb3395a4f0577 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 29 Aug 2026 18:30:20 +0800 Subject: [PATCH] autoresearch iter 27: drop one dead contextcheck suppression, document the other --- backend/cmd/app.go | 2 -- backend/core/app.go | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/cmd/app.go b/backend/cmd/app.go index 179744ac..2d650774 100644 --- a/backend/cmd/app.go +++ b/backend/cmd/app.go @@ -64,8 +64,6 @@ func runProfileApp(profile core.Profile, mode string, listensForHTTP bool) { } // newWaveletApp creates a core.App wired with Wavelet platform infrastructure, domain plugins, and profile drivers. -// -//nolint:contextcheck func newWaveletApp(profile core.Profile, opts ...core.AppOption) *core.App { src, err := config.NewSource() if err != nil { diff --git a/backend/core/app.go b/backend/core/app.go index 7cb6f083..89af124c 100644 --- a/backend/core/app.go +++ b/backend/core/app.go @@ -583,9 +583,9 @@ func (a *App) Stop(ctx ...context.Context) error { } // Run starts the application and blocks until an OS signal (SIGINT, SIGTERM) or context cancellation is received, -// then executes graceful shutdown. +// then executes graceful shutdown. It forwards a sigCtx derived from the caller's context to Start. // -//nolint:contextcheck // Run forwards a sigCtx derived from the caller's context to Start; the rule cannot follow the variadic parameter +//nolint:contextcheck // the caller's ctx does reach Start via sigCtx; the rule cannot follow Run's variadic context parameter func (a *App) Run(ctx ...context.Context) error { var parent context.Context switch {