From c5cc07900c67c2c8b565758dc4a66bc36b8cd7a9 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 6 Oct 2023 13:49:39 +0700 Subject: all: add task linter and fix all warnings We use revive [1], fieldalignment [2], and shadow [3] as linters. [1] https://github.com/mgechev/revive [2] https://pkg.go.dev/golang.org/x/tools@v0.13.0/go/analysis/passes/fieldalignment/cmd/fieldalignment [3] https://pkg.go.dev/golang.org/x/tools@v0.13.0/go/analysis/passes/shadow/cmd/shadow --- cli_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'cli_test.go') diff --git a/cli_test.go b/cli_test.go index 5eeffd4..8d0218c 100644 --- a/cli_test.go +++ b/cli_test.go @@ -198,10 +198,11 @@ func TestCli_SetPrivateKey(t *testing.T) { } var ( - gotLabels []string = cli.List() - label string - issuer *Issuer - got bytes.Buffer + gotLabels = cli.List() + + label string + issuer *Issuer + got bytes.Buffer ) for _, label = range gotLabels { -- cgit v1.3-5-g45d5