RiskBlockScanner
A unsafe-block Text Scanner for Object-C
Install / Use
/learn @startry/RiskBlockScannerREADME
RiskBlockScanner
RiskBlockScanner is a static code text scanner. RiskBlockScanner could detect cycle reference problem which cause by block.
- RiskBlockScanner can detect self ref self block problem only now
- RiskBlockScanner still in improvement.
- XCode Plugin is developing
RiskBlockScanner是针对iOS(Mac)平台的静态代码扫描器。通过RiskBlockScanner可以查找代码中潜在循环引用风险的Block使用。
- 该库实用价值较高
- 目前仍在改进完善
- XCode插件编写中
Feature
Detect Simple Self-Block Cycle Reference by scan code files.
检查最简单的被self引用的block内部使用self导致的循环引用

Usage
python risk_block_scanner.py [目标文件]
Optional
--detail- show detail info of risk files
--more- show detail info of all files
--show-singleton- singleton is excluded default. use
--show-singletonto make singleton be included.
- singleton is excluded default. use
--show-filepath- show whole filepath replace filename
可选参数
--detail- 显示潜在循环引用文件的详细信息
--more- 显示所有文件的详细信息
--show-singleton- 默认情况下, 单例类的循环引用默认是安全的; 可以通过该参数让单例类的循环引用也和普通类一同处理扫描;
--show-filepath- 显示完整路径名, 防止同名文件误导
Requirement
Python 2.6+
License
RiskBlockScanner is available under the MIT license. See the LICENSE file for more info.
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
