diff options
author | Thomas Wetzlmaier <thomas.wetzlmaier@scch.at> | 2023-05-11 16:32:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-11 16:32:53 +0200 |
commit | d2a08abb38a413dddd19edb69971d2b0657bff6f (patch) | |
tree | bea4d5331e05565216e2adfbd341b280176abdde /doc/zh-cn | |
parent | d00d9082dfdd49088a6776282471ced6d5d2361e (diff) | |
download | lua-language-server-d2a08abb38a413dddd19edb69971d2b0657bff6f.zip |
Annotation rule for exported local functions
Annotation for the following local function func1 is required.
local mod = { }
local function func1()
end
mod.Func1 = func1
return mod;
Diffstat (limited to 'doc/zh-cn')
-rw-r--r-- | doc/zh-cn/config.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/zh-cn/config.md b/doc/zh-cn/config.md index 9ddffb9e..532b584a 100644 --- a/doc/zh-cn/config.md +++ b/doc/zh-cn/config.md @@ -286,6 +286,7 @@ Array<string> * ``"miss-space-between"`` * ``"miss-symbol"`` * ``"missing-global-doc"`` +* ``"missing-local-export-doc"`` * ``"missing-parameter"`` * ``"missing-return"`` * ``"missing-return-value"`` @@ -453,6 +454,7 @@ object<string, string> * duplicate-doc-param * incomplete-signature-doc * missing-global-doc + * missing-local-export-doc * undefined-doc-class * undefined-doc-name * undefined-doc-param @@ -578,6 +580,7 @@ object<string, string> * duplicate-doc-param * incomplete-signature-doc * missing-global-doc + * missing-local-export-doc * undefined-doc-class * undefined-doc-name * undefined-doc-param @@ -814,6 +817,10 @@ object<string, string> */ "missing-global-doc": "None", /* + Enable diagnostics for exported local function definitions which are not fully annotated. + */ + "missing-local-export-doc": "None", + /* Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters. */ "missing-parameter": "Any", @@ -1073,6 +1080,10 @@ object<string, string> */ "missing-global-doc": "Warning", /* + Enable diagnostics for exported local function definitions which are not annotated. + */ + "missing-local-export-doc": "Warning", + /* Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters. */ "missing-parameter": "Warning", |