gulp-plato ![Build Status](https://camo.githubusercontent.com/b218569f0ccb6c897971981ddcb46a97aeccc627cb0a5276ee9b9ddcafdb6da0/68747470733a2f2f7472617669732d63692e6f72672f73696e647265736f726875732f67756c702d706c61746f2e7376673f6272616e63683d6d6173746572)
Generate complexity analysis reports with plato
Issues with the output should be reported on the plato issue tracker.
$ npm install --save-dev gulp-plato
var gulp = require('gulp');
var plato = require('gulp-plato');
gulp.task('default', function () {
return gulp.src('app.js')
.pipe(plato('report', {
jshint: {
options: {
strict: true
}
},
complexity: {
trycatch: true
}
}));
});
Required
Type: String
Report destination.
Type: Object
Options passed to JSHint.
Alternatively, you can set options.jshint to be the path to your existing .jshintrc file.
Type: string
var gulp = require('gulp');
var plato = require('gulp-plato');
gulp.task('default', function () {
return gulp.src('app.js')
.pipe(plato('report', {
jshint: '.jshintrc',
complexity: {
trycatch: true
}
}));
});
Type: Object
Options passed to complexity-report.