chore: fix golangci-lint issues

Signed-off-by: Pascal Hofmann <mail@pascalhofmann.de>
This commit is contained in:
Pascal Hofmann
2025-12-12 14:21:54 +01:00
parent 4ac0a6a524
commit dd450a5352
16 changed files with 26 additions and 21 deletions

View File

@@ -19,6 +19,9 @@ import (
"github.com/terraform-docs/terraform-docs/internal/types"
)
// Ensure formatter fully satisfy plugin interface.
var _ goplugin.Plugin = &formatter{}
// handshakeConfig is used for UX. ProcotolVersion will be updated by incompatible changes.
var handshakeConfig = goplugin.HandshakeConfig{
ProtocolVersion: 7,
@@ -59,7 +62,7 @@ func (f *formatter) Server(b *goplugin.MuxBroker) (interface{}, error) {
}
// Client returns an RPC client for the host.
func (formatter) Client(b *goplugin.MuxBroker, c *rpc.Client) (interface{}, error) {
func (*formatter) Client(b *goplugin.MuxBroker, c *rpc.Client) (interface{}, error) {
return &Client{rpcClient: c, broker: b}, nil
}