Skip to content

Detect and fix usage of sap.ui.core namespace in XMLView definition #1024

Description

@flovogt

I define a sap/ui/core/mvc/XMLView but instead of using the recommended sap.ui.core.mvc namespace to define the View, I use the old sap.ui.core namespace.

<core:View
  xmlns:mvc="sap.ui.core.mvc"
  xmlns:core="sap.ui.core"
  xmlns="sap.m"
  controllerName="ui5app.controller.Home">
    <Text text="Hello"/>
<core:View>

Detection Goal

This scenario is detected and a finding is reported to use the sap.ui.core.mvc namespace.

Autofix Goal

The view definition is adjusted to consume the sap.ui.core.mvc namespace. In case the sap.ui.core is no longer used after the migration, it should be removed.

<mvc:View
  xmlns:mvc="sap.ui.core.mvc"
  xmlns:core="sap.ui.core"
  xmlns="sap.m"
  controllerName="ui5app.controller.Home">
    <Text text="Hello"/>
<mvc:View>

Activity

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

Metadata

Metadata

Assignees

Labels

autofixAn issue related to the autofix capabilitiesdetectionAn issue related to detection capabilities

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions