From 3011a124fe961bb623fa627abfd64030f128b4c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 1 Jul 2021 16:31:18 +0800 Subject: cleanup --- test/diagnostics/init.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/diagnostics') diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua index b00a4e21..cb314691 100644 --- a/test/diagnostics/init.lua +++ b/test/diagnostics/init.lua @@ -4,7 +4,7 @@ local config = require 'config' local util = require 'utility' local define = require 'proto.define' -config.config.diagnostics.neededFileStatus['deprecated'] = 'Any' +config.Lua.diagnostics.neededFileStatus['deprecated'] = 'Any' rawset(_G, 'TEST', true) @@ -206,7 +206,7 @@ local _ENV = { print = print } print(1) ]] -config.config.diagnostics.disable['undefined-env-child'] = true +config.Lua.diagnostics.disable['undefined-env-child'] = true TEST [[ _ENV = nil = 1 --> _ENV.GLOBAL = 1 @@ -232,7 +232,7 @@ GLOBAL = 1 _ENV = nil ]] -config.config.diagnostics.disable['undefined-env-child'] = nil +config.Lua.diagnostics.disable['undefined-env-child'] = nil TEST [[ :sub(1, 1) @@ -344,17 +344,17 @@ return [[ ]] ]=] -config.config.diagnostics.disable['close-non-object'] = true +config.Lua.diagnostics.disable['close-non-object'] = true TEST [[ local _ = function () end ]] -config.config.diagnostics.disable['close-non-object'] = nil +config.Lua.diagnostics.disable['close-non-object'] = nil TEST [[ local _ = ]] -config.config.diagnostics.disable['unused-local'] = true +config.Lua.diagnostics.disable['unused-local'] = true TEST [[ local f = ]] @@ -367,7 +367,7 @@ TEST [[ local ]] -config.config.diagnostics.disable['unused-local'] = nil +config.Lua.diagnostics.disable['unused-local'] = nil TEST [[ local mt, x function mt:m() -- cgit v1.2.3