Skip to content

fix: linter

fix: linter #22

Re-run triggered December 6, 2024 15:56
Status Failure
Total duration 57s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

20 errors and 4 warnings
Run govulncheck: internal/db/seeders/user_seeder.go#L36
cannot use key (variable of type int64) as uint value in assignment
Run govulncheck: internal/responses/posts_response.go#L22
cannot use posts[i].ID (variable of type uint) as int64 value in struct literal
Run govulncheck: internal/services/token/create_access_token.go#L14
cannot use user.ID (variable of type uint) as int64 value in struct literal
Run govulncheck: internal/services/token/create_refresh_token.go#L12
cannot use user.ID (variable of type uint) as int64 value in struct literal
Run govulncheck
Process completed with exit code 1.
Lint: internal/db/seeders/user_seeder.go#L36
cannot use key (variable of type int64) as uint value in assignment (typecheck)
Lint: internal/db/connection.go#L5
could not import echo-demo-project/internal/db/seeders (-: # echo-demo-project/internal/db/seeders
Lint: internal/db/seeders/user_seeder.go#L36
cannot use key (variable of type int64) as uint value in assignment) (typecheck)
Lint: internal/responses/posts_response.go#L22
cannot use posts[i].ID (variable of type uint) as int64 value in struct literal (typecheck)
Lint: internal/services/token/create_access_token.go#L14
cannot use user.ID (variable of type uint) as int64 value in struct literal
Lint: internal/services/token/create_refresh_token.go#L12
cannot use user.ID (variable of type uint) as int64 value in struct literal (typecheck)
Lint: internal/server/handlers/auth_handler.go#L7
could not import echo-demo-project/internal/responses (-: # echo-demo-project/internal/responses
Lint: internal/responses/posts_response.go#L22
cannot use posts[i].ID (variable of type uint) as int64 value in struct literal) (typecheck)
Lint: internal/server/handlers/auth_handler.go#L9
could not import echo-demo-project/internal/services/token (-: # echo-demo-project/internal/services/token
Lint: internal/services/token/create_access_token.go#L14
cannot use user.ID (variable of type uint) as int64 value in struct literal
Unit Tests: internal/db/seeders/user_seeder.go#L36
cannot use key (variable of type int64) as uint value in assignment
Unit Tests: internal/services/token/create_access_token.go#L14
cannot use user.ID (variable of type uint) as int64 value in struct literal
Unit Tests: internal/services/token/create_refresh_token.go#L12
cannot use user.ID (variable of type uint) as int64 value in struct literal
Unit Tests: internal/responses/posts_response.go#L22
cannot use posts[i].ID (variable of type uint) as int64 value in struct literal
Unit Tests
Process completed with exit code 1.
Detect Secrets
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Run govulncheck
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Unit Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636