Ananto30/ask-hadith

View on GitHub

Showing 2 of 2 total issues

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
      Severity
      Category
      Status
      Source
      Language