-
Notifications
You must be signed in to change notification settings - Fork 0
CAT 018
unurgunite edited this page Jul 11, 2026
·
3 revisions
| Field | Value |
|---|---|
| Severity | hint |
| Confidence | medium |
| Auto-fix | ✅ |
String#downcase == → compare — Use case-insensitive comparison instead of downcase + == to avoid allocating a new string.
str.downcase == "hello"str.compare("hello", case_insensitive: true)