Skip to content

feat: add plugin score #3

feat: add plugin score

feat: add plugin score #3

Triggered via pull request October 16, 2023 14:06
Status Failure
Total duration 2m 49s
Artifacts

pull.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 4 warnings
lint: main.go#L69
Error return value of `nano.Run` is not checked (errcheck)
lint: utils/ctxext/speed.go#L55
singleCaseSwitch: should rewrite switch statement to if statement (gocritic)
lint: utils/ctxext/speed.go#L67
singleCaseSwitch: should rewrite switch statement to if statement (gocritic)
lint: utils/ctxext/speed.go#L79
singleCaseSwitch: should rewrite switch statement to if statement (gocritic)
lint: utils/ctxext/speed.go#L37
`limiters` is unused (structcheck)
lint: plugin/hyaku/main.go#L28
`番号` is unused (structcheck)
lint: main.go#L32
SA1019: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: Programs that call Seed and then expect a specific sequence of results from the global random source (using functions such as Int) can be broken when a dependency changes how much it consumes from the global random source. To avoid such breakages, programs that need a specific result sequence should use NewRand(NewSource(seed)) to obtain a random generator that other packages cannot access. (staticcheck)
lint
issues found
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/NanoBot-Plugin/NanoBot-Plugin. Supported file pattern: go.sum
lint: kanban/init.go#L12
exported: exported function PrintBanner should have comment or be unexported (revive)
lint: utils/ctxext/speed.go#L134
exported: exported function MustMessageNotNil should have comment or be unexported (revive)
lint: main.go#L1
package-comments: should have a package comment (revive)