From 376ea7e1f5457967bf7521fe65f3fb527df9c024 Mon Sep 17 00:00:00 2001 From: Michael Kochell <6913320+mickmister@users.noreply.github.com> Date: Mon, 20 Nov 2023 10:57:33 -0500 Subject: [PATCH] Disable unused-parameter golangci check (#191) * add lint rule exclusion for unused-parameter * re-introduce the unused parameters in plugin.go --- .golangci.yml | 3 +++ server/plugin.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 5682ada..5987c1c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -46,3 +46,6 @@ issues: linters: - bodyclose - scopelint # https://github.com/kyoh86/scopelint/issues/4 + - linters: + - revive + text: unused-parameter diff --git a/server/plugin.go b/server/plugin.go index be623f3..a5753a6 100644 --- a/server/plugin.go +++ b/server/plugin.go @@ -21,7 +21,7 @@ type Plugin struct { } // ServeHTTP demonstrates a plugin that handles HTTP requests by greeting the world. -func (p *Plugin) ServeHTTP(_ *plugin.Context, w http.ResponseWriter, _ *http.Request) { +func (p *Plugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, "Hello, world!") }