summaryrefslogtreecommitdiff
path: root/doc/zh-tw
diff options
context:
space:
mode:
authorAndreaWalchshoferSCCH <122894794+AndreaWalchshoferSCCH@users.noreply.github.com>2023-04-04 11:02:59 +0200
committerGitHub <noreply@github.com>2023-04-04 11:02:59 +0200
commit27cfa2e23648b015a94fab6e0938ec42a5a040e5 (patch)
treee247b1aac92882c72e5c694eb8090f883d43c76c /doc/zh-tw
parentf85e039b9e9369fc2936e899c81056837f04403e (diff)
downloadlua-language-server-27cfa2e23648b015a94fab6e0938ec42a5a040e5.zip
Add diagnostic to enforce lowercase local element names (#6)
- diagnostic `uppercase-local` in group `conventions`, disabled by default - isolated unit tests for diagnostic
Diffstat (limited to 'doc/zh-tw')
-rw-r--r--doc/zh-tw/config.md15
1 files changed, 13 insertions, 2 deletions
diff --git a/doc/zh-tw/config.md b/doc/zh-tw/config.md
index 30e6b20b..78e565f2 100644
--- a/doc/zh-tw/config.md
+++ b/doc/zh-tw/config.md
@@ -329,6 +329,7 @@ Array<string>
* ``"unused-label"``
* ``"unused-local"``
* ``"unused-vararg"``
+* ``"uppercase-local"``
## default
@@ -470,6 +471,7 @@ object<string, string>
"strict": "Fallback",
/*
* global-element
+ * uppercase-local
*/
"convention": "None",
/*
@@ -593,6 +595,7 @@ object<string, string>
"strict": "Fallback",
/*
* global-element
+ * uppercase-local
*/
"convention": "Fallback",
/*
@@ -926,7 +929,11 @@ object<string, string>
/*
未使用的不定引數
*/
- "unused-vararg": "Opened"
+ "unused-vararg": "Opened",
+ /*
+ Enable diagnostics to warn about local element names starting with an uppercase letter.
+ */
+ "uppercase-local": "None"
}
```
@@ -1177,7 +1184,11 @@ object<string, string>
/*
未使用的不定引數
*/
- "unused-vararg": "Hint"
+ "unused-vararg": "Hint",
+ /*
+ Enable diagnostics to warn about local element names starting with an uppercase letter.
+ */
+ "uppercase-local": "Warning"
}
```