0.0.7 • Published 8 years ago

htmlhint-checkstyle v0.0.7

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

htmlhint-checkstyle

htmlhint reporter for checkstyle

Background

htmlhint-checkstyle is checkstyle format reporter for Jenkins friendly, by reference to htmlhint-stylish

Install

$ npm install --save-dev htmlhint-checkstyle

Usage

gulp-htmlhint

var gulp = require('gulp');

// You can specify file name optionally,
// default file name is 'htmlhint-checkstyle.xml'
process.env.HTMLHINT_CHECKSTYLE_FILE = 'anyFileName.xml'

gulp.task('htmlhint', function() {
  var htmlhint = require('gulp-htmlhint');
  gulp.src(['index.html'])
    .pipe(htmlhint('.htmlhintrc'))
    .pipe(htmlhint.reporter('htmlhint-checkstyle'))
    .pipe(htmlhint.failReporter({
      supress: true
    }));
});