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 /locale/zh-cn/setting.lua | |
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 'locale/zh-cn/setting.lua')
-rw-r--r-- | locale/zh-cn/setting.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/locale/zh-cn/setting.lua b/locale/zh-cn/setting.lua index 1755d76f..b407ca14 100644 --- a/locale/zh-cn/setting.lua +++ b/locale/zh-cn/setting.lua @@ -380,6 +380,8 @@ config.diagnostics['invisible'] = -- TODO: need translate! 'Enable diagnostics for accesses to fields which are invisible.' config.diagnostics['missing-global-doc'] = -- TODO: need translate! 'Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values.' +config.diagnostics['missing-local-export-doc'] = -- TODO: need translate! +'Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values.' config.diagnostics['missing-parameter'] = -- TODO: need translate! 'Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.' config.diagnostics['missing-return'] = -- TODO: need translate! |