run-luacheck-windows.sh 699 B

12345678910111213141516
  1. #!/bin/bash
  2. set -e
  3. #Download luacheck binary if nessesary
  4. if ! [ -x "cache/luacheck.exe" ]; then
  5. 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
  6. fi
  7. echo "Static analysys of"
  8. find lua_modules lua_examples -iname "*.lua" -print0 | xargs -0 echo
  9. (find lua_modules lua_examples -iname "*.lua" -print0 | xargs -0 cache/luacheck.exe --config tools/luacheck_config.lua) || exit
  10. echo "Static analysys of"
  11. find tests -iname "*.lua" -print0 | xargs -0 echo
  12. (find tests -iname "*.lua" -print0 | xargs -0 cache/luacheck.exe --config tools/luacheck_NTest_config.lua) || exit