XPerf
语言Objective-C

objcperf-lint

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

Heuristic Objective-C checker. C line-window scanner over .m/.h — not a full AST/SSA pass. No Apple SDK required for lint.

SlugDefaultSmell
oc-nsstring-append-hotoffstringByAppendingString in loop
oc-nslog-hotoffNSLog in loop
oc-dateformatter-hothintdate formatter alloc/init or new in a loop
oc-json-hothintJSON parse or encode in a loop
oc-regex-hothintregular expression compiled in a loop

The two measured rules default to off; enable one with --severity <slug>=hint (or error). The three 2026-10-23 rules default to hint until measured. They are not part of the 2026-10-22 corpus-ready verdict.

Removed (jitter 2026-10-22, no slug — see evidence/_removed/): OC001, OC004.