完善 access token 刷新逻辑 #54
Open
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)
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
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
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