Skip to content

Generate complexity analysis reports

Notifications You must be signed in to change notification settings

briandela/gulp-plato

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-plato Build Status

Generate complexity analysis reports with plato

Issues with the output should be reported on the plato issue tracker.

Install

$ npm install --save-dev gulp-plato

Usage

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
			}
		}));
});

API

plato(destDir, options)

destDir

Required Type: String

Report destination.

options.jshint

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
			}
		}));
});

options.complexity

Type: Object

Options passed to complexity-report.

License

MIT © Sindre Sorhus

About

Generate complexity analysis reports

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%