jscs-html-reporter
An HTML reporter for node-jscs, grunt-jscs and gulp-jscs.
Getting started
Install using npm:
npm install jscs-html-reporter --save-dev
Usage
node-jscs
When using withSet the path to jscs-html-reporter
. Command line example:
jscs . --reporter node_modules/jscs-html-reporter/jscs-html-reporter.js
Report will be written to jscs-html-report.html
in current working directory.
grunt-jscs
When using withConfigure jscs
in Gruntfile.js
so that reporter
points to jscs-html-reporter.js
and reporterOutput
points to some HTML file within the project.
jscs: src: 'path/to/files/*.js' 'another/path/to/files/**/*.js' options: maxErrors: null reporter: path reporterOutput: '/path/to/jscs-html-report.html'
gulp-jscs
When using withPipe jscs files to the reporter and provide an optional output path within the project:
var gulp = ;var jscs = ;var jscsGulpHtmlReporter = gulpReporter; gulp;
Report will be written to reporterOutput
if specified, otherwise to jscs-html-report.html
in current working directory.
Example
License
Licensed under the MIT license. Copyright (c) 2015 - 2016 Audrius Jakumavicius