HtmlSanitizer becomes Python 2.6 compatible.
The Cleaner class must not have any arguments when calling __init__ function for the object class, because in this case Python 2.6 raises TypeError (while previous versions just ignored them).
#!/bin/bash
#Requires java installed
echo "JSLINT: running jslint"
JS_DIRECTORY="../app/soc/content/js"
JSLINT="../thirdparty/jslint/jslint.js"
RHINO="../thirdparty/shrinksafe/js.jar"
for dir in $(find $JS_DIRECTORY -type d); do
for i in $(find $dir/*.js -type f); do
echo "JSLINT: Processing $i"
java -jar $RHINO $JSLINT $i
done
done
echo "JSLINT: process finished"