clean up #3564
reviewdog [golangci] report
reported by reviewdog 🐶
Findings (9)
executor/executor_test.go|244 col 4| missing type in composite literal (typecheck)
executor/executor_test.go|252 col 4| missing type in composite literal (typecheck)
executor/executor_test.go|260 col 4| missing type in composite literal (typecheck)
runtime/kubernetes/apis/vela/register.go|1 col 18| Expected:2023, Actual: 2022 Target Brands, Inc. All rights reserved. (goheader)
runtime/kubernetes/apis/doc.go|1 col 18| Expected:2023, Actual: 2022 Target Brands, Inc. All rights reserved. (goheader)
mock/doc.go|1 col 18| Expected:2023, Actual: 2022 Target Brands, Inc. All rights reserved. (goheader)
mock/docker/swarm.go|24 col 42| unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
mock/docker/swarm.go|33 col 34| unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
mock/docker/distribution.go|21 col 51| unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
Filtered Findings (0)
Annotations
Check failure on line 244 in executor/executor_test.go
github-actions / golangci
[golangci] executor/executor_test.go#L244
missing type in composite literal (typecheck)
Raw output
executor/executor_test.go:244:4: missing type in composite literal (typecheck)
{
^
Check failure on line 252 in executor/executor_test.go
github-actions / golangci
[golangci] executor/executor_test.go#L252
missing type in composite literal (typecheck)
Raw output
executor/executor_test.go:252:4: missing type in composite literal (typecheck)
{
^
Check failure on line 260 in executor/executor_test.go
github-actions / golangci
[golangci] executor/executor_test.go#L260
missing type in composite literal (typecheck)
Raw output
executor/executor_test.go:260:4: missing type in composite literal (typecheck)
{
^
Check failure on line 1 in runtime/kubernetes/apis/vela/register.go
github-actions / golangci
[golangci] runtime/kubernetes/apis/vela/register.go#L1
Expected:2023, Actual: 2022 Target Brands, Inc. All rights reserved. (goheader)
Raw output
runtime/kubernetes/apis/vela/register.go:1:18: Expected:2023, Actual: 2022 Target Brands, Inc. All rights reserved. (goheader)
// Copyright (c) 2022 Target Brands, Inc. All rights reserved.
^
Check failure on line 1 in runtime/kubernetes/apis/doc.go
github-actions / golangci
[golangci] runtime/kubernetes/apis/doc.go#L1
Expected:2023, Actual: 2022 Target Brands, Inc. All rights reserved. (goheader)
Raw output
runtime/kubernetes/apis/doc.go:1:18: Expected:2023, Actual: 2022 Target Brands, Inc. All rights reserved. (goheader)
// Copyright (c) 2022 Target Brands, Inc. All rights reserved.
^
Check failure on line 1 in mock/doc.go
github-actions / golangci
[golangci] mock/doc.go#L1
Expected:2023, Actual: 2022 Target Brands, Inc. All rights reserved. (goheader)
Raw output
mock/doc.go:1:18: Expected:2023, Actual: 2022 Target Brands, Inc. All rights reserved. (goheader)
// Copyright (c) 2022 Target Brands, Inc. All rights reserved.
^
Check failure on line 24 in mock/docker/swarm.go
github-actions / golangci
[golangci] mock/docker/swarm.go#L24
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
Raw output
mock/docker/swarm.go:24:42: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
func (s *SwarmService) SwarmGetUnlockKey(ctx context.Context) (types.SwarmUnlockKeyResponse, error) {
^
Check failure on line 33 in mock/docker/swarm.go
github-actions / golangci
[golangci] mock/docker/swarm.go#L33
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
Raw output
mock/docker/swarm.go:33:34: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
func (s *SwarmService) SwarmInit(ctx context.Context, req swarm.InitRequest) (string, error) {
^
Check failure on line 21 in mock/docker/distribution.go
github-actions / golangci
[golangci] mock/docker/distribution.go#L21
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
Raw output
mock/docker/distribution.go:21:51: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
func (d *DistributionService) DistributionInspect(ctx context.Context, image, encodedRegistryAuth string) (registry.DistributionInspect, error) {
^