From 916211004d3ee848d4e59c5bf0ff3ecab1cc1092 Mon Sep 17 00:00:00 2001 From: logikonline Date: Sun, 5 Apr 2026 09:09:01 -0400 Subject: [PATCH] docs(mcp): add explanation to nolint directive Clarifies why unparam is suppressed on toolListLandingTemplates with inline comment explaining interface requirement. --- routers/api/v2/mcp_pages.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v2/mcp_pages.go b/routers/api/v2/mcp_pages.go index 9645814efc..f7b47afa0d 100644 --- a/routers/api/v2/mcp_pages.go +++ b/routers/api/v2/mcp_pages.go @@ -270,7 +270,7 @@ func toolGetLandingConfig(ctx *context.APIContext, args map[string]any) (any, er return buildFullResponse(config), nil } -func toolListLandingTemplates(_ *context.APIContext, _ map[string]any) (any, error) { //nolint:unparam +func toolListLandingTemplates(_ *context.APIContext, _ map[string]any) (any, error) { //nolint:unparam // signature must match tool handler type templates := pages_module.ValidTemplates() displayNames := pages_module.TemplateDisplayNames()