summaryrefslogtreecommitdiff
path: root/test/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-12-06 19:30:55 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-12-06 19:30:55 +0800
commitb1a1b3f46771ac5461182a8156452517c280b153 (patch)
tree74687a512cbeb94cc6a30467be5ace42dac40775 /test/diagnostics
parentdcfd07a0850cbda7443c27e68b798b37e68804df (diff)
downloadlua-language-server-b1a1b3f46771ac5461182a8156452517c280b153.zip
only ignore used doced param in meta
Diffstat (limited to 'test/diagnostics')
-rw-r--r--test/diagnostics/init.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua
index 1bbd83b9..dcbfb962 100644
--- a/test/diagnostics/init.lua
+++ b/test/diagnostics/init.lua
@@ -975,6 +975,14 @@ end
TEST [[
---@param a number
+return function (<!a!>)
+end
+]]
+
+TEST [[
+---@meta
+
+---@param a number
return function (a)
end
]]
@@ -1154,6 +1162,7 @@ TEST [[
local emit = {}
]]
+config.get 'Lua.diagnostics.neededFileStatus' ['unused-local'] = 'None'
TEST [[
---@param table table
---@param metatable table
@@ -1292,6 +1301,8 @@ trim('str', 'left')
trim('str', nil)
]]
+config.get 'Lua.diagnostics.neededFileStatus' ['unused-local'] = 'Any'
+
---不完整的函数参数定义,会跳过检查
TEST [[
---@param mode string