Skip to content

Commit

Permalink
BIGTOP-4361: Add Chinese check
Browse files Browse the repository at this point in the history
  • Loading branch information
wuchunfu committed Feb 15, 2025
1 parent a7da63a commit 9052425
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/check_chinese_character.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,16 @@ class ChineseCharacterCheckTest:
"dist",
}
# Supported file extensions
SUPPORTED_EXTENSIONS = {".java", ".kt", ".scala", ".js", ".jsx", ".ts", ".tsx", ".vue"}
SUPPORTED_EXTENSIONS = {
".java",
".kt",
".scala",
".js",
".jsx",
".ts",
".tsx",
".vue"
}

def should_not_contain_chinese_in_comments(self):
violations = self.scan_for_chinese_characters(ScanTarget.COMMENTS)
Expand Down

0 comments on commit 9052425

Please sign in to comment.