Skip to content

feat: support Postgres #1887

feat: support Postgres

feat: support Postgres #1887

Re-run triggered December 3, 2023 00:49
Status Failure
Total duration 44s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

backend-tests.yml

on: pull_request
go-static-checks
33s
go-static-checks
go-tests
19s
go-tests
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 9 warnings
go-static-checks: store/db/postgres/postgres.go#L30
use of `fmt.Errorf` forbidden because "Please use errors\\.Wrap\\|Wrapf\\|Errorf instead" (forbidigo)
go-static-checks: store/db/postgres/memo_organizer.go#L117
appendAssign: append result not assigned to the same slice (gocritic)
go-static-checks: store/db/postgres/memo_relation.go#L122
appendAssign: append result not assigned to the same slice (gocritic)
go-static-checks: store/db/postgres/postgres.go#L88
commentFormatting: put a space between `//` and comment text (gocritic)
go-static-checks: store/db/postgres/activity.go#L8
File is not `goimports`-ed with -local github.com/usememos/memos (goimports)
go-static-checks: store/db/postgres/idp.go#L8
File is not `goimports`-ed with -local github.com/usememos/memos (goimports)
go-static-checks: store/db/postgres/inbox.go#L8
File is not `goimports`-ed with -local github.com/usememos/memos (goimports)
go-static-checks
issues found
go-static-checks: store/db/postgres/memo.go#L312
if-return: redundant if ...; err != nil check, just return error instead. (revive)
go-static-checks: store/db/postgres/postgres.go#L80
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
go-static-checks: store/db/postgres/postgres.go#L9
blank-imports: a blank import should be only in a main or test package, or have a comment justifying it (revive)
go-static-checks: store/db/postgres/activity.go#L28
use-any: since GO 1.18 'interface{}' can be replaced by 'any' (revive)
go-static-checks: store/db/postgres/storage.go#L12
use-any: since GO 1.18 'interface{}' can be replaced by 'any' (revive)
go-static-checks: store/db/postgres/resource.go#L16
use-any: since GO 1.18 'interface{}' can be replaced by 'any' (revive)
go-static-checks: store/db/postgres/inbox.go#L14
empty-lines: extra empty line at the end of a block (revive)
go-static-checks: store/db/postgres/idp.go#L50
empty-lines: extra empty line at the end of a block (revive)
go-static-checks: store/db/postgres/inbox.go#L45
empty-lines: extra empty line at the end of a block (revive)