Replace call to strings.Index with strings.Contains SCC-S1003
Anti-pattern
Major
1 occurrence in this check
should use strings.Contains(file, valdRepo) instead
311			url += "#L" + strconv.Itoa(line)
312		case func() bool {
313			idx = strings.Index(file, goSrc)
314			return idx >= 0 && strings.Index(file, valdRepo) >= 0315		}():
316			url = strings.Replace(file[idx+goSrcLen:]+"#L"+strconv.Itoa(line), valdRepo, "https://"+valdRepo+"/blob/"+i.detail.GitCommit, -1)
317		case strings.HasPrefix(file, valdRepo):