Skip to content
Myr

chore(golangci-lint): upgrade to v2

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ville Skyttä · committed by Marc Khouzam · parent db3ddb5 · Browse files · 4 files+13 added−16 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+13 added−16 removed

  • other:+13 added−16 removed

4 files+13 added−16 removed

modified:.github/workflows/test.yml+1 added-1 removed
modified:.golangci.yml+10 added-13 removed
modified:command_test.go+1 added-1 removed
2924 unmodified lines
2925func TestHelpFuncExecuted(t *testing.T) {2926 helpText := "Long description"29272928 // Create a context that will be unique, not just the background context2929 //nolint:golint,staticcheck // We can safely use a basic type as key in tests.2929 //nolint:staticcheck // We can safely use a basic type as key in tests.2930 executionCtx := context.WithValue(context.Background(), "testKey", "123")29312932 child := &Command{Use: "child", Run: emptyRun}2933 child.SetHelpFunc(func(cmd *Command, args []string) {
21 unmodified lines
modified:completions_test.go+1 added-1 removed
1295 unmodified lines
1296 Run: emptyRun,1297 }1298 rootCmd.AddCommand(childCmd)12991300 //nolint:golint,staticcheck // We can safely use a basic type as key in tests.1300 //nolint:staticcheck // We can safely use a basic type as key in tests.1301 ctx := context.WithValue(context.Background(), "testKey", "123")13021303 // Test completing an empty string on the childCmd1304 _, output, err := executeCommandWithContextC(ctx, rootCmd, ShellCompNoDescRequestCmd, "childCmd", "")
2714 unmodified lines