0.5.1 • Published 10 years ago

gulp-jshint-xml-file-reporter v0.5.1

Weekly downloads
5,014
License
MIT
Repository
github
Last release
10 years ago

Gulp JSHint XML File Reporter

Build Status

Information

Install

npm install gulp-jshint-xml-file-reporter --save-dev

Usage

var gulp = require('gulp'),
    jshint = require('gulp-jshint'),
    jshintXMLReporter = require('gulp-jshint-xml-file-reporter');

gulp.task('lint', function () {
    return gulp.src('./**/*.js')
        .pipe(jshint())
        .pipe(jshint.reporter(jshintXMLReporter))
        .on('end', jshintXMLReporter.writeFile({
            format: 'checkstyle',
            filePath: './jshint.xml'
        }));
});

Options

{
    format: String // (checkstyle | jslint | junit) - defaults to checkstyle
    filePath: String // Path to write a file - defaults to jshint.xml
    alwaysReport: Boolean // Will write a report file even if there are
                          // no failing tests - defaults to false
}

Release History

  • 2015-03-13 0.5.0 - Added option to generate empty files
  • 2015-02-23 0.4.0 - Renamed jslint_xml formater to jslint
  • 2015-02-23 0.3.4 - Added error messaging to warn the user when an emitter does not exist
  • 2015-02-11 0.3.3 - Added JUnit Emitter

Inspired by:

0.5.1

10 years ago

0.5.0

10 years ago

0.3.3

10 years ago

0.3.1

11 years ago

0.3.0

11 years ago

0.2.0

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago