diff --git a/.golangci.yml b/.golangci.yml index 5682ada8..5987c1c3 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 be623f3c..a5753a60 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!") }