Skip to content

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

Closed
fullsend-ai-coder[bot] wants to merge 2 commits into
mainfrom
fix/sonarqube-lightspeed-issues-3527
Closed

fix(#3527): resolve SonarQube code quality issues in lightspeed workspace#3545
fullsend-ai-coder[bot] wants to merge 2 commits 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

@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

Codecov Report

❌ Patch coverage is 68.18182% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.59%. Comparing base (8ba3661) to head (ca1bfba).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3545      +/-   ##
==========================================
- Coverage   52.60%   52.59%   -0.01%     
==========================================
  Files        2273     2273              
  Lines       86812    86805       -7     
  Branches    24309    24321      +12     
==========================================
- Hits        45667    45657      -10     
- Misses      40935    40938       +3     
  Partials      210      210              
Flag Coverage Δ *Carryforward flag
adoption-insights 83.70% <ø> (ø) Carriedforward from 8ba3661
ai-integrations 67.95% <ø> (ø) Carriedforward from 8ba3661
app-defaults 69.79% <ø> (ø) Carriedforward from 8ba3661
augment 46.39% <ø> (ø) Carriedforward from 8ba3661
boost 65.18% <ø> (ø) Carriedforward from 8ba3661
bulk-import 72.46% <ø> (ø) Carriedforward from 8ba3661
cost-management 14.10% <ø> (ø) Carriedforward from 8ba3661
dcm 61.79% <ø> (ø) Carriedforward from 8ba3661
extensions 61.53% <ø> (ø) Carriedforward from 8ba3661
global-floating-action-button 71.18% <ø> (ø) Carriedforward from 8ba3661
global-header 59.71% <ø> (ø) Carriedforward from 8ba3661
homepage 49.92% <ø> (ø) Carriedforward from 8ba3661
install-dynamic-plugins 56.77% <ø> (ø) Carriedforward from 8ba3661
konflux 91.49% <ø> (ø) Carriedforward from 8ba3661
lightspeed 68.48% <68.18%> (-0.10%) ⬇️
mcp-integrations 85.46% <ø> (ø) Carriedforward from 8ba3661
orchestrator 38.02% <ø> (ø) Carriedforward from 8ba3661
quickstart 63.76% <ø> (ø) Carriedforward from 8ba3661
sandbox 79.56% <ø> (ø) Carriedforward from 8ba3661
scorecard 83.96% <ø> (ø) Carriedforward from 8ba3661
theme 61.26% <ø> (ø) Carriedforward from 8ba3661
translations 7.25% <ø> (ø) Carriedforward from 8ba3661
x2a 57.25% <ø> (ø) Carriedforward from 8ba3661

*This pull request uses carry forward flags. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8ba3661...ca1bfba. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@christoph-jerolimov

Copy link
Copy Markdown
Member

/fs-fix regenerate api reports

@fullsend-ai-coder

fullsend-ai-coder Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Finished Fix · ✅ Success · Started 8:50 PM UTC · Completed 9:04 PM UTC
Commit: 8ba3661 · View workflow run →

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>
@fullsend-ai-coder fullsend-ai-coder Bot force-pushed the fix/sonarqube-lightspeed-issues-3527 branch from 835c106 to 8e4dd2a Compare June 23, 2026 20:50
Re-run `yarn build:api-reports` to update report-alpha.api.md with
correct property ordering from API Extractor.

Addresses human instruction on #3545

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@fullsend-ai-coder

Copy link
Copy Markdown
Contributor Author

🔧 Fix agent — iteration 1 (human-triggered)

Regenerated API reports per human instruction. The report-alpha.api.md file was updated with correct property ordering produced by API Extractor.

Fixed (1):

  1. regenerate API reports: Ran yarn build:api-reports in the lightspeed workspace to regenerate report-alpha.api.md with correct property ordering from API Extractor

Tests: passed

Updated by fullsend fix agent

@jrichter1 jrichter1 closed this Jun 25, 2026
@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

2 participants