Skip to content

fix: 完善api

fix: 完善api #11

Triggered via push October 7, 2024 04:05
Status Failure
Total duration 57s
Artifacts

golint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: coolq/event.go#L544
Error return value of `w.Write` is not checked (errcheck)
lint: coolq/event.go#L563
Error return value of `w.Write` is not checked (errcheck)
lint: coolq/event.go#L564
Error return value of `w.Write` is not checked (errcheck)
lint: coolq/bot.go#L334
singleCaseSwitch: should rewrite switch statement to if statement (gocritic)
lint: coolq/event.go#L245
singleCaseSwitch: should rewrite switch statement to if statement (gocritic)
lint: cmd/gocq/main.go#L109
singleCaseSwitch: should rewrite switch statement to if statement (gocritic)
lint: coolq/event.go#L209
var-naming: var userId should be userID (revive)
lint: coolq/cqcode.go#L1006
var-naming: var fileUuid should be fileUUID (revive)
lint: coolq/event.go#L111
unused-parameter: parameter 'c' seems to be unused, consider removing or renaming it as _ (revive)
lint: coolq/api.go#L262
unused-parameter: parameter 'busID' seems to be unused, consider removing or renaming it as _ (revive)