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-tw | |
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-tw')
-rw-r--r-- | locale/zh-tw/script.lua | 6 | ||||
-rw-r--r-- | locale/zh-tw/setting.lua | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua index 3a618184..e19eb220 100644 --- a/locale/zh-tw/script.lua +++ b/locale/zh-tw/script.lua @@ -120,6 +120,12 @@ DIAG_MISSING_GLOBAL_DOC_PARAM = -- TODO: need translate! 'Missing @param annotation for parameter `{}` in global function `{}`.' DIAG_MISSING_GLOBAL_DOC_RETURN = -- TODO: need translate! 'Missing @return annotation at index `{}` in global function `{}`.' +DIAG_MISSING_LOCAL_EXPORT_DOC_COMMENT = -- TODO: need translate! +'Missing comment for exported local function `{}`.' +DIAG_MISSING_LOCAL_EXPORT_DOC_PARAM = -- TODO: need translate! +'Missing @param annotation for parameter `{}` in exported local function `{}`.' +DIAG_MISSING_LOCAL_EXPORT_DOC_RETURN = -- TODO: need translate! +'Missing @return annotation at index `{}` in exported local function `{}`.' DIAG_INCOMPLETE_SIGNATURE_DOC_PARAM = -- TODO: need translate! 'Incomplete signature. Missing @param annotation for parameter `{}` in function `{}`.' DIAG_INCOMPLETE_SIGNATURE_DOC_RETURN = -- TODO: need translate! diff --git a/locale/zh-tw/setting.lua b/locale/zh-tw/setting.lua index 6c2c0489..0b40177f 100644 --- a/locale/zh-tw/setting.lua +++ b/locale/zh-tw/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! |