Modified version of JSHint checkstyle reporter that supports different severity levels:
High
, Medium
, Low
.
This reporter will add colors to your JSHint Trend reports in Jenkins, produced by JSHint Report Plugin.
It is designed to use together with grunt (& grunt-contrib-jshint plugin).
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install jshint-jenkins-checkstyle-reporter --save-dev
Also you may want to install it globally by passing -g
flag. That allows you to use this
reporter in all your projects.
Once the reporter has been installed, it may be enabled inside your Gruntfile in jshint configuration:
jshint: {
options: {
reporter: require('jshint-jenkins-checkstyle-reporter'),
reporterOutput: 'report-jshint-checkstyle.xml'
}
}
P.S. Don't try to fix reporter for Jenkins Validations Plugin. The plugin has hardcoded severity level and must be fixed first.
P.P.S. Perhaps these modifications should/will be pulled into JSHint checkstyle reporter some day . Or will be added as additional reporter.