Last active
December 17, 2015 05:19
-
-
Save camilonova/5556746 to your computer and use it in GitHub Desktop.
Generate a jshint report for jenkins violations plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script create a report for jenkins violations plugin | |
# Make sure you have a .jshintignore file to exclude paths from the report | |
# Author: AxiaCore S.A.S. http://axiacore.com | |
echo "Generating jshint report..." | |
mkdir -p reports | |
jshint --reporter=jslint app/media/js/ | sed -E 's?<file name="(.*)\?">?<file name="'"`pwd`"'/\1">?' > reports/jshint.xml | |
echo "Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment