Use integer range loops to satisfy intrange lint · Entire

Use integer range loops to satisfy intrange lint

275dd5f→main·

evisdren·4d ago·2 files·+2 added/-2 removed

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Changes

2

939 unmodified lines

// isASCII reports whether s contains only ASCII bytes.
func isASCII(s string) bool {
    for i := 0; i < len(s); i++ {
    for i := range len(s) {
        if s[i] >= utf8.RuneSelf {
            return false
        }
    }
}

Mcmd/entire/cli/search_cmd.go+1/-1

222 unmodified lines

results = append(results, codesearch.Result{Repo: "r", Path: "hot.go", Line: line, ContextLine: "x"})
}
// More files than the file cap.
for f := 0; f < maxCodeSearchFiles+3; f++ {
for f := range maxCodeSearchFiles + 3 {
    results = append(results, codesearch.Result{Repo: "r", Path: fmt.Sprintf("f%02d.go", f), Line: 1, ContextLine: "y"})
}
resp := &codesearch.SearchResponse{

Mcmd/entire/cli/search_cmd_test.go+1/-1