chore: drop unused languages from the comment rule scope
scala, java, cc, cpp, hpp, swift, php, cs.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
paths:
|
||||
- "**/*.{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}"
|
||||
- "**/*.{ts,tsx,js,jsx,mjs,cjs,py,rs,go,sol,sh,bash,zsh,c,h,kt,rb,lua,zig,nix,ex,yaml,yml,toml}"
|
||||
---
|
||||
|
||||
## Code comments
|
||||
|
||||
@@ -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?(.*)$")
|
||||
|
||||
Reference in New Issue
Block a user