diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-22 19:04:39 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-22 19:04:39 +0800 |
commit | f0f26c65db90cddd7e45d751fb394e50165c4cb3 (patch) | |
tree | e4a306d20ea0e89c62e19002ef08eee0fd2c2d7c /test | |
parent | eb3d39eaedce44c8e4e25cf03494b32e874f3ca9 (diff) | |
download | lua-language-server-f0f26c65db90cddd7e45d751fb394e50165c4cb3.zip |
close #319 close-non-object
Diffstat (limited to 'test')
-rw-r--r-- | test/diagnostics/init.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua index aa921c19..f5ea6964 100644 --- a/test/diagnostics/init.lua +++ b/test/diagnostics/init.lua @@ -76,7 +76,7 @@ local <!x!> ]] TEST [[ -local x <close> +local x <close> = print ]] TEST [[ @@ -319,10 +319,16 @@ return [[ ]] ]=] +config.config.diagnostics.disable['close-non-object'] = true TEST [[ local _ <close> = function () end ]] +config.config.diagnostics.disable['close-non-object'] = nil +TEST [[ +local _ <close> = <!1!> +]] + config.config.diagnostics.disable['unused-local'] = true TEST [[ local f = <!function () end!> |