Ananto30/ask-hadith

View on GitHub
api/search.go

Summary

Maintainability
A
1 hr
Test Coverage

Function pipelineQueryGroupByCollection has 56 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func pipelineQueryGroupByCollection(query string) []bson.M {
    return []bson.M{
        {
            "$search": bson.M{
                "compound": bson.M{
Severity: Minor
Found in api/search.go - About 1 hr to fix

    Function getHadith has 5 return statements (exceeds 4 allowed).
    Open

    func getHadith(ctx context.Context, hadithName, hadithNo string) ([]CollectionResponse, error) {
        client, err := getMongoClient()
        if err != nil {
            return nil, err
        }
    Severity: Major
    Found in api/search.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status