#!/bin/bash # # Run JSLint syntax checker against all project Javascript files. # To ensure cross-browser compatibility. # # Needs: fulljslint.js, jslint.js available from http://www.jslint.com/rhino/index.html # # Execute this in the project root folder. # # bash scripts/verify_javascript.bash [folder] # # Also see: https://bugs.launchpad.net/ubuntu/+source/rhino/+bug/93885 # # JS_PATH=$1 find $JS_PATH -iname "*.js" -print -exec rhino scripts/jslint.js {} \; for file in ../generic/web/js/*.js; do echo Veryfying Javascript file: $file rhino jslint.js $file done