Skip to content

chore: push up updates #12555

chore: push up updates

chore: push up updates #12555

Triggered via push February 27, 2024 21:01
Status Failure
Total duration 1m 12s
Artifacts

validate.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

50 errors
[golangci] database/step/count.go#L6: database/step/count.go#L6
File is not `goimports`-ed (goimports)
[golangci] database/step/count_build.go#L6: database/step/count_build.go#L6
File is not `goimports`-ed (goimports)
[golangci] database/step/create.go#L6: database/step/create.go#L6
File is not `goimports`-ed (goimports)
[golangci] database/step/get_build.go#L14: database/step/get_build.go#L14
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] database/step/update.go#L14: database/step/update.go#L14
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] database/step/create.go#L14: database/step/create.go#L14
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] compiler/native/expand.go#L48: compiler/native/expand.go#L48
Function 'ExpandSteps' has too many statements (71 > 70) (funlen)
[golangci] compiler/native/compile_test.go#L1818: compiler/native/compile_test.go#L1818
G601: Implicit memory aliasing in for loop. (gosec)
[golangci] compiler/native/compile_test.go#L3129: compiler/native/compile_test.go#L3129
G601: Implicit memory aliasing in for loop. (gosec)
[golangci] compiler/native/compile_test.go#L3477: compiler/native/compile_test.go#L3477
G601: Implicit memory aliasing in for loop. (gosec)
[golangci] compiler/native/parse_test.go#L861: compiler/native/parse_test.go#L861
unused-parameter: parameter 'p' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] database/pipeline/create.go#L3: database/pipeline/create.go#L3
3-53 lines are duplicate of `database/pipeline/update.go:3-54` (dupl)
[golangci] database/pipeline/update.go#L3: database/pipeline/update.go#L3
3-54 lines are duplicate of `database/pipeline/create.go:3-53` (dupl)
[golangci] compiler/registry/github/github.go#L41: compiler/registry/github/github.go#L41
string `/api/v3/` has 5 occurrences, make it a constant (goconst)
[golangci] secret/vault/refresh_test.go#L45: secret/vault/refresh_test.go#L45
unused-parameter: parameter 'r' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] secret/vault/refresh_test.go#L71: secret/vault/refresh_test.go#L71
unused-parameter: parameter 'in' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] secret/vault/refresh_test.go#L108: secret/vault/refresh_test.go#L108
unused-parameter: parameter 'in' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] secret/vault/refresh_test.go#L128: secret/vault/refresh_test.go#L128
unused-parameter: parameter 'in' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] secret/vault/refresh_test.go#L201: secret/vault/refresh_test.go#L201
unused-parameter: parameter 'r' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] database/deployment/create.go#L3: database/deployment/create.go#L3
3-33 lines are duplicate of `database/deployment/update.go:3-32` (dupl)
[golangci] database/deployment/update.go#L3: database/deployment/update.go#L3
3-32 lines are duplicate of `database/deployment/create.go:3-33` (dupl)
[golangci] queue/redis/redis_test.go#L95: queue/redis/redis_test.go#L95
`_steps` is unused (deadcode)
[golangci] database/resource.go#L29: database/resource.go#L29
Non-inherited new context, use function like `context.WithXXX` instead (contextcheck)
[golangci] database/resource.go#L40: database/resource.go#L40
Non-inherited new context, use function like `context.WithXXX` instead (contextcheck)
[golangci] database/resource.go#L53: database/resource.go#L53
Non-inherited new context, use function like `context.WithXXX` instead (contextcheck)
[golangci] mock/server/schedule.go#L3: mock/server/schedule.go#L3
3-142 lines are duplicate of `mock/server/secret.go:4-189` (dupl)
[golangci] mock/server/authentication.go#L41: mock/server/authentication.go#L41
string `error` has 4 occurrences, make it a constant (goconst)
[golangci] compiler/template/starlark/starlark.go#L131: compiler/template/starlark/starlark.go#L131
only one cuddle assignment allowed before if statement (wsl)
[golangci] api/step/plan.go#L41: api/step/plan.go#L41
not enough arguments in call to planStep
[golangci] api/step/plan.go#L71: api/step/plan.go#L71
s.SetCheckID undefined (type *library.Step has no field or method SetCheckID) (typecheck)
[golangci] api/step/plan.go#L74: api/step/plan.go#L74
no new variables on left side of := (typecheck)
[golangci] api/build/create.go#L323: api/build/create.go#L323
not enough arguments in call to PlanBuild
[golangci] api/build/restart.go#L322: api/build/restart.go#L322
not enough arguments in call to PlanBuild
[golangci] router/middleware/scm_test.go#L12: router/middleware/scm_test.go#L12
could not import github.com/go-vela/server/scm/github (-: # github.com/go-vela/server/scm/github
[golangci] scm/github/repo.go#L653: scm/github/repo.go#L653
s.GetCheckID undefined (type *library.Step has no field or method GetCheckID)) (typecheck)
[golangci] router/middleware/perm/perm_test.go#L22: router/middleware/perm/perm_test.go#L22
could not import github.com/go-vela/server/scm/github (-: # github.com/go-vela/server/scm/github
[golangci] scm/github/repo.go#L653: scm/github/repo.go#L653
s.GetCheckID undefined (type *library.Step has no field or method GetCheckID)) (typecheck)
[golangci] router/middleware/pipeline/pipeline_test.go#L25: router/middleware/pipeline/pipeline_test.go#L25
could not import github.com/go-vela/server/scm/github (-: # github.com/go-vela/server/scm/github
[golangci] scm/github/repo.go#L653: scm/github/repo.go#L653
s.GetCheckID undefined (type *library.Step has no field or method GetCheckID)) (typecheck)
[golangci] scm/github/access.go#L1: scm/github/access.go#L1
: # github.com/go-vela/server/scm/github [github.com/go-vela/server/scm/github.test]
[golangci] scm/github/repo.go#L653: scm/github/repo.go#L653
s.GetCheckID undefined (type *library.Step has no field or method GetCheckID) (typecheck)
[golangci] compiler/native/compile.go#L259: compiler/native/compile.go#L259
directive `//nolint:dupl,lll // linter thinks the steps and stages workflows are identical` is unused for linter "dupl" (nolintlint)
[golangci] compiler/native/compile.go#L356: compiler/native/compile.go#L356
directive `//nolint:dupl,lll // linter thinks the steps and stages workflows are identical` is unused for linter "dupl" (nolintlint)
[golangci] secret/vault/count.go#L37: secret/vault/count.go#L37
directive `//nolint:staticcheck // ignore false positive` is unused for linter "staticcheck" (nolintlint)
[golangci] secret/vault/get.go#L40: secret/vault/get.go#L40
directive `//nolint:ineffassign,staticcheck // ignore false positive` is unused for linter "staticcheck" (nolintlint)
[golangci] secret/vault/list.go#L45: secret/vault/list.go#L45
directive `//nolint:staticcheck // ignore false positive` is unused for linter "staticcheck" (nolintlint)
[golangci] database/schedule/create.go#L3: database/schedule/create.go#L3
directive `//nolint:dupl // ignore similar code with update.go` is unused for linter "dupl" (nolintlint)
validate: scm/github/repo.go#L653
s.GetCheckID undefined (type *library.Step has no field or method GetCheckID)
validate
s.GetCheckID undefined (type *library.Step has no field or method GetCheckID)
validate
Process completed with exit code 1.