summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-08-03 18:00:19 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-08-03 18:00:19 +0800
commitb96ab075f43e04d5bb42566df4f7c172b35a3df8 (patch)
treed3f8c11102bc46f3e628b8bc267838877d60d9e1 /script/core
parente98b56ffbcb49b465abd2ba1eddfc73ce8f2a3c5 (diff)
downloadlua-language-server-b96ab075f43e04d5bb42566df4f7c172b35a3df8.zip
function may not have a name
Diffstat (limited to 'script/core')
-rw-r--r--script/core/diagnostics/incomplete-signature-doc.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/script/core/diagnostics/incomplete-signature-doc.lua b/script/core/diagnostics/incomplete-signature-doc.lua
index b800eb4e..1ffbb77a 100644
--- a/script/core/diagnostics/incomplete-signature-doc.lua
+++ b/script/core/diagnostics/incomplete-signature-doc.lua
@@ -70,8 +70,6 @@ return function (uri, callback)
return
end
- local functionName = source.parent[1]
-
--- don't apply rule if there is no @param or @return annotation yet
--- so comments and @async can be applied without the need for a full documentation
if(not findSignatureDoc(source.bindDocs)) then
@@ -87,7 +85,7 @@ return function (uri, callback)
callback {
start = arg.start,
finish = arg.finish,
- message = lang.script('DIAG_INCOMPLETE_SIGNATURE_DOC_PARAM', argName, functionName),
+ message = lang.script('DIAG_INCOMPLETE_SIGNATURE_DOC_PARAM', argName),
}
end
end
@@ -101,7 +99,7 @@ return function (uri, callback)
callback {
start = expr.start,
finish = expr.finish,
- message = lang.script('DIAG_INCOMPLETE_SIGNATURE_DOC_RETURN', index, functionName),
+ message = lang.script('DIAG_INCOMPLETE_SIGNATURE_DOC_RETURN', index),
}
end
end