R001: 禁止使用getSync系统接口
OfficialPrevent deadlocks by banning getSync system calls.
Software Engineering#static analysis#openharmony#code scanning#rule engine#deadlock prevention#xts testing#getSync
Authoropenharmonyinsight
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill detects forbidden synchronous getSync calls to OpenHarmony system parameter modules, which can cause deadlocks or timeouts in multi-device XTS adaptation scenarios.
Core Features & Use Cases
- Import-aware detection: Only flags getSync when the file imports the relevant system parameter modules (including both default and named imports).
- Multi-language source scanning: Scans all source files with extensions .ets, .ts, and .js (not just test files).
- Correct testcase attribution: Associates findings with the nearest it('...') block in test files; uses '-' elsewhere.
Quick Start
Run the R001 rule against your project directory to find every occurrence where a system parameter module’s getSync is used.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: R001: 禁止使用getSync系统接口 Download link: https://github.com/openharmonyinsight/openharmony-skills/archive/main.zip#r001-getsync Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.