Skip to content

国际象棋

国际象棋 #1222

Triggered via pull request August 30, 2023 11:39
Status Failure
Total duration 43s
Artifacts

pull.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 9 warnings
lint: plugin/chess/core.go#L244
missing cases in switch of type chess.Method: chess.NoMethod, chess.Resignation, chess.DrawOffer, chess.ThreefoldRepetition, chess.FiftyMoveRule (exhaustive)
lint: plugin/chess/service/svg.go#L1
ST1000: at least one file in a package should have a package comment (stylecheck)
lint: plugin/chess/core.go#L1
ST1000: at least one file in a package should have a package comment (stylecheck)
lint: plugin/chess/core.go#L16
ST1019: package "github.com/sirupsen/logrus" is being imported more than once (stylecheck)
lint: plugin/chess/core.go#L17
ST1019(related information): other import of "github.com/sirupsen/logrus" (stylecheck)
lint
issues found
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/ZeroBot-Plugin/ZeroBot-Plugin. Supported file pattern: go.sum
lint: plugin/chess/elo/elo.go#L1
package-comments: should have a package comment (revive)
lint: plugin/chess/service/svg.go#L12
exported: exported function SVG2PNG should have comment or be unexported (revive)
lint: plugin/chess/service/db.go#L1
package-comments: should have a package comment (revive)
lint: plugin/chess/chess.go#L1
package-comments: should have a package comment (revive)
lint: plugin/chess/core.go#L4
blank-imports: a blank import should be only in a main or test package, or have a comment justifying it (revive)
lint: plugin/chess/core.go#L565
if-return: redundant if ...; err != nil check, just return error instead. (revive)
lint: plugin/chess/core.go#L579
if-return: redundant if ...; err != nil check, just return error instead. (revive)
lint: plugin/chess/core.go#L603
if-return: redundant if ...; err != nil check, just return error instead. (revive)