Skip to content

refactor: refine golangci-lint config and update dependencies #810

refactor: refine golangci-lint config and update dependencies

refactor: refine golangci-lint config and update dependencies #810

Re-run triggered November 22, 2024 10:13
Status Failure
Total duration 3m 27s
Artifacts

check.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 1 warning
Golang Lint: cmd/cert-generator/main.go#L57
use of `fmt.Println` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
Golang Lint: cmd/karpor/app/server.go#L118
use of `fmt.Println` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
Golang Lint: cmd/karpor/app/server.go#L254
Non-inherited new context, use function like `context.WithXXX` or `r.Context` instead (contextcheck)
Golang Lint: cmd/karpor/app/syncer.go#L75
Function `NewStorage->createResourceGroupRuleIfNotExists` should pass the context parameter (contextcheck)
Golang Lint: cmd/karpor/app/syncer.go#L83
Function `SetupWithManager` should pass the context parameter (contextcheck)
Golang Lint: ui/embed.go#L10
directive `//nolint:typecheck` is unused for linter "typecheck" (nolintlint)
Golang Lint
issues found
License Check
Restore cache failed: Some specified paths were not resolved, unable to cache dependencies.