Skip to content

chore: verify strings.EqualFold lint-monster issue is already resolved - #37412

Closed
gh-aw-bot with Copilot wants to merge 1 commit into
mainfrom
copilot/lint-monster-use-strings-equalfold
Closed

gh-aw-bot with Copilot wants to merge 1 commit into
mainfrom
copilot/lint-monster-use-strings-equalfold

Conversation

Copilot AI commented Jun 6, 2026 •

Copy link
Copy Markdown
Contributor

The lint-monster issue flagged 18 instances of strings.ToLower/ToUpper combined with == that should use strings.EqualFold across 12 files.

Findings

All 18 instances were already fixed in the codebase prior to this branch. The custom tolowerequalfold analyzer reports zero violations across the full repo.

The 4 remaining strings.ToLower usages are legitimate and out of scope — they pair with strings.Contains/HasPrefix/HasSuffix, not ==:

// These are NOT equality checks — EqualFold does not apply
strings.Contains(strings.ToLower(serverName), strings.ToLower(serverFilter))
strings.HasPrefix(strings.ToLower(parts[1]), "utc")
strings.HasSuffix(strings.ToLower(item.Name), ".md")

Copilot AI linked an issue Jun 6, 2026 that may be closed by this pull request
1 of 4 tasks
Copilot AI changed the title [WIP] Refactor case-insensitive comparisons to use strings.EqualFold chore: verify strings.EqualFold lint-monster issue is already resolved Jun 6, 2026
Copilot AI requested a review from gh-aw-bot June 6, 2026 21:47
@pelikhan pelikhan closed this Jun 6, 2026
@github-actions
github-actions Bot deleted the copilot/lint-monster-use-strings-equalfold branch June 23, 2026 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[lint-monster] Use strings.EqualFold for Case-Insensitive Comparison

3 participants