Skip to content

Gather user chats in authentication action in user_controller.go #37

Gather user chats in authentication action in user_controller.go

Gather user chats in authentication action in user_controller.go #37

Triggered via pull request March 19, 2024 17:30
Status Failure
Total duration 1m 15s
Artifacts

linting.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
linting: internal/service/user_service.go#L43
Error return value of `s.SmsOtp.SendSMS` is not checked (errcheck)
linting: internal/domain/chat/chat_entity.go#L16
Comment should end in a period (godot)
linting: app/presenters/user_presenter.go#L39
Consider pre-allocating `marshaledChatsJson` (prealloc)
linting: app/socket/chats_handler.go#L72
S1008: should use 'return createErr == nil' instead of 'if createErr != nil { return false }; return true' (gosimple)
linting: app/socket/chats_handler.go#L92
S1008: should use 'return createErr == nil' instead of 'if createErr != nil { return false }; return true' (gosimple)
linting: pkg/sms_service/sms_service.go#L36
unreachable: unreachable code (govet)
linting: config/config.go#L86
ineffectual assignment to env (ineffassign)
linting: internal/domain/chat/chat_entity.go#L18
json(camel): got 'chat_id' want 'chatId' (tagliatelle)
linting: internal/domain/chat/chat_entity.go#L19
json(camel): got 'chat_type' want 'chatType' (tagliatelle)
linting: internal/domain/chat/chat_entity.go#L20
json(camel): got 'chat_detail' want 'chatDetail' (tagliatelle)
linting
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v3, actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.