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 {