ci: Add luacheck ci job (#317)

* Add luacheck ci job

* Fix most of the linting issues

* fixup: lint

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
This commit is contained in:
Simon Hauser
2020-12-09 15:46:41 -05:00
committed by GitHub
co-authored by TJ DeVries
parent c276db06e2
commit 141dc6d55e
23 changed files with 148 additions and 356 deletions
-15
View File
@@ -1,4 +1,3 @@
vim.deepcopy = (function()
local function _id(v)
return v
@@ -55,17 +54,3 @@ vim.deepcopy = (function()
end
end
end)()
table.clear = table.clear or function(t)
for k in pairs (t) do
t[k] = nil
end
end
table.pop = table.pop or function(t, k)
local val = t[k]
t[k] = nil
return val
end