Skip to content

Commit

Permalink
Disable unused-parameter golangci check (#191)
Browse files Browse the repository at this point in the history
* add lint rule exclusion for unused-parameter

* re-introduce the unused parameters in plugin.go
  • Loading branch information
mickmister authored Nov 20, 2023
1 parent 846ffb5 commit 376ea7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ issues:
linters:
- bodyclose
- scopelint # https://github.com/kyoh86/scopelint/issues/4
- linters:
- revive
text: unused-parameter
2 changes: 1 addition & 1 deletion server/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
}

Expand Down

0 comments on commit 376ea7e

Please sign in to comment.