Skip to content

fix(#3488): resolve SonarQube MINOR code quality issues in orchestrator#3497

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/3488-fix-sonarqube-minor-issues
Open

fix(#3488): resolve SonarQube MINOR code quality issues in orchestrator#3497
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/3488-fix-sonarqube-minor-issues

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Address 5 SonarQube MINOR violations:

  • S7722: Replace empty error string in ErrorUtils.test.ts with
    a meaningful non-empty message ('empty')
  • S4325: Remove unnecessary non-null assertion on
    condition.notContains in evaluateHiddenCondition.ts by
    extracting to a local variable before the closure
  • S6594: Use RegExp.exec() instead of String.match() in
    useFetch.ts and ErrorUtils.ts for better performance
  • S7726: Convert anonymous arrow function export to a named
    function in eslint.frontend-shared.cjs

Closes #3488

Post-script verification

  • Branch is not main/master (agent/3488-fix-sonarqube-minor-issues)
  • Secret scan passed (gitleaks — 82225badcb9ccb186a84302546ab0eb48ebc4c7b..HEAD)
  • Pre-commit hooks passed (authoritative run on runner)
  • Tests ran inside sandbox

Address 5 SonarQube MINOR violations:

- S7722: Replace empty error string in ErrorUtils.test.ts with
  a meaningful non-empty message ('empty')
- S4325: Remove unnecessary non-null assertion on
  condition.notContains in evaluateHiddenCondition.ts by
  extracting to a local variable before the closure
- S6594: Use RegExp.exec() instead of String.match() in
  useFetch.ts and ErrorUtils.ts for better performance
- S7726: Convert anonymous arrow function export to a named
  function in eslint.frontend-shared.cjs

Closes #3488
@github-actions

Copy link
Copy Markdown
Contributor

This pull request adds a new top-level directory under workspaces/. Please follow Submitting a Pull Request for a New Workspace in CONTRIBUTING.md.

@rhdh-gh-app

rhdh-gh-app Bot commented Jun 19, 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-orchestrator-form-react
  • @red-hat-developer-hub/backstage-plugin-orchestrator-form-widgets
  • @red-hat-developer-hub/backstage-plugin-orchestrator

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-orchestrator-form-react workspaces/orchestrator/plugins/orchestrator-form-react none v2.9.0
@red-hat-developer-hub/backstage-plugin-orchestrator-form-widgets workspaces/orchestrator/plugins/orchestrator-form-widgets none v1.11.0
@red-hat-developer-hub/backstage-plugin-orchestrator workspaces/orchestrator/plugins/orchestrator none v5.8.0

@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 53.61%. Comparing base (82225ba) to head (af00fa4).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3497   +/-   ##
=======================================
  Coverage   53.61%   53.61%           
=======================================
  Files        2254     2254           
  Lines       85821    85822    +1     
  Branches    24149    24152    +3     
=======================================
+ Hits        46014    46015    +1     
  Misses      39632    39632           
  Partials      175      175           
Flag Coverage Δ *Carryforward flag
adoption-insights 83.70% <ø> (ø) Carriedforward from 82225ba
ai-integrations 67.95% <ø> (ø) Carriedforward from 82225ba
app-defaults 69.79% <ø> (ø) Carriedforward from 82225ba
augment 46.39% <ø> (ø) Carriedforward from 82225ba
boost 100.00% <ø> (ø) Carriedforward from 82225ba
bulk-import 72.46% <ø> (ø) Carriedforward from 82225ba
cost-management 14.10% <ø> (ø) Carriedforward from 82225ba
dcm 61.79% <ø> (ø) Carriedforward from 82225ba
extensions 61.53% <ø> (ø) Carriedforward from 82225ba
global-floating-action-button 71.18% <ø> (ø) Carriedforward from 82225ba
global-header 59.71% <ø> (ø) Carriedforward from 82225ba
homepage 49.92% <ø> (ø) Carriedforward from 82225ba
install-dynamic-plugins 56.23% <ø> (ø) Carriedforward from 82225ba
konflux 91.49% <ø> (ø) Carriedforward from 82225ba
lightspeed 68.57% <ø> (ø) Carriedforward from 82225ba
mcp-integrations 85.46% <ø> (ø) Carriedforward from 82225ba
orchestrator 37.76% <75.00%> (+0.01%) ⬆️
quickstart 63.76% <ø> (ø) Carriedforward from 82225ba
sandbox 79.56% <ø> (ø) Carriedforward from 82225ba
scorecard 83.96% <ø> (ø) Carriedforward from 82225ba
theme 61.26% <ø> (ø) Carriedforward from 82225ba
translations 6.55% <ø> (ø) Carriedforward from 82225ba
x2a 78.68% <ø> (ø) Carriedforward from 82225ba

*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 82225ba...af00fa4. 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.

@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 MINOR issues in the orchestrator workspace

0 participants