Skip to content

fix: do not pass cfg and logger into cobra context #2

fix: do not pass cfg and logger into cobra context

fix: do not pass cfg and logger into cobra context #2

Triggered via push November 14, 2025 11:40
Status Failure
Total duration 1m 42s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

9 errors
Lint Go code
issues found
Lint Go code: pkg/utils/pagination_helper.go#L57
QF1003: could use tagged switch on sortOrderParam (staticcheck)
Lint Go code: internal/services/charting_service.go#L240
QF1003: could use tagged switch on tx.TransactionType (staticcheck)
Lint Go code: pkg/database/database.go#L113
Error return value of `sqlDB.Close` is not checked (errcheck)
Lint Go code: internal/http/handlers/import_handler.go#L329
Error return value of `f.Close` is not checked (errcheck)
Lint Go code: internal/http/handlers/import_handler.go#L268
Error return value of `f.Close` is not checked (errcheck)
Lint Go code: internal/http/handlers/import_handler.go#L218
Error return value of `f.Close` is not checked (errcheck)
Lint Go code: cmd/migrate.go#L88
Error return value of `mSqlDB.Close` is not checked (errcheck)
Lint Go code: cmd/migrate.go#L72
Error return value of `sqlDB.Close` is not checked (errcheck)