Skip to content

Fix typo and adds some tests for commands #127

Fix typo and adds some tests for commands

Fix typo and adds some tests for commands #127

Triggered via push November 12, 2023 05:42
Status Failure
Total duration 26s
Artifacts

main.yml

on: push
Fit to window
Zoom out
Zoom in

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)