mirror of https://github.com/ArduPilot/ardupilot
16 lines
376 B
Bash
Executable File
16 lines
376 B
Bash
Executable File
#!/bin/bash
|
|
# Run lua check for all lua files passing AP specific config
|
|
# Can also pass any number of arguments that are passed onto luacheck
|
|
# for example the path of a single script could be given
|
|
|
|
cd "$(dirname "$0")"
|
|
cd ../..
|
|
|
|
CHECK_PATH="$*"
|
|
if test -z "$CHECK_PATH"
|
|
then
|
|
CHECK_PATH="*/"
|
|
fi
|
|
|
|
luacheck ${CHECK_PATH} --config libraries/AP_Scripting/tests/luacheck.lua
|