From e6f4c6e1cf45280bbe33f9feab15a545f1254f40 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 11 Sep 2026 13:20:51 +0000 Subject: [PATCH 1/4] style: add missing spaces Propagates fix from 42d3459 ("style: add missing spaces") to sibling test files migrated to ULP-based assertions which retain unspaced single-level bracket indexing. Affected packages: - blas/base/drotg - stats/base/dists/bradford/pdf - stats/base/dists/exponential/cdf - stats/ttest Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01Kb1Gpvp3E3LKqB4iF49u1C --- .../blas/base/drotg/test/test.assign.js | 18 +++++++------- .../@stdlib/blas/base/drotg/test/test.main.js | 10 ++++---- .../dists/bradford/pdf/test/test.factory.js | 12 +++++----- .../dists/bradford/pdf/test/test.native.js | 12 +++++----- .../base/dists/bradford/pdf/test/test.pdf.js | 6 ++--- .../dists/exponential/cdf/test/test.cdf.js | 2 +- .../exponential/cdf/test/test.factory.js | 4 ++-- .../dists/exponential/cdf/test/test.native.js | 2 +- .../@stdlib/stats/ttest/test/test.js | 18 +++++++------- .../@stdlib/stats/ttest/test/test.validate.js | 24 +++++++++---------- 10 files changed, 54 insertions(+), 54 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/drotg/test/test.assign.js b/lib/node_modules/@stdlib/blas/base/drotg/test/test.assign.js index 8f6712f731a5..f750866a5827 100644 --- a/lib/node_modules/@stdlib/blas/base/drotg/test/test.assign.js +++ b/lib/node_modules/@stdlib/blas/base/drotg/test/test.assign.js @@ -70,11 +70,11 @@ tape( 'the function computes a Givens plane rotation', function test( t ) { ]; for ( i = 0; i < values.length; i++ ) { - e = new Float64Array( expected[i] ); + e = new Float64Array( expected[ i ] ); out = new Float64Array( 4 ); drotg( values[i][0], values[i][1], out, 1, 0 ); for ( j = 0; j < out.length; j++ ) { - t.strictEqual( isAlmostSameValue( out[j], e[j], 2 ), true, 'returns expected value' ); + t.strictEqual( isAlmostSameValue( out[ j ], e[ j ], 2 ), true, 'returns expected value' ); } } t.end(); @@ -86,17 +86,17 @@ tape( 'the function returns an array of NaNs if provided a rotation elimination actual = drotg( NaN, 1.0, new Float64Array( 4 ), 1, 0 ); for ( i = 0; i < actual.length; i++ ) { - t.strictEqual( isnan( actual[i] ), true, 'returns expected value' ); + t.strictEqual( isnan( actual[ i ] ), true, 'returns expected value' ); } actual = drotg( 1.0, NaN, new Float64Array( 4 ), 1, 0 ); for ( i = 0; i < actual.length; i++ ) { - t.strictEqual( isnan( actual[i] ), true, 'returns expected value' ); + t.strictEqual( isnan( actual[ i ] ), true, 'returns expected value' ); } actual = drotg( NaN, NaN, new Float64Array( 4 ), 1, 0 ); for ( i = 0; i < actual.length; i++ ) { - t.strictEqual( isnan( actual[i] ), true, 'returns expected value' ); + t.strictEqual( isnan( actual[ i ] ), true, 'returns expected value' ); } t.end(); }); @@ -113,7 +113,7 @@ tape( 'the function supports providing a positive stride', function test( t ) { actual = drotg( 0.3, 0.4, out, 2, 0 ); t.strictEqual( actual, out, 'returns expected value' ); for ( i = 0; i < out.length; i++ ) { - t.strictEqual( isAlmostSameValue( out[i], expected[i], 2 ), true, 'returns expected value' ); + t.strictEqual( isAlmostSameValue( out[ i ], expected[ i ], 2 ), true, 'returns expected value' ); } t.end(); }); @@ -130,7 +130,7 @@ tape( 'the function supports providing a negative stride', function test( t ) { actual = drotg( 0.3, 0.4, out, -2, 6 ); t.strictEqual( actual, out, 'returns expected value' ); for ( i = 0; i < out.length; i++ ) { - t.strictEqual( isAlmostSameValue( out[i], expected[i], 2 ), true, 'returns expected value' ); + t.strictEqual( isAlmostSameValue( out[ i ], expected[ i ], 2 ), true, 'returns expected value' ); } t.end(); }); @@ -147,7 +147,7 @@ tape( 'the function supports providing a positive offset', function test( t ) { actual = drotg( 0.3, 0.4, out, 1, 1 ); t.strictEqual( actual, out, 'returns expected value' ); for ( i = 0; i < out.length; i++ ) { - t.strictEqual( isAlmostSameValue( out[i], expected[i], 2 ), true, 'returns expected value' ); + t.strictEqual( isAlmostSameValue( out[ i ], expected[ i ], 2 ), true, 'returns expected value' ); } t.end(); }); @@ -164,7 +164,7 @@ tape( 'the function supports providing both a stride and offset', function test( actual = drotg( 0.3, 0.4, out, 2, 2 ); t.strictEqual( actual, out, 'returns expected value' ); for ( i = 0; i < out.length; i++ ) { - t.strictEqual( isAlmostSameValue( out[i], expected[i], 2 ), true, 'returns expected value' ); + t.strictEqual( isAlmostSameValue( out[ i ], expected[ i ], 2 ), true, 'returns expected value' ); } t.end(); }); diff --git a/lib/node_modules/@stdlib/blas/base/drotg/test/test.main.js b/lib/node_modules/@stdlib/blas/base/drotg/test/test.main.js index aa3ac079778f..03f4555fc4ec 100644 --- a/lib/node_modules/@stdlib/blas/base/drotg/test/test.main.js +++ b/lib/node_modules/@stdlib/blas/base/drotg/test/test.main.js @@ -70,10 +70,10 @@ tape( 'the function computes a Givens plane rotation', function test( t ) { ]; for ( i = 0; i < values.length; i++ ) { - e = new Float64Array( expected[i] ); + e = new Float64Array( expected[ i ] ); out = drotg( values[i][0], values[i][1] ); for ( j = 0; j < out.length; j++ ) { - t.strictEqual( isAlmostSameValue( out[j], e[j], 2 ), true, 'returns expected value' ); + t.strictEqual( isAlmostSameValue( out[ j ], e[ j ], 2 ), true, 'returns expected value' ); } } t.end(); @@ -85,17 +85,17 @@ tape( 'the function returns an array of NaNs if provided a rotational eliminatio actual = drotg( NaN, 1.0 ); for ( i = 0; i < actual.length; i++ ) { - t.strictEqual( isnan( actual[i] ), true, 'returns expected value' ); + t.strictEqual( isnan( actual[ i ] ), true, 'returns expected value' ); } actual = drotg( 1.0, NaN ); for ( i = 0; i < actual.length; i++ ) { - t.strictEqual( isnan( actual[i] ), true, 'returns expected value' ); + t.strictEqual( isnan( actual[ i ] ), true, 'returns expected value' ); } actual = drotg( NaN, NaN ); for ( i = 0; i < actual.length; i++ ) { - t.strictEqual( isnan( actual[i] ), true, 'returns expected value' ); + t.strictEqual( isnan( actual[ i ] ), true, 'returns expected value' ); } t.end(); }); diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/pdf/test/test.factory.js b/lib/node_modules/@stdlib/stats/base/dists/bradford/pdf/test/test.factory.js index 4e7e5a158269..fe8919502c91 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bradford/pdf/test/test.factory.js +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/pdf/test/test.factory.js @@ -115,8 +115,8 @@ tape( 'the created function evaluates the pdf for `x` given small `c`', function x = smallC.x; c = smallC.c; for ( i = 0; i < x.length; i++ ) { - pdf = factory( c[i] ); - y = pdf( x[i] ); + pdf = factory( c[ i ] ); + y = pdf( x[ i ] ); t.strictEqual( isAlmostSameValue( y, expected[ i ], 3 ), true, 'returns expected value' ); } t.end(); @@ -134,8 +134,8 @@ tape( 'the created function evaluates the pdf for `x` given a medium `c`', funct x = mediumC.x; c = mediumC.c; for ( i = 0; i < x.length; i++ ) { - pdf = factory( c[i] ); - y = pdf( x[i] ); + pdf = factory( c[ i ] ); + y = pdf( x[ i ] ); t.strictEqual( isAlmostSameValue( y, expected[ i ], 3 ), true, 'returns expected value' ); } t.end(); @@ -153,8 +153,8 @@ tape( 'the created function evaluates the pdf for `x` given a large `c`', functi x = largeC.x; c = largeC.c; for ( i = 0; i < x.length; i++ ) { - pdf = factory( c[i] ); - y = pdf( x[i] ); + pdf = factory( c[ i ] ); + y = pdf( x[ i ] ); t.strictEqual( isAlmostSameValue( y, expected[ i ], 2 ), true, 'returns expected value' ); } t.end(); diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/pdf/test/test.native.js b/lib/node_modules/@stdlib/stats/base/dists/bradford/pdf/test/test.native.js index edc18d2d5d97..8a206276ca5f 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bradford/pdf/test/test.native.js +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/pdf/test/test.native.js @@ -108,8 +108,8 @@ tape( 'the function evaluates the pdf for `x` given small parameter `c`', opts, x = smallC.x; c = smallC.c; for ( i = 0; i < x.length; i++ ) { - y = pdf( x[i], c[i] ); - if ( expected[i] !== null ) { + y = pdf( x[ i ], c[ i ] ); + if ( expected[ i ] !== null ) { t.strictEqual( isAlmostSameValue( y, expected[ i ], 3 ), true, 'returns expected value' ); } } @@ -127,8 +127,8 @@ tape( 'the function evaluates the pdf for `x` given medium parameter `c`', opts, x = mediumC.x; c = mediumC.c; for ( i = 0; i < x.length; i++ ) { - y = pdf( x[i], c[i] ); - if ( expected[i] !== null ) { + y = pdf( x[ i ], c[ i ] ); + if ( expected[ i ] !== null ) { t.strictEqual( isAlmostSameValue( y, expected[ i ], 3 ), true, 'returns expected value' ); } } @@ -146,8 +146,8 @@ tape( 'the function evaluates the pdf for `x` given large parameter `c`', opts, x = largeC.x; c = largeC.c; for ( i = 0; i < x.length; i++ ) { - y = pdf( x[i], c[i] ); - if ( expected[i] !== null ) { + y = pdf( x[ i ], c[ i ] ); + if ( expected[ i ] !== null ) { t.strictEqual( isAlmostSameValue( y, expected[ i ], 2 ), true, 'returns expected value' ); } } diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/pdf/test/test.pdf.js b/lib/node_modules/@stdlib/stats/base/dists/bradford/pdf/test/test.pdf.js index 0886e9948a2b..bb5f366be1d7 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bradford/pdf/test/test.pdf.js +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/pdf/test/test.pdf.js @@ -99,7 +99,7 @@ tape( 'the function evaluates the pdf for `x` given small parameter `c`', functi x = smallC.x; c = smallC.c; for ( i = 0; i < x.length; i++ ) { - y = pdf( x[i], c[i] ); + y = pdf( x[ i ], c[ i ] ); t.strictEqual( isAlmostSameValue( y, expected[ i ], 3 ), true, 'returns expected value' ); } t.end(); @@ -116,7 +116,7 @@ tape( 'the function evaluates the pdf for `x` given medium parameter `c`', funct x = mediumC.x; c = mediumC.c; for ( i = 0; i < x.length; i++ ) { - y = pdf( x[i], c[i] ); + y = pdf( x[ i ], c[ i ] ); t.strictEqual( isAlmostSameValue( y, expected[ i ], 3 ), true, 'returns expected value' ); } t.end(); @@ -133,7 +133,7 @@ tape( 'the function evaluates the pdf for `x` given large parameter `c`', functi x = largeC.x; c = largeC.c; for ( i = 0; i < x.length; i++ ) { - y = pdf( x[i], c[i] ); + y = pdf( x[ i ], c[ i ] ); t.strictEqual( isAlmostSameValue( y, expected[ i ], 2 ), true, 'returns expected value' ); } t.end(); diff --git a/lib/node_modules/@stdlib/stats/base/dists/exponential/cdf/test/test.cdf.js b/lib/node_modules/@stdlib/stats/base/dists/exponential/cdf/test/test.cdf.js index d3674aa8292d..f06bf8209d63 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/exponential/cdf/test/test.cdf.js +++ b/lib/node_modules/@stdlib/stats/base/dists/exponential/cdf/test/test.cdf.js @@ -105,7 +105,7 @@ tape( 'the function evaluates the cdf for `x` given parameter `lambda`', functio x = data.x; lambda = data.lambda; for ( i = 0; i < x.length; i++ ) { - y = cdf( x[i], lambda[i] ); + y = cdf( x[ i ], lambda[ i ] ); t.strictEqual( isAlmostSameValue( y, expected[ i ], 0 ), true, 'returns expected value' ); } t.end(); diff --git a/lib/node_modules/@stdlib/stats/base/dists/exponential/cdf/test/test.factory.js b/lib/node_modules/@stdlib/stats/base/dists/exponential/cdf/test/test.factory.js index c1e4dc2b8c07..64f73b8c5bf1 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/exponential/cdf/test/test.factory.js +++ b/lib/node_modules/@stdlib/stats/base/dists/exponential/cdf/test/test.factory.js @@ -132,8 +132,8 @@ tape( 'the created function evaluates the cdf for `x` given parameter `lambda`', x = data.x; lambda = data.lambda; for ( i = 0; i < x.length; i++ ) { - cdf = factory( lambda[i] ); - y = cdf( x[i] ); + cdf = factory( lambda[ i ] ); + y = cdf( x[ i ] ); t.strictEqual( isAlmostSameValue( y, expected[ i ], 0 ), true, 'returns expected value' ); } t.end(); diff --git a/lib/node_modules/@stdlib/stats/base/dists/exponential/cdf/test/test.native.js b/lib/node_modules/@stdlib/stats/base/dists/exponential/cdf/test/test.native.js index 43737bb8d4cd..7d21fdc7fdbb 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/exponential/cdf/test/test.native.js +++ b/lib/node_modules/@stdlib/stats/base/dists/exponential/cdf/test/test.native.js @@ -114,7 +114,7 @@ tape( 'the function evaluates the cdf for `x` given parameter `lambda`', opts, f x = data.x; lambda = data.lambda; for ( i = 0; i < x.length; i++ ) { - y = cdf( x[i], lambda[i] ); + y = cdf( x[ i ], lambda[ i ] ); t.strictEqual( isAlmostSameValue( y, expected[ i ], 0 ), true, 'returns expected value' ); } t.end(); diff --git a/lib/node_modules/@stdlib/stats/ttest/test/test.js b/lib/node_modules/@stdlib/stats/ttest/test/test.js index 614673e91a30..ee7b280965d8 100644 --- a/lib/node_modules/@stdlib/stats/ttest/test/test.js +++ b/lib/node_modules/@stdlib/stats/ttest/test/test.js @@ -65,7 +65,7 @@ tape( 'the function throws an error if the `x` argument is not a numeric array', ]; for ( i = 0; i < values.length; i++ ) { - t.throws( badValue( values[i] ), TypeError, 'throws an error when provided '+values[i] ); + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided '+values[ i ] ); } t.end(); @@ -86,7 +86,7 @@ tape( 'the function throws an error if the `x` array has less than two elements' ]; for ( i = 0; i < values.length; i++ ) { - t.throws( badValue( values[i] ), Error, 'throws an error when provided '+values[i] ); + t.throws( badValue( values[ i ] ), Error, 'throws an error when provided '+values[ i ] ); } t.end(); @@ -113,7 +113,7 @@ tape( 'the function throws an error if the `y` argument is not a numeric array', ]; for ( i = 0; i < values.length; i++ ) { - t.throws( badValue( values[i] ), TypeError, 'throws an error when provided '+values[i] ); + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided '+values[ i ] ); } t.end(); @@ -134,7 +134,7 @@ tape( 'the function throws an error if the `x` and `y` arguments are arrays of d ]; for ( i = 0; i < values.length; i++ ) { - t.throws( badValue( values[i] ), Error, 'throws an error when provided '+values[i] ); + t.throws( badValue( values[ i ] ), Error, 'throws an error when provided '+values[ i ] ); } t.end(); @@ -160,7 +160,7 @@ tape( 'the function throws an error if provided an invalid option', function tes ]; for ( i = 0; i < values.length; i++ ) { - t.throws( badValue( values[i] ), TypeError, 'throws an error when provided '+values[i] ); + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided '+values[ i ] ); } t.throws( badValue( 'not one of less, greater or two-sided' ), Error, 'throws an error when provided not less, greater or two-sided' ); @@ -185,7 +185,7 @@ tape( 'the function throws an error if the `alpha` option is a numeric value out ]; for ( i = 0; i < values.length; i++ ) { - t.throws( badValue( values[i] ), RangeError, 'throws an error when provided '+values[i] ); + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided '+values[ i ] ); } t.end(); @@ -565,7 +565,7 @@ tape( 'the function returns an object with a `.print()` method that throws an er ]; for ( i = 0; i < values.length; i++ ) { - t.throws( badValue( values[i] ), TypeError, 'throws an error when provided '+values[i] ); + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided '+values[ i ] ); } t.end(); @@ -600,7 +600,7 @@ tape( 'the function returns an object with a `.print()` method that throws an er ]; for ( i = 0; i < values.length; i++ ) { - t.throws( badValue( values[i] ), TypeError, 'throws an error when provided '+values[i] ); + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided '+values[ i ] ); } t.end(); @@ -637,7 +637,7 @@ tape( 'the function returns an object with a `.print()` method that throws an er ]; for ( i = 0; i < values.length; i++ ) { - t.throws( badValue( values[i] ), TypeError, 'throws an error when provided '+values[i] ); + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided '+values[ i ] ); } t.end(); diff --git a/lib/node_modules/@stdlib/stats/ttest/test/test.validate.js b/lib/node_modules/@stdlib/stats/ttest/test/test.validate.js index 23baaac845d7..9c8aff768a03 100644 --- a/lib/node_modules/@stdlib/stats/ttest/test/test.validate.js +++ b/lib/node_modules/@stdlib/stats/ttest/test/test.validate.js @@ -49,8 +49,8 @@ tape( 'the function returns an error if not provided an options object', functio ]; for ( i = 0; i < values.length; i++ ) { - err = validate( {}, values[i] ); - t.strictEqual( err instanceof TypeError, true, 'returns expected value when provided '+values[i] ); + err = validate( {}, values[ i ] ); + t.strictEqual( err instanceof TypeError, true, 'returns expected value when provided '+values[ i ] ); } t.end(); }); @@ -73,9 +73,9 @@ tape( 'the function returns an error if provided an `alpha` option which is not for ( i = 0; i < values.length; i++ ) { err = validate( {}, { - 'alpha': values[i] + 'alpha': values[ i ] }); - t.strictEqual( err instanceof TypeError, true, 'returns expected value when provided '+values[i] ); + t.strictEqual( err instanceof TypeError, true, 'returns expected value when provided '+values[ i ] ); } t.end(); }); @@ -93,9 +93,9 @@ tape( 'the function returns an error if provided an `alpha` option which is not for ( i = 0; i < values.length; i++ ) { err = validate( {}, { - 'alpha': values[i] + 'alpha': values[ i ] }); - t.strictEqual( err instanceof RangeError, true, 'returns expected value when provided '+values[i] ); + t.strictEqual( err instanceof RangeError, true, 'returns expected value when provided '+values[ i ] ); } t.end(); }); @@ -118,9 +118,9 @@ tape( 'the function returns an error if provided an `alternative` option which i for ( i = 0; i < values.length; i++ ) { err = validate( {}, { - 'alternative': values[i] + 'alternative': values[ i ] }); - t.strictEqual( err instanceof TypeError, true, 'returns expected value when provided '+values[i] ); + t.strictEqual( err instanceof TypeError, true, 'returns expected value when provided '+values[ i ] ); } t.end(); }); @@ -139,9 +139,9 @@ tape( 'the function returns an error if provided an unrecognized/unsupported `al for ( i = 0; i < values.length; i++ ) { err = validate( {}, { - 'alternative': values[i] + 'alternative': values[ i ] }); - t.strictEqual( err instanceof Error, true, 'returns expected value when provided '+values[i] ); + t.strictEqual( err instanceof Error, true, 'returns expected value when provided '+values[ i ] ); } t.end(); }); @@ -164,9 +164,9 @@ tape( 'the function returns an error if provided a `mu` option which is not a nu for ( i = 0; i < values.length; i++ ) { err = validate( {}, { - 'mu': values[i] + 'mu': values[ i ] }); - t.strictEqual( err instanceof TypeError, true, 'returns expected value when provided '+values[i] ); + t.strictEqual( err instanceof TypeError, true, 'returns expected value when provided '+values[ i ] ); } t.end(); }); From c33cebfe29ceb9bb4cfbc56214f24054e644da6f Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 11 Sep 2026 13:21:02 +0000 Subject: [PATCH 2/4] build: cap xargs batch size in `run_affected_benchmarks` Propagates fix from 04cd72b ("build: cap xargs batch size in `run_affected_tests`") to the sibling workflow script, which invokes make via xargs with the same unbounded file-list idiom and is thus susceptible to the same "Argument list too long" failure. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01Kb1Gpvp3E3LKqB4iF49u1C --- .github/workflows/scripts/run_affected_benchmarks/run | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/scripts/run_affected_benchmarks/run b/.github/workflows/scripts/run_affected_benchmarks/run index 9f8ec3b67d9c..faed7f6eab4e 100755 --- a/.github/workflows/scripts/run_affected_benchmarks/run +++ b/.github/workflows/scripts/run_affected_benchmarks/run @@ -141,8 +141,8 @@ main() { # Run JS benchmarks: if [ -n "${js_bench_files}" ]; then - # Invoke make in batches to avoid "Argument list too long" errors: - printf '%s\n' ${js_bench_files} | xargs sh -c 'make benchmark-javascript-files FILES="$*"' _ + # Invoke make in batches, capped well under the 128KiB Linux single-argument limit, in order to avoid "Argument list too long" errors: + printf '%s\n' ${js_bench_files} | xargs -s 40000 sh -c 'make benchmark-javascript-files FILES="$*"' _ else echo 'No JavaScript benchmarks to run.' >&2 fi @@ -173,8 +173,8 @@ main() { fi if [ -n "${c_bench_files}" ]; then - # Invoke make in batches to avoid "Argument list too long" errors: - printf '%s\n' ${c_bench_files} | xargs sh -c 'make benchmark-c-files FILES="$*"' _ + # Invoke make in batches, capped well under the 128KiB Linux single-argument limit, in order to avoid "Argument list too long" errors: + printf '%s\n' ${c_bench_files} | xargs -s 40000 sh -c 'make benchmark-c-files FILES="$*"' _ else echo 'No C benchmarks to run.' >&2 fi From 051458d0523751540464993c71c146c68e623739 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 11 Sep 2026 13:21:12 +0000 Subject: [PATCH 3/4] chore: fix EditorConfig lint errors in `no-immediate-require` examples Propagates fix from d30d365 ("chore: fix EditorConfig lint errors") to the sibling ESLint rule package whose examples file has the same space-indented example-output comment block, in violation of the project EditorConfig mandating tab indentation for JavaScript files. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01Kb1Gpvp3E3LKqB4iF49u1C --- .../no-immediate-require/examples/index.js | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/no-immediate-require/examples/index.js b/lib/node_modules/@stdlib/_tools/eslint/rules/no-immediate-require/examples/index.js index 0d75c895e456..5b525954fc3a 100644 --- a/lib/node_modules/@stdlib/_tools/eslint/rules/no-immediate-require/examples/index.js +++ b/lib/node_modules/@stdlib/_tools/eslint/rules/no-immediate-require/examples/index.js @@ -36,17 +36,17 @@ result = linter.verify( code, { }); console.log( result ); /* => - [ - { - 'ruleId': 'no-immediate-require', - 'severity': 2, - 'message': 'require() expressions should not be immediately invoked', - 'line': 2, - 'column': 15, - 'nodeType': 'CallExpression', - 'source': 'var pdf = require( \'@stdlib/stats/base/dists/normal/pdf\' ).factory( 0.0, 1.0 );', - 'endLine': 2, - 'endColumn': 29 - } - ] + [ + { + 'ruleId': 'no-immediate-require', + 'severity': 2, + 'message': 'require() expressions should not be immediately invoked', + 'line': 2, + 'column': 15, + 'nodeType': 'CallExpression', + 'source': 'var pdf = require( \'@stdlib/stats/base/dists/normal/pdf\' ).factory( 0.0, 1.0 );', + 'endLine': 2, + 'endColumn': 29 + } + ] */ From 3a8c297c9d15d92d24b927b06e96a65946b51ff5 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 11 Sep 2026 13:21:23 +0000 Subject: [PATCH 4/4] chore: fix JavaScript lint errors in `_tools/github/rank-users` Propagates fix from b15594b ("chore: fix JavaScript lint errors") to the sibling file in the same package, which uses the `new Array()` constructor in violation of the `stdlib/no-new-array` ESLint rule. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01Kb1Gpvp3E3LKqB4iF49u1C --- .../@stdlib/_tools/github/rank-users/lib/shuffle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/github/rank-users/lib/shuffle.js b/lib/node_modules/@stdlib/_tools/github/rank-users/lib/shuffle.js index 5615fbfb940a..0fc1486718e4 100644 --- a/lib/node_modules/@stdlib/_tools/github/rank-users/lib/shuffle.js +++ b/lib/node_modules/@stdlib/_tools/github/rank-users/lib/shuffle.js @@ -28,9 +28,9 @@ function shuffle( data, sorted ) { var out; var i; - out = new Array( data.length ); + out = []; for ( i = 0; i < data.length; i++ ) { - out[ i ] = data[ sorted[i][0] ]; + out.push( data[ sorted[i][0] ] ); } return out; }