From 72abfa9b8187df26ccd1cb3ca25e9551998e40a6 Mon Sep 17 00:00:00 2001 From: Dipjyoti Das <126075231+dipexplorer@users.noreply.github.com> Date: Sat, 5 Apr 2025 21:14:21 +0530 Subject: [PATCH 1/7] fix Editor Config lint errors (issue #6552) Signed-off-by: Dipjyoti Das <126075231+dipexplorer@users.noreply.github.com> --- .../schema/test/fixtures/bad_confs4.json | 124 +++++++++--------- 1 file changed, 62 insertions(+), 62 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/manifest-json/schema/test/fixtures/bad_confs4.json b/lib/node_modules/@stdlib/_tools/manifest-json/schema/test/fixtures/bad_confs4.json index 7768b984c5a0..4c7c60b7e0e9 100644 --- a/lib/node_modules/@stdlib/_tools/manifest-json/schema/test/fixtures/bad_confs4.json +++ b/lib/node_modules/@stdlib/_tools/manifest-json/schema/test/fixtures/bad_confs4.json @@ -1,64 +1,64 @@ { - "options": { - "os": "linux" - }, - "fields": [ - { - "field": "src", - "resolve": true, - "relative": false - }, - { - "field": "include", - "resolve": true, - "relative": false - }, - { - "field": "libraries", - "resolve": false, - "relative": false - }, - { - "field": "libpath", - "resolve": true, - "relative": false - } - ], - "confs": [ - { - "os": "linux", - "src": [ - "./src/foo_linux.f", - "./src/foo_linux.c" - ], - "libraries": [], - "libpath": [], - "dependencies": [ - "./beep" - ] - }, - { - "os": "mac", - "src": [ - "./src/foo_mac.f", - "./src/foo_mac_f.c" - ], - "libraries": [], - "libpath": [], - "dependencies": [ - "./beep" - ] - }, - { - "os": "win", - "src": [ - "./src/foo_win.c" - ], - "libraries": [], - "libpath": [], - "dependencies": [ - "./beep" - ] - } - ] + "options": { + "os": "linux" + }, + "fields": [ + { + "field": "src", + "resolve": true, + "relative": false + }, + { + "field": "include", + "resolve": true, + "relative": false + }, + { + "field": "libraries", + "resolve": false, + "relative": false + }, + { + "field": "libpath", + "resolve": true, + "relative": false + } + ], + "confs": [ + { + "os": "linux", + "src": [ + "./src/foo_linux.f", + "./src/foo_linux.c" + ], + "libraries": [], + "libpath": [], + "dependencies": [ + "./beep" + ] + }, + { + "os": "mac", + "src": [ + "./src/foo_mac.f", + "./src/foo_mac_f.c" + ], + "libraries": [], + "libpath": [], + "dependencies": [ + "./beep" + ] + }, + { + "os": "win", + "src": [ + "./src/foo_win.c" + ], + "libraries": [], + "libpath": [], + "dependencies": [ + "./beep" + ] + } + ] } From 38049f6fa40fa1064f35d98e5369be9da2324f6d Mon Sep 17 00:00:00 2001 From: Dipjyoti Das <126075231+dipexplorer@users.noreply.github.com> Date: Sat, 5 Apr 2025 21:33:04 +0530 Subject: [PATCH 2/7] fix EditorConfig in bad_confs4.json Signed-off-by: Dipjyoti Das <126075231+dipexplorer@users.noreply.github.com> --- .../schema/test/fixtures/bad_confs4.json | 124 +++++++++--------- 1 file changed, 62 insertions(+), 62 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/manifest-json/schema/test/fixtures/bad_confs4.json b/lib/node_modules/@stdlib/_tools/manifest-json/schema/test/fixtures/bad_confs4.json index 7768b984c5a0..4c7c60b7e0e9 100644 --- a/lib/node_modules/@stdlib/_tools/manifest-json/schema/test/fixtures/bad_confs4.json +++ b/lib/node_modules/@stdlib/_tools/manifest-json/schema/test/fixtures/bad_confs4.json @@ -1,64 +1,64 @@ { - "options": { - "os": "linux" - }, - "fields": [ - { - "field": "src", - "resolve": true, - "relative": false - }, - { - "field": "include", - "resolve": true, - "relative": false - }, - { - "field": "libraries", - "resolve": false, - "relative": false - }, - { - "field": "libpath", - "resolve": true, - "relative": false - } - ], - "confs": [ - { - "os": "linux", - "src": [ - "./src/foo_linux.f", - "./src/foo_linux.c" - ], - "libraries": [], - "libpath": [], - "dependencies": [ - "./beep" - ] - }, - { - "os": "mac", - "src": [ - "./src/foo_mac.f", - "./src/foo_mac_f.c" - ], - "libraries": [], - "libpath": [], - "dependencies": [ - "./beep" - ] - }, - { - "os": "win", - "src": [ - "./src/foo_win.c" - ], - "libraries": [], - "libpath": [], - "dependencies": [ - "./beep" - ] - } - ] + "options": { + "os": "linux" + }, + "fields": [ + { + "field": "src", + "resolve": true, + "relative": false + }, + { + "field": "include", + "resolve": true, + "relative": false + }, + { + "field": "libraries", + "resolve": false, + "relative": false + }, + { + "field": "libpath", + "resolve": true, + "relative": false + } + ], + "confs": [ + { + "os": "linux", + "src": [ + "./src/foo_linux.f", + "./src/foo_linux.c" + ], + "libraries": [], + "libpath": [], + "dependencies": [ + "./beep" + ] + }, + { + "os": "mac", + "src": [ + "./src/foo_mac.f", + "./src/foo_mac_f.c" + ], + "libraries": [], + "libpath": [], + "dependencies": [ + "./beep" + ] + }, + { + "os": "win", + "src": [ + "./src/foo_win.c" + ], + "libraries": [], + "libpath": [], + "dependencies": [ + "./beep" + ] + } + ] } From 93cbfda7eb85a68e9dcf244a2918a6fc9882f9ce Mon Sep 17 00:00:00 2001 From: Dipjyoti Das <126075231+dipexplorer@users.noreply.github.com> Date: Sat, 12 Apr 2025 20:31:14 +0530 Subject: [PATCH 3/7] fix EditorConfig lint errors (issue #6653) Signed-off-by: Dipjyoti Das <126075231+dipexplorer@users.noreply.github.com> --- .../_tools/eslint/rules/jsdoc-list-item-spacing/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-spacing/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-spacing/README.md index 618a8ec3f222..471ec5dc9540 100644 --- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-spacing/README.md +++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-spacing/README.md @@ -108,7 +108,7 @@ function beep() { } ``` -The [rule][eslint-rules] may be configured using the same options as supported by [remark][remark-lint-list-item-spacing]. +The [rule][eslint-rules] may be configured using the same options as supported by [remark][remark-lint-list-item-spacing]. From 282acf3abae9c9b8647456744e7122e959f922b8 Mon Sep 17 00:00:00 2001 From: Dipjyoti Das <126075231+dipexplorer@users.noreply.github.com> Date: Sat, 12 Apr 2025 22:04:41 +0530 Subject: [PATCH 4/7] fix JavaScript lint errors (issue #6654) Signed-off-by: Dipjyoti Das <126075231+dipexplorer@users.noreply.github.com> --- .../@stdlib/stats/base/dists/frechet/ctor/lib/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/node_modules/@stdlib/stats/base/dists/frechet/ctor/lib/index.js b/lib/node_modules/@stdlib/stats/base/dists/frechet/ctor/lib/index.js index aac77c670840..e467badd4e46 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/frechet/ctor/lib/index.js +++ b/lib/node_modules/@stdlib/stats/base/dists/frechet/ctor/lib/index.js @@ -1,3 +1,5 @@ +// cspell:ignore frechet échet + /** * @license Apache-2.0 * From a0e6b18eb8e37ccac50f54714355d7c9c9fd8b92 Mon Sep 17 00:00:00 2001 From: Dipjyoti Das <126075231+dipexplorer@users.noreply.github.com> Date: Sun, 13 Apr 2025 00:10:23 +0530 Subject: [PATCH 5/7] fix C lint errors Signed-off-by: Dipjyoti Das <126075231+dipexplorer@users.noreply.github.com> --- .../special/sabs2/benchmark/c/benchmark.length.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/strided/special/sabs2/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/math/strided/special/sabs2/benchmark/c/benchmark.length.c index fccc75083dc7..397a6ea65512 100644 --- a/lib/node_modules/@stdlib/math/strided/special/sabs2/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/math/strided/special/sabs2/benchmark/c/benchmark.length.c @@ -96,11 +96,16 @@ static float rand_float( void ) { */ static double benchmark( int iterations, int len ) { double elapsed; - float x[ len ]; - float y[ len ]; + float *x = (float *) malloc(len * sizeof(float)); + float *y = (float *) malloc(len * sizeof(float)); double t; int i; + if (x == NULL || y == NULL) { + printf("Memory allocation failed.\n"); + exit(1); + } + for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*200.0f ) - 100.0f; y[ i ] = 0.0f; @@ -117,6 +122,11 @@ static double benchmark( int iterations, int len ) { if ( y[ 0 ] != y[ 0 ] ) { printf( "should not return NaN\n" ); } + + // 🧹 Always clean up heap allocations + free(x); + free(y); + return elapsed; } From a64dcc471cf0e4e40779f39a405fd11e7289c2d1 Mon Sep 17 00:00:00 2001 From: Athan Date: Sun, 13 Apr 2025 00:43:28 -0700 Subject: [PATCH 6/7] Discard changes to lib/node_modules/@stdlib/math/strided/special/sabs2/benchmark/c/benchmark.length.c --- .../special/sabs2/benchmark/c/benchmark.length.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/lib/node_modules/@stdlib/math/strided/special/sabs2/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/math/strided/special/sabs2/benchmark/c/benchmark.length.c index 397a6ea65512..fccc75083dc7 100644 --- a/lib/node_modules/@stdlib/math/strided/special/sabs2/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/math/strided/special/sabs2/benchmark/c/benchmark.length.c @@ -96,16 +96,11 @@ static float rand_float( void ) { */ static double benchmark( int iterations, int len ) { double elapsed; - float *x = (float *) malloc(len * sizeof(float)); - float *y = (float *) malloc(len * sizeof(float)); + float x[ len ]; + float y[ len ]; double t; int i; - if (x == NULL || y == NULL) { - printf("Memory allocation failed.\n"); - exit(1); - } - for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*200.0f ) - 100.0f; y[ i ] = 0.0f; @@ -122,11 +117,6 @@ static double benchmark( int iterations, int len ) { if ( y[ 0 ] != y[ 0 ] ) { printf( "should not return NaN\n" ); } - - // 🧹 Always clean up heap allocations - free(x); - free(y); - return elapsed; } From b8cde9c3bcf10e65a4e91fff10f8100c63fcd06c Mon Sep 17 00:00:00 2001 From: Athan Date: Sun, 13 Apr 2025 00:43:34 -0700 Subject: [PATCH 7/7] Discard changes to lib/node_modules/@stdlib/stats/base/dists/frechet/ctor/lib/index.js --- .../@stdlib/stats/base/dists/frechet/ctor/lib/index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/frechet/ctor/lib/index.js b/lib/node_modules/@stdlib/stats/base/dists/frechet/ctor/lib/index.js index e467badd4e46..aac77c670840 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/frechet/ctor/lib/index.js +++ b/lib/node_modules/@stdlib/stats/base/dists/frechet/ctor/lib/index.js @@ -1,5 +1,3 @@ -// cspell:ignore frechet échet - /** * @license Apache-2.0 *