summaryrefslogtreecommitdiff
path: root/locale/pt-br
diff options
context:
space:
mode:
authorThomas Wetzlmaier <thomas.wetzlmaier@scch.at>2023-05-11 16:32:53 +0200
committerGitHub <noreply@github.com>2023-05-11 16:32:53 +0200
commitd2a08abb38a413dddd19edb69971d2b0657bff6f (patch)
treebea4d5331e05565216e2adfbd341b280176abdde /locale/pt-br
parentd00d9082dfdd49088a6776282471ced6d5d2361e (diff)
downloadlua-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/pt-br')
-rw-r--r--locale/pt-br/script.lua6
-rw-r--r--locale/pt-br/setting.lua2
2 files changed, 8 insertions, 0 deletions
diff --git a/locale/pt-br/script.lua b/locale/pt-br/script.lua
index 03e17c15..804779e3 100644
--- a/locale/pt-br/script.lua
+++ b/locale/pt-br/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/pt-br/setting.lua b/locale/pt-br/setting.lua
index ea1bfddd..63e2b7fc 100644
--- a/locale/pt-br/setting.lua
+++ b/locale/pt-br/setting.lua
@@ -381,6 +381,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!