'use strict';
var defaults = {
	options: {
		esnext: true,
		reporter: 'console'
	}
};

/**
 * Ingredients:
 *
 *
 */
function jscsTask(gulp, config, stream, done) {
	// lazy loading required modules.
	var jscs = require('jscs');

	return gulp.src(config.src.globs, config.src.options)
		.pipe(jscs(config.options));
}

jscsTask.description = '';
jscsTask.consumes = ['options', 'src'];
jscsTask.defaults = defaults;

module.exports = jscsTask;

'use strict';

/**
 * Ingredients:
 *
 *
 */
function jscsTask(gulp, config, stream, done) {
	// lazy loading required modules.
	var jscs = require('jscs');

	return gulp.src(config.src.globs, config.src.options)
		.pipe(jscs(config.options));
}

jscsTask.displayName = 'jscs';
jscsTask.description = '';
jscsTask.schema = {
	"properties": {
		"src": {
			"description": ""
		},
		"options": {
			"description": "",
			"properties": {
				"esnext": {
					"description": "",
					"type": "boolean",
					"default": true
				},
				"reporter": {
					"description": "",
					"type": "string",
					"default": "console"
				}
			}
		}
	},
	"required": ["src"]
};

module.exports = jscsTask;

add schema for jscs