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:
parent
846ffb50d3
commit
376ea7e1f5
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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!")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue