diff options
author | AndreaWalchshoferSCCH <122894794+AndreaWalchshoferSCCH@users.noreply.github.com> | 2023-03-30 14:49:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-30 14:49:30 +0200 |
commit | 43794193ef981ffecb477bfce444428ded852aa0 (patch) | |
tree | 956e4c3feb41a309e1345c48aaff987501a483c2 /doc/zh-cn | |
parent | 429c48fcb453aeb2de0df55492895d51ad9596f0 (diff) | |
download | lua-language-server-43794193ef981ffecb477bfce444428ded852aa0.zip |
Add diagnostic to enforce lowercase local element names (#2)
Diffstat (limited to 'doc/zh-cn')
-rw-r--r-- | doc/zh-cn/config.md | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/doc/zh-cn/config.md b/doc/zh-cn/config.md index 869e2506..294fe046 100644 --- a/doc/zh-cn/config.md +++ b/doc/zh-cn/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 */ "strict-convention": "None", /* @@ -593,6 +595,7 @@ object<string, string> "strict": "Fallback", /* * global-element + * uppercase-local */ "strict-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" } ``` |