dojo-util
Version:
Dojo utilities including build system for optimizing JavaScript application performance, and DOH testing tool
27 lines (19 loc) • 1 kB
Plain Text
The checkstyle tool is provided to help Dojo developers conform to the Dojo style guides.
Read the help by running the command:
checkstyle.sh help
or
checkstyle.bat.help
If you want to use the checkstyleReport.html tool to fix style errors and save the files,
make a copy of the file 'checkstyle.php.rename.html', and call it 'checkstyle.php'.
This script will then be used to save fixed files.
All fixed files end in '.checkstyle.js', e.g. dojo/back.js.checkstyle.js.
Cnce you are satisfied with the changes, commit them all by typing:
checkstyle.sh commit
Troubleshooting
---------------
1. It says the file was saved but nothing was saved
Use firebug's NET tab to see the result return from the checkstyle.php call. If it's a
permission denied error, probably your webserver is running as a different user and
can't write into your workspace. I solved this problem by doing:
$ find . -type d -exec chmod 777 {} \;
from the root of my project. Probably there's a better way.