Oh Precommit Codecheck

Run local code quality checks covering a subset of OpenHarmony gate CI (copyright, CodeArts C/C++) plus additional local checks (pylint/flake8, shellcheck/bashate, gn format). Use before committing to reduce gate failures. Triggers on: /oh-precommit-codecheck, "门禁检查", "门禁预检", "检查代码", "run codecheck", "check code quality", "lint my code", "代码检查", or after completing code implementation. WHEN to use: before git commit, before creating PR, after modifying C/C++/Python/Shell/GN files, when gate CI fails with codecheck defects, or when you want to preview what gate will flag.

openharmonyinsight 7778035 7 files · 43.1 KB Updated

File contents

openharmonyinsight/openharmony-skills/tree/main/skills/oh-precommit-codecheck commit 7778035a51

Frequently asked questions

npx skillmds@latest add openharmonyinsight/oh-precommit-codecheck