feat: Add HarmonyOS support for .ets files and review configurations#48
Merged
lizhengfeng101 merged 3 commits intoJun 5, 2026
Merged
Conversation
…config, and oh_modules exclusion - Add arkts.md rule doc with ArkTS-specific and TypeScript general checks - Add .json5 to supported file types for HarmonyOS config files - Map .json5 to json.md rules in system_rules.json - Exclude oh_modules/** (HarmonyOS dependency dir) from review - Exclude *.test.ets (HarmonyOS test files) from review - Add unit tests for all new extensions and patterns
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add complete HarmonyOS/ArkTS development support to OCR's review capabilities.
HarmonyOS uses .ets (ArkTS) source files and .json5 configuration files (module.json5, app.json5, oh-package.json5). This PR enables OCR to review these file types with dedicated rules, while properly excluding dependency directories and test files.
Changes:
Type of Change
How Has This Been Tested?
make testpasses locallyChecklist
go fmt,go vet)Related Issues
Issue #47