mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-30 14:26:36 +08:00
autoresearch iter 27: drop one dead contextcheck suppression, document the other
This commit is contained in:
@@ -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
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user