Skip to content

fix(#3527): resolve SonarQube code quality issues in lightspeed workspace#3545

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
fix/sonarqube-lightspeed-issues-3527
Open

fix(#3527): resolve SonarQube code quality issues in lightspeed workspace#3545
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
fix/sonarqube-lightspeed-issues-3527

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Address multiple SonarQube rule violations across the lightspeed workspace:

  • S101: Rename interface to PascalCase (UseAutoScrollOptions)
  • S125: Remove commented-out code
  • S1301: Replace single-case switch with if statement
  • S1788: Move default parameters to end of parameter list
  • S1854: Remove useless variable assignment
  • S2486: Remove unused catch binding
  • S2933: Mark never-reassigned members as readonly
  • S3735: Remove unnecessary void operator usage
  • S4030: Remove unused collection
  • S4325: Remove unnecessary type assertions
  • S4623: Remove redundant undefined parameters
  • S4782: Remove redundant undefined type with optional marker
  • S6479: Use meaningful keys instead of array indices
  • S6557: Use String#startsWith instead of regex
  • S6582: Use optional chaining
  • S6606: Use nullish coalescing operator
  • S6653: Use Object.hasOwn()
  • S6671: Use Error object for Promise rejection
  • S6748: Fix children prop passing in createElement
  • S6819: Use output element instead of status role
  • S7722: Use non-empty error message in test
  • S7735: Fix negated conditions
  • S7744: Remove useless empty objects
  • S7747: Remove unnecessary array cloning in for...of
  • S7762: Use childNode.remove()
  • S7764: Use globalThis instead of global/window
  • S7770: Replace identity wrapper with String directly
  • S7772: Use node: prefix for built-in module imports
  • S7773: Use Number.parseInt/parseFloat
  • S7778: Combine consecutive Array#push calls
  • S7780: Use String.raw for escaped backslashes
  • S7781: Use String#replaceAll instead of replace with global regex
  • S7784: Use structuredClone instead of JSON.parse(JSON.stringify)
  • S7787: Remove empty export statements

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com


Closes #3527

Post-script verification

  • Branch is not main/master (fix/sonarqube-lightspeed-issues-3527)
  • Secret scan passed (gitleaks — 870f011227023f9362903b9195f4755dec763d00..HEAD)
  • Pre-commit hooks passed (authoritative run on runner)
  • Tests ran inside sandbox

Address multiple SonarQube rule violations across the lightspeed workspace:

- S101: Rename interface to PascalCase (UseAutoScrollOptions)
- S125: Remove commented-out code
- S1301: Replace single-case switch with if statement
- S1788: Move default parameters to end of parameter list
- S1854: Remove useless variable assignment
- S2486: Remove unused catch binding
- S2933: Mark never-reassigned members as readonly
- S3735: Remove unnecessary void operator usage
- S4030: Remove unused collection
- S4325: Remove unnecessary type assertions
- S4623: Remove redundant undefined parameters
- S4782: Remove redundant undefined type with optional marker
- S6479: Use meaningful keys instead of array indices
- S6557: Use String#startsWith instead of regex
- S6582: Use optional chaining
- S6606: Use nullish coalescing operator
- S6653: Use Object.hasOwn()
- S6671: Use Error object for Promise rejection
- S6748: Fix children prop passing in createElement
- S6819: Use output element instead of status role
- S7722: Use non-empty error message in test
- S7735: Fix negated conditions
- S7744: Remove useless empty objects
- S7747: Remove unnecessary array cloning in for...of
- S7762: Use childNode.remove()
- S7764: Use globalThis instead of global/window
- S7770: Replace identity wrapper with String directly
- S7772: Use node: prefix for built-in module imports
- S7773: Use Number.parseInt/parseFloat
- S7778: Combine consecutive Array#push calls
- S7780: Use String.raw for escaped backslashes
- S7781: Use String#replaceAll instead of replace with global regex
- S7784: Use structuredClone instead of JSON.parse(JSON.stringify)
- S7787: Remove empty export statements

Closes #3527

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rhdh-gh-app

rhdh-gh-app Bot commented Jun 23, 2026

Copy link
Copy Markdown

Missing Changesets

The following package(s) are changed by this PR but do not have a changeset:

  • @red-hat-developer-hub/backstage-plugin-lightspeed-backend
  • @red-hat-developer-hub/backstage-plugin-lightspeed

See CONTRIBUTING.md for more information about how to add changesets.

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-lightspeed-backend workspaces/lightspeed/plugins/lightspeed-backend none v2.9.1
@red-hat-developer-hub/backstage-plugin-lightspeed workspaces/lightspeed/plugins/lightspeed none v2.9.1

@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

@sonarqubecloud

Copy link
Copy Markdown

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix sonarqube issues in lightspeed workspace

0 participants