|
|
@ -48,24 +48,24 @@ linters-settings: |
|
|
|
rules: |
|
|
|
rules: |
|
|
|
main: |
|
|
|
main: |
|
|
|
deny: |
|
|
|
deny: |
|
|
|
- pkg: "sync/atomic" |
|
|
|
- pkg: "sync/atomic" |
|
|
|
desc: "Use go.uber.org/atomic instead of sync/atomic" |
|
|
|
desc: "Use go.uber.org/atomic instead of sync/atomic" |
|
|
|
- pkg: "github.com/stretchr/testify/assert" |
|
|
|
- pkg: "github.com/stretchr/testify/assert" |
|
|
|
desc: "Use github.com/stretchr/testify/require instead of github.com/stretchr/testify/assert" |
|
|
|
desc: "Use github.com/stretchr/testify/require instead of github.com/stretchr/testify/assert" |
|
|
|
- pkg: "github.com/go-kit/kit/log" |
|
|
|
- pkg: "github.com/go-kit/kit/log" |
|
|
|
desc: "Use github.com/go-kit/log instead of github.com/go-kit/kit/log" |
|
|
|
desc: "Use github.com/go-kit/log instead of github.com/go-kit/kit/log" |
|
|
|
- pkg: "io/ioutil" |
|
|
|
- pkg: "io/ioutil" |
|
|
|
desc: "Use corresponding 'os' or 'io' functions instead." |
|
|
|
desc: "Use corresponding 'os' or 'io' functions instead." |
|
|
|
- pkg: "regexp" |
|
|
|
- pkg: "regexp" |
|
|
|
desc: "Use github.com/grafana/regexp instead of regexp" |
|
|
|
desc: "Use github.com/grafana/regexp instead of regexp" |
|
|
|
- pkg: "github.com/pkg/errors" |
|
|
|
- pkg: "github.com/pkg/errors" |
|
|
|
desc: "Use 'errors' or 'fmt' instead of github.com/pkg/errors" |
|
|
|
desc: "Use 'errors' or 'fmt' instead of github.com/pkg/errors" |
|
|
|
- pkg: "gzip" |
|
|
|
- pkg: "gzip" |
|
|
|
desc: "Use github.com/klauspost/compress instead of gzip" |
|
|
|
desc: "Use github.com/klauspost/compress instead of gzip" |
|
|
|
- pkg: "zlib" |
|
|
|
- pkg: "zlib" |
|
|
|
desc: "Use github.com/klauspost/compress instead of zlib" |
|
|
|
desc: "Use github.com/klauspost/compress instead of zlib" |
|
|
|
- pkg: "golang.org/x/exp/slices" |
|
|
|
- pkg: "golang.org/x/exp/slices" |
|
|
|
desc: "Use 'slices' instead." |
|
|
|
desc: "Use 'slices' instead." |
|
|
|
errcheck: |
|
|
|
errcheck: |
|
|
|
exclude-functions: |
|
|
|
exclude-functions: |
|
|
|
# Don't flag lines such as "io.Copy(io.Discard, resp.Body)". |
|
|
|
# Don't flag lines such as "io.Copy(io.Discard, resp.Body)". |
|
|
@ -135,4 +135,3 @@ linters-settings: |
|
|
|
- require-error |
|
|
|
- require-error |
|
|
|
- suite-dont-use-pkg |
|
|
|
- suite-dont-use-pkg |
|
|
|
- suite-extra-assert-call |
|
|
|
- suite-extra-assert-call |
|
|
|
|
|
|
|
|
|
|
|