fix: do not pass cfg and logger into cobra context #2
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)
|