chore: search service init #15
Annotations
10 errors and 1 warning
🧹 Lint:
services/search/pkg/lib/mongo_config.go#L25
File is not properly formatted (gofumpt)
|
🧹 Lint:
services/search/pkg/lib/opensearch_config.go#L40
File is not properly formatted (gofumpt)
|
🧹 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:
services/search/internal/services/content/search.go#L45
Function 'Search' is too long (86 > 60) (funlen)
|
🧹 Lint:
services/search/internal/processors/content.go#L29
Function 'ProcessContent' is too long (69 > 60) (funlen)
|
🧹 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#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
Restore cache failed: Dependencies file is not found in /home/runner/work/project-mfoni/project-mfoni. Supported file pattern: go.sum
|