LADRSolutions/lint.toml
szdytom 7a90f5c94a
Fix lint
Signed-off-by: szdytom <szdytom@qq.com>
2025-07-13 22:58:12 +08:00

42 lines
1.1 KiB
TOML

[[rule]]
name = "trailing-whitespace"
pattern = "\\s+\\n$"
enforce = true
comment = "Found trailing whitespace at line end"
[[rule]]
name = "not-centered-dots-within-big-notations"
pattern = "[=+][\\s&]*dots[^\\.]"
enforce = true
comment = "Please use dots.c within = or +"
[[rule]]
name = "centered-dots-within-small-notations"
pattern = "[,][\\s&]*dots\\.c"
enforce = true
comment = "Please use dots within ,"
[[rule]]
name = "formula-without-space-after-cjk-character"
pattern = "[^:,、。!?()【】—;“”‘’…\\s\\x20-\\x7E]\\$"
enforce = true
comment = "Missing space between CJK character and $"
[[rule]]
name = "cjk-character-without-space-after-formula"
pattern = "\\$[^:,、。!?()【】—;“”‘’…\\s\\x20-\\x7E]"
enforce = true
comment = "Missing space between $ and CJK character"
[[rule]]
name = "forbid-任一"
pattern = "任一"
enforce = true
comment = "Please use 任意 instead of 任一"
[[rule]]
name = "forbid-对于所有"
pattern = "对于所有"
enforce = true
comment = "Please use 对于任意 instead of 对于所有"