summaryrefslogtreecommitdiff
path: root/doc/zh-cn
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-12 16:16:58 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-12 16:17:17 +0800
commit7340483dc3071c33d5d2a726032a61632c28509a (patch)
treea0aa7d35eace42c3b68cefc115b9915b6a414739 /doc/zh-cn
parent9902665e2a4fa9b69726df2ccce997312750c2a7 (diff)
downloadlua-language-server-7340483dc3071c33d5d2a726032a61632c28509a.zip
unreachable-code
Diffstat (limited to 'doc/zh-cn')
-rw-r--r--doc/zh-cn/config.md53
1 files changed, 30 insertions, 23 deletions
diff --git a/doc/zh-cn/config.md b/doc/zh-cn/config.md
index 3e2b1246..888cb25e 100644
--- a/doc/zh-cn/config.md
+++ b/doc/zh-cn/config.md
@@ -205,9 +205,9 @@ Array<string>
* ``"newfield-call"``
* ``"err-assign-as-eq"``
* ``"undefined-doc-param"``
-* ``"param-type-mismatch"``
+* ``"undefined-global"``
* ``"global-in-nil-env"``
-* ``"unused-vararg"``
+* ``"redundant-return-value"``
* ``"miss-sep-in-table"``
* ``"unknown-cast-variable"``
* ``"unknown-operator"``
@@ -222,66 +222,67 @@ Array<string>
* ``"redundant-value"``
* ``"duplicate-doc-alias"``
* ``"doc-field-no-class"``
-* ``"no-visible-label"``
* ``"miss-loop-min"``
-* ``"miss-exp"``
+* ``"no-visible-label"``
* ``"miss-loop-max"``
+* ``"miss-exp"``
+* ``"unicode-name"``
* ``"miss-name"``
* ``"empty-block"``
-* ``"unused-local"``
* ``"err-then-as-do"``
-* ``"duplicate-doc-field"``
* ``"redefined-label"``
+* ``"duplicate-doc-field"``
* ``"exp-in-action"``
* ``"set-const"``
-* ``"circle-doc-class"``
* ``"unexpect-lfunc-name"``
-* ``"unsupport-symbol"``
-* ``"unused-label"``
+* ``"circle-doc-class"``
* ``"action-after-return"``
+* ``"miss-space-between"``
+* ``"unused-label"``
* ``"unexpect-dots"``
-* ``"redundant-return-value"``
+* ``"duplicate-index"``
+* ``"miss-field"``
* ``"jump-local-scope"``
* ``"close-non-object"``
-* ``"miss-field"``
+* ``"unexpect-symbol"``
* ``"count-down-loop"``
* ``"cast-type-mismatch"``
* ``"newline-call"``
-* ``"unexpect-symbol"``
+* ``"missing-parameter"``
* ``"block-after-else"``
-* ``"unicode-name"``
* ``"miss-exponent"``
* ``"err-esc"``
* ``"local-limit"``
+* ``"unsupport-symbol"``
* ``"trailing-space"``
* ``"err-c-long-comment"``
-* ``"undefined-global"``
-* ``"undefined-doc-name"``
+* ``"unbalanced-assignments"``
+* ``"duplicate-doc-param"``
* ``"ambiguity-1"``
* ``"deprecated"``
* ``"codestyle-check"``
* ``"missing-return"``
-* ``"missing-parameter"``
+* ``"code-after-break"``
* ``"unused-function"``
* ``"cast-local-type"``
* ``"assign-type-mismatch"``
* ``"duplicate-set-field"``
-* ``"no-unknown"``
+* ``"unused-vararg"``
* ``"need-check-nil"``
* ``"keyword"``
+* ``"unused-local"``
* ``"unknown-diag-code"``
-* ``"return-type-mismatch"``
* ``"err-comment-prefix"``
* ``"lowercase-global"``
-* ``"unbalanced-assignments"``
* ``"redefined-local"``
-* ``"code-after-break"``
-* ``"duplicate-index"``
-* ``"duplicate-doc-param"``
+* ``"undefined-doc-name"``
+* ``"no-unknown"``
+* ``"unreachable-code"``
+* ``"param-type-mismatch"``
* ``"index-in-func-name"``
* ``"miss-symbol"``
* ``"undefined-field"``
-* ``"miss-space-between"``
+* ``"return-type-mismatch"``
## default
@@ -450,6 +451,7 @@ object<string, string>
* empty-block
* redundant-return
* trailing-space
+ * unreachable-code
* unused-function
* unused-label
* unused-local
@@ -568,6 +570,7 @@ object<string, string>
* empty-block
* redundant-return
* trailing-space
+ * unreachable-code
* unused-function
* unused-label
* unused-local
@@ -737,6 +740,7 @@ object<string, string>
"unknown-cast-variable": "Any",
"unknown-diag-code": "Any",
"unknown-operator": "Any",
+ "unreachable-code": "Opened",
/*
未使用的函数
*/
@@ -871,6 +875,7 @@ object<string, string>
"unknown-cast-variable": "Warning",
"unknown-diag-code": "Warning",
"unknown-operator": "Warning",
+ "unreachable-code": "Hint",
/*
未使用的函数
*/
@@ -1270,6 +1275,8 @@ object<string, string>
"package": "default",
"string": "default",
"table": "default",
+ "table.clear": "default",
+ "table.new": "default",
"utf8": "default"
}
```