Skip to content

Instantly share code, notes, and snippets.

@pinalbhatt
Created May 19, 2015 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pinalbhatt/b8013ee9a8d706dc5163 to your computer and use it in GitHub Desktop.
Save pinalbhatt/b8013ee9a8d706dc5163 to your computer and use it in GitHub Desktop.
Gulp Code Review
'use strict';
var gulp = require('gulp');
var gUtil = require('./../gulp.utils.js')();
gulp.task('codeReview', function() {
gUtil.log('Analyzing source .JS files with JSCS & JSHint');
return gulp
.src(gUtil.configs.serverJS)
.pipe(gUtil.GP.if(gUtil.args.verbose, gUtil.GP.print()))
.pipe(gUtil.GP.jscs())
.pipe(gUtil.GP.jshint())
.pipe(gUtil.GP.jshint.reporter('jshint-stylish', {verbose:true}))
.pipe(gUtil.GP.jshint.reporter('fail'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment