Skip to content

style(@stdlib/blas/base/drotm): fix spacing in multiline xe/ye arrays#12230

Draft
Planeshifter wants to merge 1 commit into
developfrom
philipp/ci-fix-lint-drotm-2026-05-21
Draft

style(@stdlib/blas/base/drotm): fix spacing in multiline xe/ye arrays#12230
Planeshifter wants to merge 1 commit into
developfrom
philipp/ci-fix-lint-drotm-2026-05-21

Conversation

@Planeshifter
Copy link
Copy Markdown
Member

Resolves #12222.

Description

What is the purpose of this pull request?

This pull request:

  • fixes 40 ESLint violations in @stdlib/blas/base/drotm test/test.ndarray.js reported by the lint CI workflow (run 26197800347) on the develop branch

The violations were:

  • 20 stdlib/eol-open-bracket-spacing errors — multiline xe/ye expected-value arrays used new Float64Array( [ (space before [ at end of line), which the rule disallows
  • 20 stdlib/line-closing-bracket-spacing errors — the corresponding closing lines used ] ); (space before ) at start of line), which the companion rule disallows

The fix removes the spaces so the bracket style matches the x/y input arrays already present in the same file, which already used the correct no-space multiline form.

Note for reviewers: Three sibling test files (test.drotm.js, test.drotm.native.js, test.ndarray.native.js) contain approximately 60 identical latent violations using the same wrong pattern. Those files are out of scope for this PR but may be worth addressing in a follow-up.

Related Issues

Does this pull request have any related issues?

This pull request has the following related issues:

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

CI workflow run that surfaced the failures: https://github.com/stdlib-js/stdlib/actions/runs/26197800347

Checklist

Please ensure the following tasks are completed before submitting this pull request.

AI Assistance

When authoring the changes proposed in this PR, did you use any kind of AI assistance?

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

This PR was written primarily by Claude Code. An automated CI-fix routine identified the lint failures from issue #12222, read the ESLint rule source to confirm the correct bracket-spacing semantics for multiline arrays, applied a targeted regex substitution to remove only the 40 offending spaces in the xe/ye expected-value arrays, and validated the change via three independent review passes before committing.


@stdlib-js/reviewers


Generated by Claude Code

The lint workflow on develop (run 26197800347) reported 40 errors in
`test/test.ndarray.js`: 20 `eol-open-bracket-spacing` and 20
`line-closing-bracket-spacing` violations. The multiline expected-value
arrays xe and ye used `new Float64Array( [` and `] )` with spaces,
which the stdlib ESLint rules disallow when array content spans
multiple lines. Input arrays x and y in the same file already used
the correct no-space format. This commit aligns xe and ye with that
established pattern.

Ref: https://github.com/stdlib-js/stdlib/actions/runs/26197800347
@stdlib-bot stdlib-bot added BLAS Issue or pull request related to Basic Linear Algebra Subprograms (BLAS). Good First PR A pull request resolving a Good First Issue. labels May 21, 2026
@stdlib-bot
Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
blas/base/drotm $\color{green}469/469$
$\color{green}+100.00%$
$\color{green}35/35$
$\color{green}+100.00%$
$\color{green}4/4$
$\color{green}+100.00%$
$\color{green}469/469$
$\color{green}+100.00%$

The above coverage report was generated for the changes in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BLAS Issue or pull request related to Basic Linear Algebra Subprograms (BLAS). Good First PR A pull request resolving a Good First Issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix JavaScript lint errors

3 participants