mirror of https://github.com/status-im/consul.git
lint net/rpc usage (#12816)
Signed-off-by: acpana <8968914+acpana@users.noreply.github.com> Co-authored-by: R.B. Boyer <rb@hashicorp.com>
This commit is contained in:
parent
08f7e52d82
commit
8f5ddec17c
|
@ -8,6 +8,8 @@ linters:
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- unparam
|
- unparam
|
||||||
- forbidigo
|
- forbidigo
|
||||||
|
- gomodguard
|
||||||
|
- depguard
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
# Disable the default exclude list so that all excludes are explicitly
|
# Disable the default exclude list so that all excludes are explicitly
|
||||||
|
@ -75,6 +77,30 @@ linters-settings:
|
||||||
# Exclude godoc examples from forbidigo checks.
|
# Exclude godoc examples from forbidigo checks.
|
||||||
# Default: true
|
# Default: true
|
||||||
exclude_godoc_examples: false
|
exclude_godoc_examples: false
|
||||||
|
gomodguard:
|
||||||
|
blocked:
|
||||||
|
# List of blocked modules.
|
||||||
|
modules:
|
||||||
|
# Blocked module.
|
||||||
|
- github.com/hashicorp/net-rpc-msgpackrpc:
|
||||||
|
recommendations:
|
||||||
|
- github.com/hashicorp/consul-net-rpc/net-rpc-msgpackrpc
|
||||||
|
- github.com/hashicorp/go-msgpack:
|
||||||
|
recommendations:
|
||||||
|
- github.com/hashicorp/consul-net-rpc/go-msgpack
|
||||||
|
|
||||||
|
depguard:
|
||||||
|
list-type: denylist
|
||||||
|
include-go-root: true
|
||||||
|
# A list of packages for the list type specified.
|
||||||
|
# Default: []
|
||||||
|
packages:
|
||||||
|
- net/rpc
|
||||||
|
# A list of packages for the list type specified.
|
||||||
|
# Specify an error message to output when a denied package is used.
|
||||||
|
# Default: []
|
||||||
|
packages-with-error-message:
|
||||||
|
- net/rpc: 'only use forked copy in github.com/hashicorp/consul-net-rpc/net/rpc'
|
||||||
|
|
||||||
run:
|
run:
|
||||||
timeout: 10m
|
timeout: 10m
|
||||||
|
|
Loading…
Reference in New Issue