ci: add golangci-lint #1
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)
|