A JavaScript complexity analysis gulp task.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.jshintrc
gulpfile.js
index.js
package.json
readme.md
reporter-helpers.js
reporter.js
test.js

readme.md

gulp-complexity

Analize the complexity and maintainability of code

Twin brother of grunt-complexity task

Install

npm install --save-dev gulp-complexity

Example

var gulp = require('gulp'),
	complexity = require('gulp-complexity');

gulp.task('default', function(){
	return gulp.src('*.js')
		.pipe(complexity());
});

Options

Bool breakOnErrors - Fail the task when files or functions are too complex. Default: true

License

MIT License (c) Alexey Raspopov