Skip to content

fix sonar issues#4507

Open
heimwege wants to merge 6 commits intomainfrom
fix/sonar-issues
Open

fix sonar issues#4507
heimwege wants to merge 6 commits intomainfrom
fix/sonar-issues

Conversation

@heimwege
Copy link
Copy Markdown
Contributor

@heimwege heimwege commented Apr 1, 2026

Fix high and medium severity SONAR issues (https://sonarcloud.io/project/issues?impactSeverities=HIGH%2CMEDIUM&issueStatuses=OPEN%2CCONFIRMED&id=SAP_open-ux-tools)

Skipped Issues:

UI component issues (need visual/CSS work):

  • ThemeSelectorCallout.tsx:53 - <div role="button"> → <button> requires CSS button resets (border, background, padding) that .theme-child doesn't currently have.
  • UITable.tsx:274,289 - role="gridcell" divs live inside FluentUI's DetailsList which is a div-based table, so replacing with would produce invalid HTML.
  • UITable.tsx:950 - <span onClick> → <button> would break 12 tests that explicitly query .ms-DetailsRow-cell span.
  • UIFlexibleTable.tsx:254 - the root <div onBlur> needs the onBlur handler for focus management and has no suitable native element replacement.
  • UIDatePicker.tsx:81 - the wrapper <div onKeyDown onClick> forwards parent-provided handlers and restructuring would change the component's public API.
  • UIToggleGroup.tsx:129 - replacing <div role="group"> with <fieldset> requires converting UILabel to a , which is a non-trivial refactor.
  • FileChange.tsx:46 - <a href="#"> → <button> would visually break the link because .textLink only sets color and doesn't reset button defaults.

Ignored tests (S1607):

  • fiori-service.test.ts:113 - test.skip is used conditionally for models in SKIP_TARGETS; removing it requires investigating why those models are excluded.
  • fiori-service.test.ts:157 - describe.skip is part of a test runner helper; it's intentional infrastructure for skipping entire test cases.
  • csv.test.ts:28 - test.skip inside a dynamic loop with an empty skip[] array; the code path is dead but it's a deliberate escape hatch for the test harness.
  • properties.test.ts:29 - same pattern as csv.test.ts:28.
  • parser.test.ts:47 - same pattern as csv.test.ts:28.
  • debug-update-vocabularies.test.ts:8 - it.skip with an explicit comment "debugging only"; it intentionally never runs in CI.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 1, 2026

🦋 Changeset detected

Latest commit: 7b40c49

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 68 packages
Name Type
@sap-ux/cds-odata-annotation-converter Patch
@sap-ux/fiori-annotation-api Patch
@sap-ux-private/preview-middleware-client Patch
@sap-ux/system-access Patch
@sap-ux/ui-components Patch
@sap-ux/xml-odata-annotation-converter Patch
@sap-ux/control-property-editor Patch
@sap-ux/fe-fpm-writer Patch
@sap-ux/text-document-utils Patch
@sap-ux/odata-annotation-core Patch
@sap-ux/backend-proxy-middleware Patch
@sap-ux/telemetry Patch
@sap-ux/axios-extension Patch
@sap-ux/annotation-generator Patch
@sap-ux/eslint-plugin-fiori-tools Patch
@sap-ux/abap-deploy-config-inquirer Patch
@sap-ux/abap-deploy-config-sub-generator Patch
@sap-ux/abap-deploy-config-writer Patch
@sap-ux/adp-flp-config-sub-generator Patch
@sap-ux/adp-tooling Patch
@sap-ux/create Patch
@sap-ux/deploy-tooling Patch
@sap-ux/generator-adp Patch
@sap-ux/preview-middleware Patch
@sap-ux/repo-app-import-sub-generator Patch
@sap-ux/ui-service-inquirer Patch
@sap-ux/ui-service-sub-generator Patch
@sap-ux/generator-simple-fe Patch
@sap-ux/ui-prompting Patch
@sap-ux-private/ui-prompting-examples Patch
@sap-ux/fiori-elements-writer Patch
@sap-ux/fe-fpm-cli Patch
@sap-ux/cds-annotation-parser Patch
@sap-ux/i18n Patch
@sap-ux/odata-annotation-core-types Patch
@sap-ux/fiori-app-sub-generator Patch
@sap-ux/fiori-generator-shared Patch
@sap-ux/inquirer-common Patch
@sap-ux/odata-service-inquirer Patch
@sap-ux/ui5-library-reference-sub-generator Patch
@sap-ux/app-config-writer Patch
@sap-ux/deploy-config-generator-shared Patch
@sap-ux/environment-check Patch
@sap-ux/flp-config-inquirer Patch
@sap-ux/odata-service-writer Patch
@sap-ux/odata-cli Patch
@sap-ux/fiori-freestyle-writer Patch
@sap-ux/ui5-library-writer Patch
@sap-ux/deploy-config-sub-generator Patch
@sap-ux/backend-proxy-middleware-cf Patch
@sap-ux/flp-config-sub-generator Patch
@sap-ux/project-access Patch
@sap-ux/odata-vocabularies Patch
@sap-ux/cap-config-writer Patch
@sap-ux/cf-deploy-config-sub-generator Patch
@sap-ux/ui5-library-sub-generator Patch
@sap-ux/cf-deploy-config-inquirer Patch
@sap-ux/ui5-application-inquirer Patch
@sap-ux/ui5-library-inquirer Patch
@sap-ux/ui5-library-reference-inquirer Patch
@sap-ux/cf-deploy-config-writer Patch
@sap-ux/launch-config Patch
@sap-ux/mockserver-config-writer Patch
@sap-ux/project-input-validator Patch
@sap-ux/project-integrity Patch
@sap-ux/ui5-library-reference-writer Patch
@sap-ux/ui5-test-writer Patch
@sap-ux-private/adaptation-editor-tests Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@heimwege heimwege marked this pull request as ready for review April 1, 2026 14:43
@heimwege heimwege requested review from a team as code owners April 1, 2026 14:43
@heimwege heimwege requested review from a team as code owners April 1, 2026 21:56
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 1, 2026

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant