Skip to content

chore: search service init #14

chore: search service init

chore: search service init #14

Triggered via pull request January 29, 2025 20:40
Status Failure
Total duration 39s
Artifacts

search-ci.yml

on: pull_request
🧹 Lint
30s
🧹 Lint
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
🧹 Lint: services/search/internal/services/content/db.go#L26
internal/services/content/db.go:26: Line contains TODO/BUG/FIXME: "TODO: add is searchable field after adde..." (godox)
🧹 Lint: services/search/internal/services/content/db.go#L50
File is not properly formatted (gofumpt)
🧹 Lint: services/search/internal/services/content/db.go#L55
File is not properly formatted (gofumpt)
🧹 Lint: services/search/internal/services/content/db.go#L95
File is not properly formatted (gofumpt)
🧹 Lint: services/search/internal/services/content/db.go#L93
composites: go.mongodb.org/mongo-driver/bson/primitive.E struct literal uses unkeyed fields (govet)
🧹 Lint: services/search/internal/services/content/db.go#L97
composites: go.mongodb.org/mongo-driver/bson/primitive.E struct literal uses unkeyed fields (govet)
🧹 Lint: services/search/internal/services/content/db.go#L98
composites: go.mongodb.org/mongo-driver/bson/primitive.E struct literal uses unkeyed fields (govet)
🧹 Lint: services/search/internal/services/content/get.go#L7
SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
🧹 Lint: services/search/pkg/lib/mongo_config.go#L18
Magic number: 10, in <argument> detected (mnd)
🧹 Lint: services/search/internal/processors/content.go#L117
cognitive complexity 47 of func `ProcessMessage` is high (> 30) (gocognit)
🧹 Lint
Restore cache failed: Dependencies file is not found in /home/runner/work/project-mfoni/project-mfoni. Supported file pattern: go.sum