XPerf
语言Swift

swiftperf-lint

这篇还没有中文,下面是英文原文。

Heuristic Swift checker for sp-array-no-reserve through the hot-call hints. Line/brace window scanner.

RuleDefaultMessage
sp-print-hotoffprint in loop
sp-array-no-reservehintempty Array then append without reserveCapacity
sp-dateformatter-hothintdate formatter constructed in a loop
sp-json-decode-hothintJSON decoder or jsonObject in a loop
sp-regex-hothintregular expression constructed in a loop

Without the Swift SDK: use ../scripts/text-lint.cjs (documented parity).