File: lint

package info (click to toggle)
lua-cliargs 3.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 388 kB
  • sloc: sh: 118; javascript: 14; makefile: 5
file content (16 lines) | stat: -rwxr-xr-x 289 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

which luacheck &> /dev/null

if [ $? -ne 0 ]; then
  echo "You must have luacheck installed."
  echo "Run 'luarocks install luacheck' then try again".
  exit 1
fi

if [ ! -d src ]; then
  echo "You must run $0 from lua_cliargs root."
  exit 1
fi

luacheck --codes . $@