Update depguard config syntax.
Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
parent
16c3cd35b1
commit
4e9b89f887
|
@ -31,14 +31,19 @@ issues:
|
||||||
|
|
||||||
linters-settings:
|
linters-settings:
|
||||||
depguard:
|
depguard:
|
||||||
list-type: blacklist
|
rules:
|
||||||
include-go-root: true
|
main:
|
||||||
packages-with-error-message:
|
deny:
|
||||||
- sync/atomic: "Use go.uber.org/atomic instead of sync/atomic"
|
- pkg: "sync/atomic"
|
||||||
- github.com/stretchr/testify/assert: "Use github.com/stretchr/testify/require instead of github.com/stretchr/testify/assert"
|
desc: "Use go.uber.org/atomic instead of sync/atomic"
|
||||||
- github.com/go-kit/kit/log: "Use github.com/go-kit/log instead of github.com/go-kit/kit/log"
|
- pkg: "github.com/stretchr/testify/assert"
|
||||||
- io/ioutil: "Use corresponding 'os' or 'io' functions instead."
|
desc: "Use github.com/stretchr/testify/require instead of github.com/stretchr/testify/assert"
|
||||||
- regexp: "Use github.com/grafana/regexp instead of regexp"
|
- pkg: "github.com/go-kit/kit/log"
|
||||||
|
desc: "Use github.com/go-kit/log instead of github.com/go-kit/kit/log"
|
||||||
|
- pkg: "io/ioutil"
|
||||||
|
desc: "Use corresponding 'os' or 'io' functions instead."
|
||||||
|
- pkg: "regexp"
|
||||||
|
desc: "Use github.com/grafana/regexp instead of regexp"
|
||||||
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)".
|
||||||
|
|
Loading…
Reference in New Issue