R009: @tc.number命名不规范
OfficialCatch invalid @tc.number naming in test cases.
Software Engineering#test quality#naming convention#openharmony#ets#code scanning#warning rule#test identifiers
Authoropenharmonyinsight
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It prevents test failures and review rework caused by improperly formatted @tc.number identifiers that do not follow the project’s required naming convention.
Core Features & Use Cases
- Scans OpenHarmony ETS/TS/JS test files for occurrences of @tc.number in the specified extensions (.test.ets, .test.ts, .test.js).
- Validates naming format to ensure values follow SUB_{子系统}{部件}[XX?]_XXXX, including uppercase subsystem/component segments and a final exactly-4-digit numeric suffix.
- Produces actionable outputs by reporting file path, line number, nearest it('...') testcase name, the matched snippet, and a concrete repair suggestion.
Quick Start
Run the R009 check on your test codebase with warning-level scanning so the @tc.number naming issues are reported with line-accurate, testcase-associated guidance.
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: R009: @tc.number命名不规范 Download link: https://github.com/openharmonyinsight/openharmony-skills/archive/main.zip#r009-tc-number 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.