顯示具有 jshint 標籤的文章。 顯示所有文章
顯示具有 jshint 標籤的文章。 顯示所有文章

2013年4月23日 星期二

Jenkins JSHint

執行 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

JSHint '$' is not defined

Add this at the top of the script file:

/*global $:false, jQuery:false */





Reference :
javascript - JSHint strict mode and JQuery: '$' is not defined - Stack Overflow

JSHint

# apt-get install nodejs npm
# npm install jshint
 
 
 
 
Reference :
Install — JSHint