'use strict';

var jscs = require('gulp-jscs');
var log = require('../utils/log');

module.exports = function(gulp, options) {
  var config = require('../config')[options.key || 'jscs'];

  return task;

  function task() {
    if (options.verbose) {
      log('Running JSCS');
    }

    return gulp.src(config.src)
      .pipe(jscs(config.rcFile));
  }
};

'use strict';

var jscs = require('gulp-jscs');
var log = require('../utils/log');

module.exports = function(gulp, options) {
  var config = require('../config')[options.key || 'jscs'];

  console.log(config.src);

  return task;

  function task() {
    if (options.verbose) {
      log('Running JSCS');
    }

    return gulp.src(config.src)
      .pipe(jscs({configPath: config.rcFile}))
      .pipe(jscs.reporter());
  }
};

Fix issue with JSCS failing to report violations
Fix issue with JSCS failing to report violations
