UI5 / UI5/linter

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

Open
#1,024 1 comment 0 reactions 1 assignee View on GitHub

@flovogt is already working on this.

Since Aug 10, 2026.

autofix detection
Dominant language
TypeScript
Stars
79
Forks
13
Avg merge
19h 34m
Merged PRs (30d)
9

Description

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>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.