修复examples/receive-and-send配置加载逻辑 (merge request !101) #138
Annotations
10 errors and 7 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/webhook.go#L13
commentFormatting: put a space between `//` and comment text (gocritic)
|
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)
|
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#L9
exported: exported const Text should have comment (or a comment on this block) or be unexported (revive)
|
Run golangci-lint:
dto/message_create.go#L44
exported: exported const TextMsg should have comment (or a comment on this block) or be unexported (revive)
|
Run golangci-lint:
interaction/webhook/webhook.go#L39
exported: comment on exported var DefaultGetSecretFunc should be of the form "DefaultGetSecretFunc ..." (revive)
|
Loading