更改推送逻辑 #382
Annotations
10 errors and 2 warnings
lint:
config/config.go#L73
Error return value of `os.WriteFile` is not checked (errcheck)
|
lint:
plugin/jx3/jx3api.go#L66
singleCaseSwitch: should rewrite switch statement to if statement (gocritic)
|
lint:
plugin/jx3/wanbaolou.go#L48
sloppyLen: len(jsonData.Get("data.list").Array()) <= 0 can be len(jsonData.Get("data.list").Array()) == 0 (gocritic)
|
lint:
util/tts.go#L68
var `fail` is unused (unused)
|
lint:
util/tts.go#L69
var `reqNum` is unused (unused)
|
lint:
console/console_ansi.go#L9
import 'github.com/FloatTech/ZeroBot-Plugin/kanban/banner' is not allowed from list 'Main' (depguard)
|
lint:
kanban/init.go#L7
import 'github.com/FloatTech/zbputils/control' is not allowed from list 'Main' (depguard)
|
lint:
kanban/init.go#L8
import 'github.com/fumiama/go-registry' is not allowed from list 'Main' (depguard)
|
lint:
kanban/init.go#L10
import 'github.com/FloatTech/ZeroBot-Plugin/kanban/banner' is not allowed from list 'Main' (depguard)
|
lint:
config/config.go#L8
import 'github.com/FloatTech/floatbox/file' is not allowed from list 'Main' (depguard)
|
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/ZeroBot-Plugin/ZeroBot-Plugin. Supported file pattern: go.sum
|
lint:
util/tts.go#L35
unused-parameter: parameter 'text' seems to be unused, consider removing or renaming it as _ (revive)
|