Package: check-all-the-things
Version: 2015.02.04
Severity: wishlist
Right now the checks for the various scripting languages only match
specific filename extensions, 'sh' check only matches *.sh, 'python'
*.py, 'perl' *.{pl,pm}, etc. It would be good to scan all files for
a #! line and check those too.
Here's a crappy version, probably better ways for doing this:
for name in `find . -type f`; do
if file $name |grep -q script; then
if head -1 $name|grep -q '#!'; then
echo -n "$name: "
head -1 $name
fi
fi
done
--
Matt Taggart
[email protected]
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]