diff options
author | Etiene Dalcol <Etiene@users.noreply.github.com> | 2017-09-22 10:04:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-22 10:04:34 +0100 |
commit | c58bd4014434f0fa4f7d7032e0931609e59d17a7 (patch) | |
tree | 6e6fb60e826c10a95c3239c6e78d93ab3a109f0d | |
parent | f688b9025ea113eecfd5967a8d611b51f037c297 (diff) | |
parent | 5ca1278184207cbd231b958b30ba2cc31d05ac5c (diff) | |
download | valua-c58bd4014434f0fa4f7d7032e0931609e59d17a7.tar.gz valua-c58bd4014434f0fa4f7d7032e0931609e59d17a7.tar.bz2 valua-c58bd4014434f0fa4f7d7032e0931609e59d17a7.zip |
Merge pull request #16 from fperrad/global
enforce the no use of globals
-rw-r--r-- | .travis.yml | 4 | ||||
-rw-r--r-- | valua.lua | 6 |
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: @@ -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 |