chore: drop unused languages from the comment rule scope

scala, java, cc, cpp, hpp, swift, php, cs.
This commit is contained in:
naps62
2026-08-01 14:12:01 +00:00
parent b8d442386b
commit 652b5abceb
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -20,9 +20,8 @@ MAX_COMMENT_RUN = 3 # contract budget; past this you are teaching, not warning
# the rule and never lints.
CODE_EXT = {
".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", ".py", ".rs", ".go", ".sol",
".sh", ".bash", ".zsh", ".c", ".h", ".cc", ".cpp", ".hpp", ".java", ".kt",
".rb", ".lua", ".zig", ".nix", ".swift", ".php", ".cs", ".scala", ".ex",
".yaml", ".yml", ".toml",
".sh", ".bash", ".zsh", ".c", ".h", ".kt", ".rb", ".lua", ".zig", ".nix",
".ex", ".yaml", ".yml", ".toml",
}
COMMENT_RE = re.compile(r"^\s*(//+|#+|/\*+|\*+/?|--|;;?)\s?(.*)$")