2019-12-31 00:53:54 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
#Download luacheck binary if nessesary
|
|
|
|
if ! [ -x "cache/luacheck.exe" ]; then
|
|
|
|
wget --tries=5 --timeout=10 --waitretry=10 --read-timeout=10 --retry-connrefused -O cache/luacheck.exe https://github.com/mpeterv/luacheck/releases/download/0.23.0/luacheck.exe
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Static analysys of"
|
|
|
|
find lua_modules lua_examples -iname "*.lua" -print0 | xargs -0 echo
|
|
|
|
(find lua_modules lua_examples -iname "*.lua" -print0 | xargs -0 cache/luacheck.exe --config tools/luacheck_config.lua) || exit
|
2020-11-08 15:31:11 +01:00
|
|
|
|
|
|
|
echo "Static analysys of"
|
|
|
|
find tests -iname "*.lua" -print0 | xargs -0 echo
|
|
|
|
(find tests -iname "*.lua" -print0 | xargs -0 cache/luacheck.exe --config tools/luacheck_NTest_config.lua) || exit
|