From f7c8be8702c08b8f9fc497fdd83e85acf36a63ce Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 18 Oct 2021 19:19:57 +0000 Subject: [PATCH] Auto-generated commit --- CONTRIBUTORS | 1 + async/any-by-right/lib/limit.js | 2 +- async/any-by/lib/limit.js | 2 +- async/bifurcate-by/lib/limit.js | 2 +- async/count-by/lib/limit.js | 2 +- async/every-by-right/lib/limit.js | 2 +- async/every-by/lib/limit.js | 2 +- async/for-each-right/lib/limit.js | 2 +- async/for-each/lib/limit.js | 2 +- async/group-by/lib/limit.js | 2 +- async/inmap-right/lib/limit.js | 2 +- async/inmap/lib/limit.js | 2 +- async/map-function/lib/limit.js | 2 +- async/map-keys/lib/limit.js | 2 +- async/map-values/lib/limit.js | 2 +- async/none-by-right/lib/limit.js | 2 +- async/none-by/lib/limit.js | 2 +- async/reduce-right/lib/limit.js | 2 +- async/reduce/lib/limit.js | 2 +- async/series-waterfall/lib/factory.js | 2 +- async/some-by-right/lib/limit.js | 2 +- async/some-by/lib/limit.js | 2 +- async/tabulate-by/lib/limit.js | 2 +- find/lib/find.js | 4 ++-- inmap-right/benchmark/benchmark.js | 2 +- inmap/benchmark/benchmark.js | 2 +- library-manifest/bin/cli | 2 +- parallel/lib/node/exec.js | 4 ++-- 28 files changed, 30 insertions(+), 29 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index da469e5a..afd251d2 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -16,6 +16,7 @@ Justin Dennison Marcus Matt Cochrane Milan Raj +Momtchil Momtchev Ognjen Jevremović Philipp Burckhardt Ricky Reusser diff --git a/async/any-by-right/lib/limit.js b/async/any-by-right/lib/limit.js index d5b3c80b..8f1c934d 100644 --- a/async/any-by-right/lib/limit.js +++ b/async/any-by-right/lib/limit.js @@ -70,7 +70,7 @@ function limit( collection, opts, predicate, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all collection elements... if ( idx > 0 ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } diff --git a/async/any-by/lib/limit.js b/async/any-by/lib/limit.js index 8b714d1f..87cf4f81 100644 --- a/async/any-by/lib/limit.js +++ b/async/any-by/lib/limit.js @@ -72,7 +72,7 @@ function limit( collection, opts, predicate, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all collection elements... if ( idx < maxIndex ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } diff --git a/async/bifurcate-by/lib/limit.js b/async/bifurcate-by/lib/limit.js index f20131fb..382f803d 100644 --- a/async/bifurcate-by/lib/limit.js +++ b/async/bifurcate-by/lib/limit.js @@ -81,7 +81,7 @@ function limit( collection, opts, predicate, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all collection elements... if ( idx < maxIndex ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } /** diff --git a/async/count-by/lib/limit.js b/async/count-by/lib/limit.js index 758df635..19539471 100644 --- a/async/count-by/lib/limit.js +++ b/async/count-by/lib/limit.js @@ -75,7 +75,7 @@ function limit( collection, opts, indicator, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all collection elements... if ( idx < maxIndex ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } /** diff --git a/async/every-by-right/lib/limit.js b/async/every-by-right/lib/limit.js index 8daf84b4..a86e4bd1 100644 --- a/async/every-by-right/lib/limit.js +++ b/async/every-by-right/lib/limit.js @@ -70,7 +70,7 @@ function limit( collection, opts, predicate, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all collection elements... if ( idx > 0 ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } diff --git a/async/every-by/lib/limit.js b/async/every-by/lib/limit.js index 35c76979..dbb43d76 100644 --- a/async/every-by/lib/limit.js +++ b/async/every-by/lib/limit.js @@ -72,7 +72,7 @@ function limit( collection, opts, predicate, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all collection elements... if ( idx < maxIndex ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } diff --git a/async/for-each-right/lib/limit.js b/async/for-each-right/lib/limit.js index 5e2b5934..5910c7b6 100644 --- a/async/for-each-right/lib/limit.js +++ b/async/for-each-right/lib/limit.js @@ -70,7 +70,7 @@ function limit( collection, opts, fcn, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all collection elements... if ( idx > 0 ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } diff --git a/async/for-each/lib/limit.js b/async/for-each/lib/limit.js index 7eb0391a..ca8d289c 100644 --- a/async/for-each/lib/limit.js +++ b/async/for-each/lib/limit.js @@ -72,7 +72,7 @@ function limit( collection, opts, fcn, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all collection elements... if ( idx < maxIndex ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } diff --git a/async/group-by/lib/limit.js b/async/group-by/lib/limit.js index 1d3deda8..09d1360b 100644 --- a/async/group-by/lib/limit.js +++ b/async/group-by/lib/limit.js @@ -82,7 +82,7 @@ function limit( collection, opts, indicator, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all collection elements... if ( idx < maxIndex ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } /** diff --git a/async/inmap-right/lib/limit.js b/async/inmap-right/lib/limit.js index 20023e03..cdf1dabf 100644 --- a/async/inmap-right/lib/limit.js +++ b/async/inmap-right/lib/limit.js @@ -70,7 +70,7 @@ function limit( collection, opts, fcn, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all collection elements... if ( idx > 0 ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } /** diff --git a/async/inmap/lib/limit.js b/async/inmap/lib/limit.js index 27916a91..3991b926 100644 --- a/async/inmap/lib/limit.js +++ b/async/inmap/lib/limit.js @@ -72,7 +72,7 @@ function limit( collection, opts, fcn, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all collection elements... if ( idx < maxIndex ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } /** diff --git a/async/map-function/lib/limit.js b/async/map-function/lib/limit.js index a38a4e33..40e06779 100644 --- a/async/map-function/lib/limit.js +++ b/async/map-function/lib/limit.js @@ -72,7 +72,7 @@ function limit( n, opts, fcn, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all invocations... if ( idx < m ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } /** diff --git a/async/map-keys/lib/limit.js b/async/map-keys/lib/limit.js index e66b1b6c..3077b072 100644 --- a/async/map-keys/lib/limit.js +++ b/async/map-keys/lib/limit.js @@ -83,7 +83,7 @@ function limit( obj, opts, fcn, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all properties... if ( idx < maxIndex ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } /** diff --git a/async/map-values/lib/limit.js b/async/map-values/lib/limit.js index c65a4560..b641170d 100644 --- a/async/map-values/lib/limit.js +++ b/async/map-values/lib/limit.js @@ -77,7 +77,7 @@ function limit( obj, opts, fcn, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all properties... if ( idx < maxIndex ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } /** diff --git a/async/none-by-right/lib/limit.js b/async/none-by-right/lib/limit.js index 5c37bdfd..19055334 100644 --- a/async/none-by-right/lib/limit.js +++ b/async/none-by-right/lib/limit.js @@ -70,7 +70,7 @@ function limit( collection, opts, predicate, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all collection elements... if ( idx > 0 ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } diff --git a/async/none-by/lib/limit.js b/async/none-by/lib/limit.js index 72ec37b6..e55f7812 100644 --- a/async/none-by/lib/limit.js +++ b/async/none-by/lib/limit.js @@ -72,7 +72,7 @@ function limit( collection, opts, predicate, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all collection elements... if ( idx < maxIndex ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } diff --git a/async/reduce-right/lib/limit.js b/async/reduce-right/lib/limit.js index 765817b1..cdb60afd 100644 --- a/async/reduce-right/lib/limit.js +++ b/async/reduce-right/lib/limit.js @@ -71,7 +71,7 @@ function limit( collection, acc, opts, fcn, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all collection elements... if ( idx > 0 ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } /** diff --git a/async/reduce/lib/limit.js b/async/reduce/lib/limit.js index 8aa12b6b..a98ce4cb 100644 --- a/async/reduce/lib/limit.js +++ b/async/reduce/lib/limit.js @@ -73,7 +73,7 @@ function limit( collection, acc, opts, fcn, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all collection elements... if ( idx < maxIndex ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } /** diff --git a/async/series-waterfall/lib/factory.js b/async/series-waterfall/lib/factory.js index 444d9dda..386e2766 100644 --- a/async/series-waterfall/lib/factory.js +++ b/async/series-waterfall/lib/factory.js @@ -78,7 +78,7 @@ function factory( fcns, clbk, thisArg ) { */ function waterfall() { var idx = -1; - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return /** * Executes the next function in the series. diff --git a/async/some-by-right/lib/limit.js b/async/some-by-right/lib/limit.js index 13aa7242..353bfc47 100644 --- a/async/some-by-right/lib/limit.js +++ b/async/some-by-right/lib/limit.js @@ -73,7 +73,7 @@ function limit( collection, n, opts, predicate, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all collection elements... if ( idx > 0 ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } diff --git a/async/some-by/lib/limit.js b/async/some-by/lib/limit.js index 655104fd..35168374 100644 --- a/async/some-by/lib/limit.js +++ b/async/some-by/lib/limit.js @@ -75,7 +75,7 @@ function limit( collection, n, opts, predicate, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all collection elements... if ( idx < maxIndex ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } diff --git a/async/tabulate-by/lib/limit.js b/async/tabulate-by/lib/limit.js index 7e6f6c20..938f7070 100644 --- a/async/tabulate-by/lib/limit.js +++ b/async/tabulate-by/lib/limit.js @@ -77,7 +77,7 @@ function limit( collection, opts, indicator, done ) { for ( i = 0; i < lim; i++ ) { // This guard is necessary to protect against synchronous functions which exhaust all collection elements... if ( idx < maxIndex ) { - next(); // eslint-disable-line callback-return + next(); // eslint-disable-line node/callback-return } } /** diff --git a/find/lib/find.js b/find/lib/find.js index b57a47f8..366538d1 100644 --- a/find/lib/find.js +++ b/find/lib/find.js @@ -164,7 +164,7 @@ function find( arr, options, clbk ) { // eslint-disable-line stdlib/no-redeclare // Search moving from begin-to-end [0,1,...]: for ( i = 0; i < len; i++ ) { v = arr[ i ]; - if ( cb( v, i, arr ) ) { // eslint-disable-line callback-return + if ( cb( v, i, arr ) ) { // eslint-disable-line node/callback-return if ( mode === 2 ) { out.push( [ i, v ] ); } else if ( mode === 1 ) { @@ -184,7 +184,7 @@ function find( arr, options, clbk ) { // eslint-disable-line stdlib/no-redeclare k = -k; for ( i = len-1; i >= 0; i-- ) { v = arr[ i ]; - if ( cb( v, i, arr ) ) { // eslint-disable-line callback-return + if ( cb( v, i, arr ) ) { // eslint-disable-line node/callback-return if ( mode === 2 ) { out.push( [ i, v ] ); } else if ( mode === 1 ) { diff --git a/inmap-right/benchmark/benchmark.js b/inmap-right/benchmark/benchmark.js index c8a0ec70..7472361d 100644 --- a/inmap-right/benchmark/benchmark.js +++ b/inmap-right/benchmark/benchmark.js @@ -108,7 +108,7 @@ bench( pkg+'::loop', function benchmark( b ) { for ( i = 0; i < b.iterations; i++ ) { arr[ 0 ] += 10.0; for ( j = arr.length-1; j >= 0; j-- ) { - arr[ j ] = clbk( arr[ j ], j ); // eslint-disable-line callback-return + arr[ j ] = clbk( arr[ j ], j ); // eslint-disable-line node/callback-return } if ( arr.length === 0 ) { b.fail( 'should not be empty' ); diff --git a/inmap/benchmark/benchmark.js b/inmap/benchmark/benchmark.js index f24ee9d2..53d7c3a5 100644 --- a/inmap/benchmark/benchmark.js +++ b/inmap/benchmark/benchmark.js @@ -108,7 +108,7 @@ bench( pkg+'::loop', function benchmark( b ) { for ( i = 0; i < b.iterations; i++ ) { arr[ 0 ] += 10.0; for ( j = 0; j < arr.length; j++ ) { - arr[ j ] = clbk( arr[ j ], j ); // eslint-disable-line callback-return + arr[ j ] = clbk( arr[ j ], j ); // eslint-disable-line node/callback-return } if ( arr.length === 0 ) { b.fail( 'should not be empty' ); diff --git a/library-manifest/bin/cli b/library-manifest/bin/cli index d5d3e788..b387d835 100755 --- a/library-manifest/bin/cli +++ b/library-manifest/bin/cli @@ -25,7 +25,7 @@ var resolve = require( 'path' ).resolve; // NOTE: we explicitly avoid using `@stdlib/fs/read-file` in this particular package in order to avoid circular dependencies. This should not be problematic as this command-line utility will be executed via Node.js. -var readFileSync = require( 'fs' ).readFileSync; // eslint-disable-line no-sync +var readFileSync = require( 'fs' ).readFileSync; // eslint-disable-line node/no-sync var CLI = require( '@stdlib/cli/ctor' ); var manifest = require( './../lib' ); diff --git a/parallel/lib/node/exec.js b/parallel/lib/node/exec.js index 26dcc267..7bc77109 100644 --- a/parallel/lib/node/exec.js +++ b/parallel/lib/node/exec.js @@ -92,7 +92,7 @@ function exec( files, opts, clbk ) { idx = -1; for ( i = 0; i < opts.concurrency; i++ ) { pid = pids[ i%pids.length ]; - next( workers[ pid ] ); // eslint-disable-line callback-return + next( workers[ pid ] ); // eslint-disable-line node/callback-return } /** @@ -181,7 +181,7 @@ function exec( files, opts, clbk ) { numClosed += 1; debug( '%d of %d child processes have closed.', numClosed, opts.workers ); if ( numClosed === opts.workers ) { - done(); // eslint-disable-line callback-return + done(); // eslint-disable-line node/callback-return } }