lualoader: fix lua-lint run
luacheck rightfully complains that i is unused in the show-module-options loop at the end (it was used for some debugging in the process). We've added a new pager module that's compiled in, so declare that as an acceptable global.
This commit is contained in:
parent
7ed84fa14b
commit
29842cb36e
@ -234,7 +234,7 @@ cli["show-module-options"] = function()
|
|||||||
end
|
end
|
||||||
|
|
||||||
pager.open()
|
pager.open()
|
||||||
for i, v in ipairs(lines) do
|
for _, v in ipairs(lines) do
|
||||||
pager.output(v .. "\n")
|
pager.output(v .. "\n")
|
||||||
end
|
end
|
||||||
pager.close()
|
pager.close()
|
||||||
|
@ -17,4 +17,5 @@ LUACHECK=$(which luacheck)
|
|||||||
cd $(make -V SRCTOP)/stand
|
cd $(make -V SRCTOP)/stand
|
||||||
${LUACHECK} . --globals loader --globals lfs --globals io.getchar \
|
${LUACHECK} . --globals loader --globals lfs --globals io.getchar \
|
||||||
--globals io.ischar --globals printc --globals cli_execute \
|
--globals io.ischar --globals printc --globals cli_execute \
|
||||||
--globals cli_execute_unparsed --globals try_include --std lua53
|
--globals cli_execute_unparsed --globals try_include \
|
||||||
|
--globals pager --std lua53
|
||||||
|
Loading…
Reference in New Issue
Block a user