summaryrefslogtreecommitdiff
path: root/test/diagnostics/global-element.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/diagnostics/global-element.lua')
-rw-r--r--test/diagnostics/global-element.lua34
1 files changed, 0 insertions, 34 deletions
diff --git a/test/diagnostics/global-element.lua b/test/diagnostics/global-element.lua
index 0e4cdd61..0c31bade 100644
--- a/test/diagnostics/global-element.lua
+++ b/test/diagnostics/global-element.lua
@@ -1,31 +1,5 @@
local config = require 'config'
-local util = require 'utility'
--- disable all default groups to make isolated tests
-config.set(nil, 'Lua.diagnostics.groupFileStatus',
-{
- ['ambiguity'] = 'None',
- ['await'] = 'None',
- ['codestyle'] = 'None',
- ['conventions'] = 'None',
- ['duplicate'] = 'None',
- ['global'] = 'None',
- ['luadoc'] = 'None',
- ['redefined'] = 'None',
- ['strict'] = 'None',
- ['strong'] = 'None',
- ['type-check'] = 'None',
- ['unbalanced'] = 'None',
- ['unused'] = 'None'
-})
-
--- enable single diagnostic that is to be tested
-config.set(nil, 'Lua.diagnostics.neededFileStatus',
-{
- ['global-element'] = 'Any!' -- override groupFileStatus
-})
-
--- check that local elements are not warned about
TEST [[
local x = 123
x = 321
@@ -87,11 +61,3 @@ function GLOBAL_CLOSURE()
<!elem2!> = 2
end
]]
-
--- reset configurations
-config.set(nil, 'Lua.diagnostics.groupFileStatus',
-{})
-config.set(nil, 'Lua.diagnostics.neededFileStatus',
-{})
-config.set(nil, 'Lua.diagnostics.globals',
-{})