Disable unused-parameter golangci check (#191)

* add lint rule exclusion for unused-parameter

* re-introduce the unused parameters in plugin.go
This commit is contained in:
Michael Kochell 2023-11-20 10:57:33 -05:00 committed by GitHub
parent 846ffb50d3
commit 376ea7e1f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -46,3 +46,6 @@ issues:
linters: linters:
- bodyclose - bodyclose
- scopelint # https://github.com/kyoh86/scopelint/issues/4 - scopelint # https://github.com/kyoh86/scopelint/issues/4
- linters:
- revive
text: unused-parameter

View file

@ -21,7 +21,7 @@ type Plugin struct {
} }
// ServeHTTP demonstrates a plugin that handles HTTP requests by greeting the world. // 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!") fmt.Fprint(w, "Hello, world!")
} }