aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml4
-rw-r--r--valua.lua6
2 files changed, 6 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 5628fd1..df83e88 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -21,8 +21,8 @@ before_install:
install:
- luarocks install luacheck
-script:
- - luacheck --codes --std=max *.lua
+script:
+ - luacheck --codes --std=max *.lua --ignore 211/_ENV
- lua valua-test.lua
after_success:
diff --git a/valua.lua b/valua.lua
index 4de673b..cf5a536 100644
--- a/valua.lua
+++ b/valua.lua
@@ -19,13 +19,15 @@
-- reusable_validation("test!") -- true
--
-local valua = {}
-
local tinsert,setmetatable,len,match,tonumber = table.insert,setmetatable,string.len,string.match,tonumber
local next,type,floor,ipairs = next,type,math.floor, ipairs
local unpack = unpack or table.unpack
local pack = table.pack or function(...) return { n = select('#', ...), ... } end
+local _ENV = nil
+
+local valua = {}
+
-- CORE
-- Caution, this is confusing