autoresearch iter 27: drop one dead contextcheck suppression, document the other

This commit is contained in:
ryan
2026-08-29 18:30:20 +08:00
parent ea97b64407
commit 31f3af61c5
2 changed files with 2 additions and 4 deletions
-2
View File
@@ -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 {
+2 -2
View File
@@ -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 {