2023-02-13 23:16:55 -04:00
|
|
|
#!/bin/bash
|
|
|
|
# Run lua check for all lua files passing AP specific config
|
2023-07-03 23:43:54 -03:00
|
|
|
# Can also pass any number of arguments that are passed onto luacheck
|
|
|
|
# for example the path of a single script could be given
|
2023-02-13 23:16:55 -04:00
|
|
|
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
cd ../..
|
|
|
|
|
2023-07-03 23:43:54 -03:00
|
|
|
CHECK_PATH="$*"
|
|
|
|
if test -z "$CHECK_PATH"
|
|
|
|
then
|
|
|
|
CHECK_PATH="*/"
|
|
|
|
fi
|
|
|
|
|
|
|
|
luacheck ${CHECK_PATH} --config libraries/AP_Scripting/tests/luacheck.lua
|