gulp-jscs-html-reporter

0.1.1 • Public • Published

gulp-jscs-html-reporter

Simple generator of HTML report for gulp-jssc that writes its output to a html file which looks pretty

as of now, this gulp-plugin is not compat with gulp-jscs, because it is not support custom reporter yet you can use gulp-jscs-with-reporter instead

Installation

npm install gulp-jscs-html-reporter --save

Usage

var gulp = require('gulp');
var jscs = require('gulp-jscs-with-reporter');
var jscsReporter = require('gulp-jscs-html-reporter');
var jscsConfig = JSON.parse(fs.readFileSync('.jscsrc','utf-8'))

gulp.task('lint', function () {

  return gulp.src('./lib/**/*.js')
    .pipe(jscs(jscsConfig))
    .pipe(jscs.reporter('inline'))
    .pipe(jscs.reporter(jscsReporter, {
      filename: __dirname + '/jscs-output.ignore.html'
    }));
});

Options

Plugin options:

Type: filename Default: "jscs-default-output.html"

output html

alt text

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-jscs-html-reporter

Weekly Downloads

409

Version

0.1.1

License

MIT

Last publish

Collaborators

  • knightli