Skip to content

Refactor router and context handler #53

Refactor router and context handler

Refactor router and context handler #53

Triggered via pull request June 25, 2024 15:20
Status Success
Total duration 1m 56s
Artifacts

code-checker.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Lint and Test: internal/app/api/server.go#L18
The name 'interactor' shadows an import name
Lint and Test: internal/app/service/user_service.go#L73
extra empty line at the end of a block
Lint and Test: pkg/env/env.go#L11
don't use ALL_CAPS in Go names; use CamelCase
Lint and Test: internal/app/entity/menu_entity.go#L20
struct field UserId should be UserID
Lint and Test: internal/app/service/user_service_test.go#L203
don't use underscores in Go names; var user_data should be userData
Lint and Test: cmd/main.go#L102
The name 'interactor' shadows an import name
Lint and Test: internal/app/api/middleware/jwt_auth.go#L77
unnamed results of the same type may be confusing, consider using named results
Lint and Test: database/database.go#L7
a blank import should be only in a main or test package, or have a comment justifying it
Lint and Test: internal/app/repository/user_repository.go#L67
var lastId should be lastID
Lint and Test: internal/app/repository/menu_repository.go#L17
const queryUpdateActiveBatchMenuByUserId should be queryUpdateActiveBatchMenuByUserID
Lint and Test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-go@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Lint and Test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-go@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/