lua-lint: Add note about luacheck in ports, silence warning
luacheck was added in ports r462609. Silence warning about cli_execute -- it's non-standard, but for our setup it will be a standard global.
This commit is contained in:
parent
949440623b
commit
5af17cb319
@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
# Run linter on the lua scripts in stand/lua. luacheck, not currently available
|
# Run linter on the lua scripts in stand/lua. luacheck, available in ports as
|
||||||
# in ports, must be installed as a dependency.
|
# devel/lua-luacheck, must be installed as a dependency of this script.
|
||||||
|
|
||||||
die() {
|
die() {
|
||||||
echo $*
|
echo $*
|
||||||
@ -16,4 +16,4 @@ 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 --std lua53
|
--globals io.ischar --globals cli_execute --std lua53
|
||||||
|
Loading…
x
Reference in New Issue
Block a user