-
Notifications
You must be signed in to change notification settings - Fork 0
CAT 018
unurgunite edited this page Jul 11, 2026
·
3 revisions
Severity:
hint• Confidence:medium• Auto-fix: ✅
Tip
This rule supports auto-fix via --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)Note
See bench results at bench/cat-018/