From 38a2f5ae4e7e5a5ba48289db6a2972e15d3d53cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 24 Dec 2021 17:20:27 +0800 Subject: update --- test/diagnostics/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/diagnostics') diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua index 8c8dbcf6..2821dc1b 100644 --- a/test/diagnostics/init.lua +++ b/test/diagnostics/init.lua @@ -1163,7 +1163,7 @@ TEST [[ local emit = {} ]] -config.get 'Lua.diagnostics.neededFileStatus' ['unused-local'] = 'None' +config.get(nil, 'Lua.diagnostics.neededFileStatus')['unused-local'] = 'None' TEST [[ ---@param table table ---@param metatable table @@ -1302,7 +1302,7 @@ trim('str', 'left') trim('str', nil) ]] -config.get 'Lua.diagnostics.neededFileStatus' ['unused-local'] = 'Any' +config.get(nil, 'Lua.diagnostics.neededFileStatus')['unused-local'] = 'Any' ---不完整的函数参数定义,会跳过检查 TEST [[ -- cgit v1.2.3