gulp-plato
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.