feat(botgo): 增加http回调校验逻辑 1.增加webhook回调验证逻辑 2.优化token manager功能逻辑 (me… #135
Annotations
10 errors and 12 warnings
Run golangci-lint:
dto/message/message.go#L23
File is not `gofmt`-ed with `-s` (gofmt)
|
Run golangci-lint:
dto/message_create.go#L56
commentFormatting: put a space between `//` and comment text (gocritic)
|
Run golangci-lint:
dto/message_create.go#L66
commentFormatting: put a space between `//` and comment text (gocritic)
|
Run golangci-lint:
dto/message_create.go#L67
the line is 146 characters long, which exceeds the maximum of 120 characters. (lll)
|
Run golangci-lint:
dto/websocket_event.go#L90
assignOp: replace `i = i | eventIntentMap[event]` with `i |= eventIntentMap[event]` (gocritic)
|
Run golangci-lint:
event/register.go#L138
assignOp: replace `i = i | dto.EventToIntent(
|
Run golangci-lint:
event/register.go#L144
assignOp: replace `i = i | dto.EventToIntent(dto.EventInteractionCreate)` with `i |= dto.EventToIntent(dto.EventInteractionCreate)` (gocritic)
|
Run golangci-lint:
event/register.go#L147
assignOp: replace `i = i | dto.EventToIntent(dto.EventSubscribeMsgStatus)` with `i |= dto.EventToIntent(dto.EventSubscribeMsgStatus)` (gocritic)
|
Run golangci-lint:
event/register.go#L150
assignOp: replace `i = i | dto.EventToIntent(dto.EventC2CFriendAdd)` with `i |= dto.EventToIntent(dto.EventC2CFriendAdd)` (gocritic)
|
Run golangci-lint:
event/register.go#L153
assignOp: replace `i = i | dto.EventToIntent(dto.EventEnterAIO)` with `i |= dto.EventToIntent(dto.EventEnterAIO)` (gocritic)
|
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/
|
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/
|
Run golangci-lint
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/
|
Run golangci-lint:
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)
|
Run golangci-lint:
dto/message_create.go#L44
exported: comment on exported const TextMsg should be of the form "TextMsg ..." (revive)
|
Run golangci-lint:
dto/message_create.go#L45
exported: comment on exported const MarkdownMsg should be of the form "MarkdownMsg ..." (revive)
|
Run golangci-lint:
dto/message_create.go#L46
exported: comment on exported const ArkMsg should be of the form "ArkMsg ..." (revive)
|
Run golangci-lint:
dto/message_create.go#L47
exported: comment on exported const EmbedMsg should be of the form "EmbedMsg ..." (revive)
|
Run golangci-lint:
dto/message_create.go#L48
exported: comment on exported const ATMsg should be of the form "ATMsg ..." (revive)
|
Run golangci-lint:
dto/message_create.go#L49
exported: comment on exported const InputNotifyMsg should be of the form "InputNotifyMsg ..." (revive)
|
Run golangci-lint:
dto/message_create.go#L50
exported: comment on exported const RichMediaMsg should be of the form "RichMediaMsg ..." (revive)
|
Run golangci-lint:
interaction/webhook/webhook.go#L39
exported: comment on exported var DefaultGetSecretFunc should be of the form "DefaultGetSecretFunc ..." (revive)
|
Loading