-
Notifications
You must be signed in to change notification settings - Fork 0
CAT 001
unurgunite edited this page Jul 11, 2026
·
3 revisions
Severity:
warning• Confidence:high• Auto-fix: ✅
Tip
This rule supports auto-fix via --fix
sort.first → min/max — Use min/max instead of sort/first/last to avoid O(n log n) sorting when O(n) scanning suffices.
ary.sort.first
ary.sort.lastary.min
ary.maxTip
This rule can significantly improve performance in hot code paths.
Note
See bench results at bench/cat-001/