Fix typo and adds some tests for commands #127
Annotations
9 errors and 1 warning
tests:
pkg/cli/commands_test.go#L126
typeSwitchVar: 3 cases can benefit from type switch with assignment (gocritic)
|
tests:
pkg/cli/commands_test.go#L14
type `mockMacro` is unused (unused)
|
tests:
pkg/cli/commands_test.go#L16
func `(*mockMacro).Get` is unused (unused)
|
tests:
pkg/cli/commands_test.go#L214
only one cuddle assignment allowed before if statement (wsl)
|
tests:
pkg/cli/commands_test.go#L217
if statements should only be cuddled with assignments (wsl)
|
tests:
pkg/cli/commands_test.go#L21
fieldalignment: struct with 56 pointer bytes could be 48 (govet)
|
tests:
pkg/cli/commands_test.go#L154
fieldalignment: struct with 48 pointer bytes could be 32 (govet)
|
tests:
pkg/cli/commands_test.go#L223
fieldalignment: struct with 64 pointer bytes could be 48 (govet)
|
tests
issues found
|
tests:
pkg/cli/commands_test.go#L149
unused-parameter: parameter 'exCtx' seems to be unused, consider removing or renaming it as _ (revive)
|