How to use the gulp-jscs.reporter function in gulp-jscs

To help you get started, we’ve selected a few gulp-jscs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sylouuu / chrome-tab-modifier / gulpfile.js View on Github external
gulp.task('lint', function () {
        return gulp
            .src('src/js/**/*.js')
            .pipe(jscs())
            .pipe(jscs.reporter())
            .pipe(jscs.reporter('fail'))
            .pipe(jshint())
            .pipe(jshint.reporter('default'));
    });
github handsontable / hot-table / gulpfile.js View on Github external
gulp.task('jscs', function() {
  return gulp.src('./src/*.js')
    .pipe(jscs())
    .pipe(jscs.reporter());
});
github ukayani / restify-router / gulpfile.js View on Github external
gulp.task('style', function () {

  return gulp.src(allSourceFiles)
    .pipe(jscs())
    .pipe(jscs.reporter(stylishJscs.path))
    .pipe(jscs.reporter('fail'));
});
github 720kb / angular-socialshare / conf / tasks / lint.js View on Github external
gulp.task('js-lint', function onJsLint() {

    return gulp.src(paths.lib + paths.files.unminified)
      .pipe(jshint())
      .pipe(jshint.reporter(stylish))
      .pipe(eslint())
      .pipe(eslint.format())
      .pipe(eslint.failOnError())
      .pipe(jscs())
      .pipe(jscs.reporter())
      .pipe(jscs.reporter('fail'));
  });
github react-ga / react-ga / gulpfile.js View on Github external
gulp.task('jscs', function () {
  return gulp.src(LINT_DIRS)
    .pipe(jscs())
    .pipe(jscs.reporter());
});
github sylouuu / chrome-tab-modifier / gulpfile.js View on Github external
gulp.task('lint', function () {
        return gulp
            .src('src/js/**/*.js')
            .pipe(jscs())
            .pipe(jscs.reporter())
            .pipe(jscs.reporter('fail'))
            .pipe(jshint())
            .pipe(jshint.reporter('default'));
    });
github ukayani / restify-router / gulpfile.js View on Github external
gulp.task('style', function () {

  return gulp.src(allSourceFiles)
    .pipe(jscs())
    .pipe(jscs.reporter(stylishJscs.path))
    .pipe(jscs.reporter('fail'));
});
github 720kb / angular-socialshare / conf / tasks / lint.js View on Github external
gulp.task('js-lint', function onJsLint() {

    return gulp.src(paths.lib + paths.files.unminified)
      .pipe(jshint())
      .pipe(jshint.reporter(stylish))
      .pipe(eslint())
      .pipe(eslint.format())
      .pipe(eslint.failOnError())
      .pipe(jscs())
      .pipe(jscs.reporter())
      .pipe(jscs.reporter('fail'));
  });
github SimonDegraeve / loopback-webpack-plugin / gulpfile.js View on Github external
gulp.task('lint', function() {
  return gulp.src([paths['src.scripts'], paths['src.tests'], '!' + paths['src.fixtures']])
    .pipe(jshint())
    .pipe(jshint.reporter(jshintStylish))
    .pipe(jshint.reporter('fail'))
    .pipe(jscs())
    .pipe(jscs.reporter(jscsStylish))
    .pipe(jscs.reporter('fail'))
    .pipe(complexity({
      cyclomatic: [5, 15, 25],
      halstead: [15, 20, 25],
      maintainability: 100,
      breakOnErrors: false
    }));
});
github bbody / CMD-Resume / gulpfile.js View on Github external
function jscsDevelopment(done) {
	gulp.src(files ? files : SOURCE)
		.pipe(jscs())
		.pipe(jscs.reporter())
		.pipe(jscs.reporter('fail'));
	done();
}

gulp-jscs

Check JavaScript code style with jscs

MIT
Latest version published 7 years ago

Package Health Score

45 / 100
Full package analysis

Popular gulp-jscs functions