diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2015-11-23 13:58:35 +0100 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2015-11-23 13:58:35 +0100 |
commit | 369c1fdb259daf4f305ada8744e0564250480398 (patch) | |
tree | e61dc677cf85faa79a92814cbdadb63de7477635 /test/unit/helpers.lua | |
parent | 97cee2c2e39888b33a546ba5ffe37c510740c3a5 (diff) | |
parent | d9fbc1865bf5237235e96ae8822326faa84ff9fc (diff) | |
download | rneovim-369c1fdb259daf4f305ada8744e0564250480398.tar.gz rneovim-369c1fdb259daf4f305ada8744e0564250480398.tar.bz2 rneovim-369c1fdb259daf4f305ada8744e0564250480398.zip |
Merge PR #3687 'Add luacheck for linting tests'
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r-- | test/unit/helpers.lua | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua index 5bcc661226..7b43b2218c 100644 --- a/test/unit/helpers.lua +++ b/test/unit/helpers.lua @@ -18,17 +18,9 @@ local function trim(s) end -- a Set that keeps around the lines we've already seen -if cdefs == nil then - cdefs = Set:new() -end - -if imported == nil then - imported = Set:new() -end - -if pragma_pack_id == nil then - pragma_pack_id = 1 -end +local cdefs = Set:new() +local imported = Set:new() +local pragma_pack_id = 1 -- some things are just too complex for the LuaJIT C parser to digest. We -- usually don't need them anyway. @@ -67,7 +59,7 @@ local function cimport(...) end local body = nil - for i=1, 10 do + for _ = 1, 10 do local stream = Preprocess.preprocess_stream(unpack(paths)) body = stream:read("*a") stream:close() |