Skip to content

ci: add golangci-lint #1

ci: add golangci-lint

ci: add golangci-lint #1

Triggered via pull request April 26, 2024 22:37
Status Failure
Total duration 27s
Artifacts

lint.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: cmd/common.go#L31
mnd: Magic number: 30, in <assign> detected (gomnd)
lint: cmd/common.go#L32
mnd: Magic number: 30, in <assign> detected (gomnd)
lint: cmd/common.go#L59
use of `fmt.Println` forbidden by pattern `^fmt\.Println$` (forbidigo)
lint: cmd/common.go#L78
mnd: Magic number: 1e6, in <argument> detected (gomnd)
lint: cmd/common.go#L81
mnd: Magic number: 1e6, in <argument> detected (gomnd)
lint: cmd/common.go#L109
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"invalid object type: %v\", v)" (goerr113)
lint: cmd/common.go#L118
line is 131 characters (lll)
lint: cmd/common.go#L134
Comment should end in a period (godot)
lint: cmd/common.go#L157
line is 169 characters (lll)
lint: cmd/completion.go#L15
completionCmd is a global variable (gochecknoglobals)