Skip to content

arian/gulp-jshint-checkstyle-reporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gulp JSHint checkstyle reporter

Writes checkstyle output to a stream. This can be used to report JSHint results to Jenkins.

Installation

npm install --save-dev gulp-jshint-checkstyle-reporter

Usage

Gulp

var gulp = require('gulp');
var jshint = require('gulp-jshint');
var checkstyleReporter = require('gulp-jshint-checkstyle-reporter');

gulp.task('jshint', function() {
	gulp.src('*.js')
		.pipe(jshint())
		.pipe(checkstyleReporter())
		.pipe(gulp.dest('target/checkstyle-reports'));
});

Options

You could optionally pass an options object into the checkstyleReporter function:

  • filename (defaults to checkstyle.xml). Default filename of the output xml file.
  • Any other jshint-checkstyle reporter option.

About

JSHint checkstyle file reporter

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%