gulp vet task to check jshint and and jscs
✓ Published0🌍 Public
Aakmalmuqeeth
Last edited Mar 12, 2016
Created on Mar 12, 2016
This example demonstrates a Gulp `vet` task that runs static code analysis on JavaScript files, checking style compliance with JSCS and syntax errors with JSHint. The task reads a configured file pattern via `gulp.src` and pipes the files through `$.jscs()` and `$.jshint()` using `gulp-load-plugins`. It optionally prints the file list when `yargs` verbose flag is set, reports errors through the `jshint-stylish` reporter, and fails the build on linting issues. The gulpfile uses `gulp-util` for colored logging.
AI-generated descriptionMIT Licensed