Showing 2 of 2 total issues
Function pipelineQueryGroupByCollection
has 56 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func pipelineQueryGroupByCollection(query string) []bson.M {
return []bson.M{
{
"$search": bson.M{
"compound": bson.M{
Function getHadith
has 5 return statements (exceeds 4 allowed). Open
Open
func getHadith(ctx context.Context, hadithName, hadithNo string) ([]CollectionResponse, error) {
client, err := getMongoClient()
if err != nil {
return nil, err
}