add .luacheckrc and fix linter issues

This commit is contained in:
kyazdani42
2020-06-08 11:23:30 +02:00
parent 1e67a7c6f4
commit 18dac0ed84
7 changed files with 40 additions and 24 deletions

View File

@@ -28,7 +28,7 @@ local function create_file(file)
end
local function get_num_entries(iter)
i = 0
local i = 0
for _ in iter do
i = i + 1
end
@@ -37,7 +37,7 @@ end
function M.create(node)
if node.name == '..' then return end
local add_into
if node.entries ~= nil then
add_into = node.absolute_path..'/'