Skip to content

fix: 修复examples/receive-and-send credentials加载逻辑 #137

fix: 修复examples/receive-and-send credentials加载逻辑

fix: 修复examples/receive-and-send credentials加载逻辑 #137

Triggered via pull request November 25, 2024 09:42
Status Failure
Total duration 3m 8s
Artifacts

build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 7 warnings
build: dto/message/message.go#L23
File is not `gofmt`-ed with `-s` (gofmt)
build: dto/message_create.go#L56
commentFormatting: put a space between `//` and comment text (gocritic)
build: dto/message_create.go#L66
commentFormatting: put a space between `//` and comment text (gocritic)
build: dto/message_create.go#L67
the line is 146 characters long, which exceeds the maximum of 120 characters. (lll)
build: dto/webhook.go#L13
commentFormatting: put a space between `//` and comment text (gocritic)
build: dto/websocket_event.go#L90
assignOp: replace `i = i | eventIntentMap[event]` with `i |= eventIntentMap[event]` (gocritic)
build: event/register.go#L138
assignOp: replace `i = i | dto.EventToIntent(
build: event/register.go#L144
assignOp: replace `i = i | dto.EventToIntent(dto.EventInteractionCreate)` with `i |= dto.EventToIntent(dto.EventInteractionCreate)` (gocritic)
build: event/register.go#L147
assignOp: replace `i = i | dto.EventToIntent(dto.EventSubscribeMsgStatus)` with `i |= dto.EventToIntent(dto.EventSubscribeMsgStatus)` (gocritic)
build: event/register.go#L150
assignOp: replace `i = i | dto.EventToIntent(dto.EventC2CFriendAdd)` with `i |= dto.EventToIntent(dto.EventC2CFriendAdd)` (gocritic)
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-go@v2, golangci/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-go@v2, golangci/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build: dto/keyboard/keyboard.go#L45
exported: type name will be used as keyboard.KeyboardStyle by other packages, and that stutters; consider calling this Style (revive)
build: dto/message_create.go#L9
exported: exported const Text should have comment (or a comment on this block) or be unexported (revive)
build: dto/message_create.go#L44
exported: exported const TextMsg should have comment (or a comment on this block) or be unexported (revive)
build: interaction/webhook/webhook.go#L39
exported: comment on exported var DefaultGetSecretFunc should be of the form "DefaultGetSecretFunc ..." (revive)