Skip to content

Instantly share code, notes, and snippets.

@camilonova
Last active December 17, 2015 05:19
Show Gist options
  • Save camilonova/5556746 to your computer and use it in GitHub Desktop.
Save camilonova/5556746 to your computer and use it in GitHub Desktop.
Generate a jshint report for jenkins violations plugin
#!/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