Skip to content

Commit e0b1c03

Browse files
committed
fix: add eslint-disable-line comments for stdlib/no-new-array rule
This commit fixes lint errors in the aversin-by test file by adding eslint-disable-line comments for intentional sparse array creation using the new Array() constructor. The sparse arrays are needed for testing the function's behavior with arrays containing holes. Ref: #8759 --- 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 ---
1 parent 9b50472 commit e0b1c03

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/math/strided/special/aversin-by/test

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/math/strided/special/aversin-by/test/test.main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ tape( 'the function computes the inverse versed sine via a callback function', f
7474
aversinBy( x.length, x, 1, y, 1, accessor );
7575
t.deepEqual( y, expected, 'deep equal' );
7676

77-
x = new Array( 5 ); // sparse array
77+
x = new Array( 5 ); // eslint-disable-line stdlib/no-new-array
7878
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
7979

8080
expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
8181

8282
aversinBy( x.length, x, 1, y, 1, accessor );
8383
t.deepEqual( y, expected, 'deep equal' );
8484

85-
x = new Array( 5 ); // sparse array
85+
x = new Array( 5 ); // eslint-disable-line stdlib/no-new-array
8686
x[ 2 ] = rand();
8787
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
8888

0 commit comments

Comments
 (0)