Gathering detailed insights and metrics for gulp-eslint-threshold
Gathering detailed insights and metrics for gulp-eslint-threshold
Gathering detailed insights and metrics for gulp-eslint-threshold
Gathering detailed insights and metrics for gulp-eslint-threshold
npm install gulp-eslint-threshold
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
6 Stars
6 Commits
2 Forks
2 Watchers
1 Branches
1 Contributors
Updated on Sep 10, 2018
Latest Version
0.1.1
Package Id
gulp-eslint-threshold@0.1.1
Size
3.92 kB
NPM Version
2.11.3
Node Version
0.12.7
Published on
Aug 03, 2015
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
5
A simple gulp stream plugin for counting warnings from gulp-eslint and call a callback function when the number rises above a threshold you set.
1npm install gulp-eslint-threshold
1'use strict'; 2 3var gulp = require('gulp'), 4 eslint = require('gulp-eslint'), 5 eslintThreshold = require('gulp-eslint-threshold'); 6 7gulp.task('eslint', function() { 8 var thresholdWarnings = 3; 9 10 return gulp.src(['**/*.js', '!node_modules/**']) 11 .pipe(eslint()) 12 .pipe(eslint.format()) 13 .pipe(eslintThreshold.afterWarnings(thresholdWarnings, function (numberOfWarnings) { 14 throw new Error('ESLint warnings (' + numberOfWarnings + ') equal to or greater than the threshold (' + thresholdWarnings + ')'); 15 })); 16}); 17 18gulp.task('default', ['eslint']);
afterWarnings(minWarnings, callbackFunction)
minWarnings
, a number for the threshold.callbackFunction(eslintWarnings)
, a callback function for when the threshold is met. The argument eslintWarnings
is the number of warnings found by ESLint.afterErrors(minErrors, callbackFunction)
minErrors
, a number for the threshold.callbackFunction(eslintErrors)
, a callback function for when the threshold is met. The argument eslintErrors
is the number of errors found by ESLint.No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/6 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More