benchttp / engine

Benchttp library in Go to run performance tests on HTTP endpoints.
Other
4 stars 1 forks source link

ci: fix issues from newer version of golangci-lint #39

Closed moreirathomas closed 2 years ago

moreirathomas commented 2 years ago

Description

golanci-lint will only support the 2 latest version of go (1.18 and 1.19). Pinning a previous version in the gihtub action seems to not work as expected. After investigations the rules which produces ci fails are easy to fix manually. This PR offer this fix and some related ones.

Changes

The breaking changes in golangci-lint comes from go 1.19 new go fmt rules for body of code in documentation comments:

// A comment with a white space and a tab produces 'File is not `gofumpt`-ed with `-extra` (gofumpt)'
//  a := Foo()
func Foo() Type {}

// A comment with only a tab is `gofumpt`-ed. There is no error
//  a := Foo()
func Foo() Type {}