build(deps): bump github.com/polyfloyd/go-errorlint from 1.2.0 to 1.3.0 (#3675)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
parent
a68dc433a3
commit
ccf802550e
2
go.mod
2
go.mod
@ -75,7 +75,7 @@ require (
|
||||
github.com/nishanths/exhaustive v0.9.5
|
||||
github.com/nishanths/predeclared v0.2.2
|
||||
github.com/nunnatsa/ginkgolinter v0.9.0
|
||||
github.com/polyfloyd/go-errorlint v1.2.0
|
||||
github.com/polyfloyd/go-errorlint v1.3.0
|
||||
github.com/quasilyte/go-ruleguard/dsl v0.3.22
|
||||
github.com/ryancurrah/gomodguard v1.3.0
|
||||
github.com/ryanrolds/sqlclosecheck v0.4.0
|
||||
|
4
go.sum
generated
4
go.sum
generated
@ -411,8 +411,8 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
|
||||
github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/polyfloyd/go-errorlint v1.2.0 h1:d+f5Xh4ppX2ndg0DzkjXqqd127NgDb/SyRgYTisCHAQ=
|
||||
github.com/polyfloyd/go-errorlint v1.2.0/go.mod h1:Uss7Bc/izYG0leCMRx3WVlrpqWedSZk7V/FUQW6VJ6U=
|
||||
github.com/polyfloyd/go-errorlint v1.3.0 h1:zGCaDE5IlW2OH6oE6lWu5oTY5d9qyEi9sapdaf8xtV4=
|
||||
github.com/polyfloyd/go-errorlint v1.3.0/go.mod h1:fRO4o5gWAmenGTZVo8wfKVreuAijtj0DwpfgkQVuFis=
|
||||
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw=
|
||||
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE=
|
||||
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
|
||||
|
8
test/testdata/errorlint_errorf.go
vendored
8
test/testdata/errorlint_errorf.go
vendored
@ -16,11 +16,11 @@ func (customError) Error() string {
|
||||
func errorLintErrorf() {
|
||||
err := errors.New("oops")
|
||||
fmt.Errorf("error: %w", err)
|
||||
fmt.Errorf("error: %v", err) // want "non-wrapping format verb for fmt.Errorf. Use `%w` to format errors"
|
||||
fmt.Errorf("%v %v", err, err) // want "non-wrapping format verb for fmt.Errorf. Use `%w` to format errors"
|
||||
fmt.Errorf("error: %s", err.Error()) // want "non-wrapping format verb for fmt.Errorf. Use `%w` to format errors"
|
||||
fmt.Errorf("error: %v", err) // want "non-wrapping format verb for fmt.Errorf. Use `%w` to format errors"
|
||||
fmt.Errorf("%v %v", err, err) // want "non-wrapping format verb for fmt.Errorf. Use `%w` to format errors"
|
||||
fmt.Errorf("error: %s", err.Error())
|
||||
customError := customError{}
|
||||
fmt.Errorf("error: %s", customError.Error()) // want "non-wrapping format verb for fmt.Errorf. Use `%w` to format errors"
|
||||
fmt.Errorf("error: %s", customError.Error())
|
||||
strErr := "oops"
|
||||
fmt.Errorf("%v", strErr)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user