Skip to content

lint-fix:重构

lint-fix:重构 #374

Triggered via pull request November 9, 2024 12:02
Status Failure
Total duration 36s
Artifacts

test_and_lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: client/internal/cache/cache.go#L93
unused-parameter: parameter 'k' seems to be unused, consider removing or renaming it as _ (revive)
lint: client/internal/cache/base.go#L59
unused-parameter: parameter 'v' seems to be unused, consider removing or renaming it as _ (revive)
lint: utils/audio/type.go#L3
exported: type name will be used as audio.AudioType by other packages, and that stutters; consider calling this Type (revive)
lint: utils/audio/info.go#L27
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
lint: utils/audio/info.go#L62
superfluous-else: if block ends with a break statement, so drop this else and outdent its block (revive)
lint: client/internal/highway/highway.go#L23
var-naming: don't use ALL_CAPS in Go names; use CamelCase (revive)
lint: client/internal/highway/highway.go#L24
var-naming: don't use ALL_CAPS in Go names; use CamelCase (revive)
lint: client/event/friend.go#L13
var-naming: struct field SourceUid should be SourceUID (revive)
lint: client/event/friend.go#L21
var-naming: struct field FromUid should be FromUID (revive)
lint: client/event/friend.go#L30
var-naming: struct field Uid should be UID (revive)