執行 Shell
/usr/local/bin/jshint --checkstyle-reporter html/_js/ --config /root/node_modules/jshint/jshint.json >> build/checkstyle-jshint.xml || exit 0
Publish Checkstyle analysis results
Checkstyle results build/checkstyle-*.xml
Report Violations
checkstyle 10 999 999 build/checkstyle-*.xml
Reference :
Jenkins & JSHint – Integrating with Checkstyles and Violations « Brian Wigginton
2013年4月23日 星期二
JSHint '$' is not defined
Add this at the top of the script file:
Reference :
javascript - JSHint strict mode and JQuery: '$' is not defined - Stack Overflow
/*global $:false, jQuery:false */
Reference :
javascript - JSHint strict mode and JQuery: '$' is not defined - Stack Overflow
訂閱:
文章 (Atom)