gulp-coffeelint-threshold
A GulpJS plugin to catch the output from gulp-coffeelint and call a callback if the error or warning count is above a threshold you set.
Information
Package | gulp-coffeelint-threshold |
Description | A GulpJS plugin to catch the output from gulp-coffeelint and call a callback if the error or warning count is above a threshold you set. |
Node Version | >= 0.8 |
Installation
npm install gulp-coffeelint-threshold
Usage
var gulp = ;var gutil = ;var coffeelint = ;var coffeelintThreshold = ; gulp; gulp;
Arguments
coffeelintThreshold(maxWarnings, maxErrors, callbackOnFailure)
maxWarnings
, a number. Set to-1
if you don't want any warning threshold.errorWarnings
, a number. Set to-1
if you don't want any warning threshold.callbackOnFailure(numberOfWarnings, numberOfWarnings)
, a function that gets called when the number of warnings or errors are over their respective thresholds you have set. It gets passed the number of warnings and errors as arguments.