|
|
|
@ -64,6 +64,7 @@ linters-settings:
|
|
|
|
|
forbid:
|
|
|
|
|
- '\brequire\.New\b(# Use package-level functions with explicit TestingT)?'
|
|
|
|
|
- '\bassert\.New\b(# Use package-level functions with explicit TestingT)?'
|
|
|
|
|
- '\"net\/rpc\"(# Use github.com/hashicorp/consul-net-rpc/net/rpc for net/rpc needs)?'
|
|
|
|
|
# Exclude godoc examples from forbidigo checks.
|
|
|
|
|
# Default: true
|
|
|
|
|
exclude_godoc_examples: false
|
|
|
|
@ -71,11 +72,6 @@ linters-settings:
|
|
|
|
|
blocked:
|
|
|
|
|
# List of blocked modules.
|
|
|
|
|
modules:
|
|
|
|
|
# Blocked module.
|
|
|
|
|
- net/rpc:
|
|
|
|
|
# Recommended modules that should be used instead. (Optional)
|
|
|
|
|
recommendations:
|
|
|
|
|
- github.com/hashicorp/consul-net-rpc/net/rpc
|
|
|
|
|
- github.com/hashicorp/net-rpc-msgpackrpc:
|
|
|
|
|
recommendations:
|
|
|
|
|
- github.com/hashicorp/consul-net-rpc/net-rpc-msgpackrpc
|
|
|
|
|