From ea18ca46f01275dba8ed2ca39e9c25f0c366d5ed Mon Sep 17 00:00:00 2001 From: sujal sunil chaudhary Date: Wed, 12 Nov 2025 20:33:57 +0530 Subject: [PATCH 1/2] chore: fix JavaScript lint errors (issue #8483) --- 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 --- --- lib/node_modules/@stdlib/fs/read-dir/examples/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/fs/read-dir/examples/index.js b/lib/node_modules/@stdlib/fs/read-dir/examples/index.js index 244a18f2d158..1c41291ce3f8 100644 --- a/lib/node_modules/@stdlib/fs/read-dir/examples/index.js +++ b/lib/node_modules/@stdlib/fs/read-dir/examples/index.js @@ -18,6 +18,7 @@ 'use strict'; +var isError = require( '@stdlib/assert/is-error' ); var readDir = require( './../lib' ); /* Sync */ @@ -25,13 +26,13 @@ var readDir = require( './../lib' ); var out = readDir.sync( __dirname ); // returns -console.log( out instanceof Error ); +console.log( isError( out ) ); // => false out = readDir.sync( 'beepboop' ); // returns -console.log( out instanceof Error ); +console.log( isError( out ) ); // => true /* Async */ From 2bbebbc96c9f938cab9c7d51b358b27133995fe3 Mon Sep 17 00:00:00 2001 From: sujal sunil chaudhary Date: Thu, 27 Nov 2025 08:32:08 +0530 Subject: [PATCH 2/2] chore: fix C lint errors (issue #8608) --- 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: 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: missing_dependencies - 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 --- --- .../ndarray/base/max-view-buffer-index/benchmark/c/benchmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/ndarray/base/max-view-buffer-index/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/ndarray/base/max-view-buffer-index/benchmark/c/benchmark.c index 04ac010e577a..4dbb38bc9271 100644 --- a/lib/node_modules/@stdlib/ndarray/base/max-view-buffer-index/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/ndarray/base/max-view-buffer-index/benchmark/c/benchmark.c @@ -96,7 +96,7 @@ static double benchmark( void ) { double t; int i; - int64_t shape[] = { 10, 10, 10 }; + const int64_t shape[] = { 10, 10, 10 }; int64_t strides[] = { 100, 10, 1 }; int64_t offset = 1000; int64_t ndims = 3;