Skip to content

Felix 11 improvement refactor code core #80

Felix 11 improvement refactor code core

Felix 11 improvement refactor code core #80

Triggered via pull request July 5, 2024 14:01
Status Failure
Total duration 2m 7s
Artifacts

code-checker.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
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/api/middleware/jwt_auth.go#L77
unnamed results of the same type may be confusing, consider using named results
Lint and Test: internal/app/api/server.go#L18
The name 'interactor' shadows an import name
Lint and Test: cmd/main.go#L103
The name 'interactor' shadows an import name
Lint and Test: internal/app/repository/menu_repository.go#L16
const queryGetMenuByUserId should be queryGetMenuByUserID
Lint and Test: internal/app/repository/user_repository.go#L67
var lastId should be lastID
Lint and Test: internal/app/repository/menu_repository.go#L18
const queryUpdateMenuActiveByMenuId should be queryUpdateMenuActiveByMenuID
Lint and Test: internal/app/repository/menu_repository.go#L108
var lastId should be lastID
Lint and Test: internal/app/repository/menu_repository.go#L19
const queryUpdateMenuByMenuId should be queryUpdateMenuByMenuID
Lint and Test: internal/app/repository/menu_repository.go#L17
const queryUpdateActiveBatchMenuByUserId should be queryUpdateActiveBatchMenuByUserID
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/
Lint and Test
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions/setup-go@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/