From af03cb310c13a22319c511571c4d23bd3b4d5a92 Mon Sep 17 00:00:00 2001 From: szdytom Date: Sun, 13 Jul 2025 22:39:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20lint=20=E8=A7=84=E5=88=99?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=EF=BC=8C=E6=B7=BB=E5=8A=A0=20CJK=20=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=8E=E5=85=AC=E5=BC=8F=E4=B9=8B=E9=97=B4=E7=9A=84?= =?UTF-8?q?=E7=A9=BA=E6=A0=BC=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: szdytom --- lint.toml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lint.toml b/lint.toml index 22c4c03..b38fd20 100644 --- a/lint.toml +++ b/lint.toml @@ -2,7 +2,7 @@ name = "trailing-whitespace" pattern = "\\s+\\n$" enforce = true -comment = "Trailing whitespace at line end" +comment = "Found trailing whitespace at line end" [[rule]] name = "not-centered-dots-within-big-notations" @@ -15,3 +15,15 @@ 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"