From cb5c108b532c112c6d7f2931bea27617f6cde1b3 Mon Sep 17 00:00:00 2001 From: sujal sunil chaudhary Date: Mon, 3 Nov 2025 07:10:43 +0530 Subject: [PATCH 1/3] chore: fix EditorConfig lint errors (issue #8356) --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../no-dynamic-require/examples/index.js | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/no-dynamic-require/examples/index.js b/lib/node_modules/@stdlib/_tools/eslint/rules/no-dynamic-require/examples/index.js index d347dd85b233..7d8ae3655bde 100644 --- a/lib/node_modules/@stdlib/_tools/eslint/rules/no-dynamic-require/examples/index.js +++ b/lib/node_modules/@stdlib/_tools/eslint/rules/no-dynamic-require/examples/index.js @@ -39,17 +39,17 @@ result = linter.verify( code, { }); console.log( result ); /* => - [ - { - 'ruleId': 'no-dynamic-require', - 'severity': 2, - 'message': 'require() calls should only use string literals', - 'line': 2, - 'column': 15, - 'nodeType': 'CallExpression', - 'source': 'var betainc = require( pkg );', - 'endLine': 2, - 'endColumn': 29 - } - ] + [ + { + 'ruleId': 'no-dynamic-require', + 'severity': 2, + 'message': 'require() calls should only use string literals', + 'line': 2, + 'column': 15, + 'nodeType': 'CallExpression', + 'source': 'var betainc = require( pkg );', + 'endLine': 2, + 'endColumn': 29 + } + ] */ From 0ef2f718fb1b0bd03cd46d0bee67c426c3fccf56 Mon Sep 17 00:00:00 2001 From: sujal sunil chaudhary Date: Mon, 3 Nov 2025 07:36:52 +0530 Subject: [PATCH 2/3] chore: fix JavaScript lint errors (issue #8357) --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../blas/base/isamax/test/test.isamax.js | 79 +++++++++++-------- 1 file changed, 48 insertions(+), 31 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/isamax/test/test.isamax.js b/lib/node_modules/@stdlib/blas/base/isamax/test/test.isamax.js index 19ad51ceae1b..7ff598ccf126 100644 --- a/lib/node_modules/@stdlib/blas/base/isamax/test/test.isamax.js +++ b/lib/node_modules/@stdlib/blas/base/isamax/test/test.isamax.js @@ -27,18 +27,18 @@ var isamax = require( './../lib/isamax.js' ); // TESTS // -tape( 'main export is a function', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof isamax, 'function', 'main export is a function' ); +tape('main export is a function', function test(t) { + t.ok(true, __filename); + t.strictEqual(typeof isamax, 'function', 'main export is a function'); t.end(); }); -tape( 'the function has an arity of 3', function test( t ) { - t.strictEqual( isamax.length, 3, 'returns expected value' ); +tape('the function has an arity of 3', function test(t) { + t.strictEqual(isamax.length, 3, 'returns expected value'); t.end(); }); -tape( 'the function finds the index of the element with the maximum absolute value', function test( t ) { +tape('the function finds the index of the element with the maximum absolute value', function test(t) { var expected; var idx; var x; @@ -54,43 +54,43 @@ tape( 'the function finds the index of the element with the maximum absolute val ]); expected = 2; - idx = isamax( 4, x, 1 ); - t.strictEqual( idx, expected, 'returns expected value' ); + idx = isamax(4, x, 1); + t.strictEqual(idx, expected, 'returns expected value'); - x = new Float32Array( [ + x = new Float32Array([ 0.2, // 1 -0.6, // 2 0.3, // 3 5.0, 5.0 - ] ); + ]); expected = 1; - idx = isamax( 3, x, 1 ); - t.strictEqual( idx, expected, 'returns expected value' ); + idx = isamax(3, x, 1); + t.strictEqual(idx, expected, 'returns expected value'); t.end(); }); -tape( 'if provided an `N` parameter less than `1`, the function returns `-1`', function test( t ) { +tape('if provided an `N` parameter less than `1`, the function returns `-1`', function test(t) { var expected; var idx; var x; - x = new Float32Array( [ + x = new Float32Array([ 1.0, 2.0, 3.0 - ] ); + ]); expected = -1; - idx = isamax( 0, x, 1 ); - t.strictEqual( idx, expected, 'returns expected value' ); + idx = isamax(0, x, 1); + t.strictEqual(idx, expected, 'returns expected value'); t.end(); }); -tape( 'the function supports specifying a stride', function test( t ) { +tape('the function supports specifying a stride', function test(t) { var expected; var idx; var x; @@ -107,28 +107,45 @@ tape( 'the function supports specifying a stride', function test( t ) { ]); expected = 2; - idx = isamax( 4, x, 2 ); - t.strictEqual( idx, expected, 'returns expected value' ); + idx = isamax(4, x, 2); + t.strictEqual(idx, expected, 'returns expected value'); t.end(); }); -tape( 'the function supports specifying a negative stride', function test( t ) { +tape('the function supports specifying a negative stride', function test(t) { var idx; var x; - x = new Float32Array( [ 3.0, -4.0, 1.0, 15.0, 4.0, 3.0 ] ); + x = new Float32Array([3.0, -4.0, 1.0, 15.0, 4.0, 3.0]); - idx = isamax( x.length, x, -1 ); - t.strictEqual( idx, 2, 'returns expected value' ); + idx = isamax(x.length, x, -1); + t.strictEqual(idx, 2, 'returns expected value'); - x = new Float32Array( [ 3.0, 999.9, 999.9, -4.0, 999.9, 999.9, 1.0, 999.9, 999.9, 15.0, 999.9, 999.9, 4.0, 999.9, 999.9, 3.0 ] ); - idx = isamax( 6, x, -3 ); - t.strictEqual( idx, 2, 'returns expected value' ); + x = new Float32Array([ + 3.0, + 999.9, + 999.9, + -4.0, + 999.9, + 999.9, + 1.0, + 999.9, + 999.9, + 15.0, + 999.9, + 999.9, + 4.0, + 999.9, + 999.9, + 3.0 + ]); + idx = isamax(6, x, -3); + t.strictEqual(idx, 2, 'returns expected value'); t.end(); }); -tape( 'the function supports view offsets', function test( t ) { +tape('the function supports view offsets', function test(t) { var expected; var idx; var x0; @@ -144,9 +161,9 @@ tape( 'the function supports view offsets', function test( t ) { ]); expected = 2; - x1 = new Float32Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); + x1 = new Float32Array(x0.buffer, x0.BYTES_PER_ELEMENT*1); - idx = isamax( 3, x1, 2 ); - t.strictEqual( idx, expected, 'returns expected value' ); + idx = isamax(3, x1, 2); + t.strictEqual(idx, expected, 'returns expected value'); t.end(); }); From cdf7e9fe38e6e7e93c8969728101a44c2dce85be Mon Sep 17 00:00:00 2001 From: Athan Date: Sun, 2 Nov 2025 23:50:21 -0800 Subject: [PATCH 3/3] Discard changes to lib/node_modules/@stdlib/_tools/eslint/rules/no-dynamic-require/examples/index.js --- .../no-dynamic-require/examples/index.js | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/no-dynamic-require/examples/index.js b/lib/node_modules/@stdlib/_tools/eslint/rules/no-dynamic-require/examples/index.js index 7d8ae3655bde..d347dd85b233 100644 --- a/lib/node_modules/@stdlib/_tools/eslint/rules/no-dynamic-require/examples/index.js +++ b/lib/node_modules/@stdlib/_tools/eslint/rules/no-dynamic-require/examples/index.js @@ -39,17 +39,17 @@ result = linter.verify( code, { }); console.log( result ); /* => - [ - { - 'ruleId': 'no-dynamic-require', - 'severity': 2, - 'message': 'require() calls should only use string literals', - 'line': 2, - 'column': 15, - 'nodeType': 'CallExpression', - 'source': 'var betainc = require( pkg );', - 'endLine': 2, - 'endColumn': 29 - } - ] + [ + { + 'ruleId': 'no-dynamic-require', + 'severity': 2, + 'message': 'require() calls should only use string literals', + 'line': 2, + 'column': 15, + 'nodeType': 'CallExpression', + 'source': 'var betainc = require( pkg );', + 'endLine': 2, + 'endColumn': 29 + } + ] */