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
tagg...@debian.org


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to