Skip to content

Rule catalog ​

This page shows docs/ui5-blueprint-audit-rules.md from the repository. It is the source of truth for the rules. Rule changes are made there first, then in code.

Rule Catalog: UI5 BlueprintAudit ​

As of: 2026-10-16 (draft)

This catalog describes all rules of the company linter for UI5 projects. Every rule has a fixed ID, a default status, and optional parameters. The defaults can be overridden per project in the configuration file (ui5-blueprint-audit.yaml). Rules can be turned on or off there.

Conventions ​

  • Severity: off, warn, error
  • Project types: freestyle (FS), fiori-elements (FE), library (LIB). A rule is only applied to projects of the listed types.
  • Project type specification: The user specifies the type when starting the tool; it is not detected automatically. Example: ui5-blueprint-audit --type fs, --type fe, or --type lib. Alternatively, it can be set as projectType in the configuration file. The command-line value takes precedence. If the type is missing, the tool aborts with an error message.
  • Namespacing: Rules from the core plugin have no prefix. Rules from plugins have the prefix <plugin>/<rule>.
  • Version values are always configured as a string ("1.152") and compared semantically. This also holds for upper bounds: "1.152.0" does not exceed a max of "1.152".
  • Invalid configuration: A severity other than off, warn, error, a rule ID that no loaded plugin provides, or a languages/plugins/rules entry of the wrong shape is a project error (exit code 1). It is never ignored silently.
  • Unreadable project files: If manifest.json, ui5.yaml, a ui5-*.yaml, or package.json exists but is not valid JSON/YAML, the project is reported as an error and no rules run for it. A missing file is not an error by itself; the rules decide.
  • Crashing rules: If a rule throws, it is reported as an error finding of that rule, regardless of its configured severity. The other rules and projects still run.
  • Sources checked: manifest.json, ui5.yaml, ui5-*.yaml, index.html, the file tree under webapp, XML views and fragments.

Overview ​

#IDCategoryDefaultProject types
1typescriptTechnologyerrorFS, LIB
2xml-viewsTechnologyerrorFS, FE, LIB (only if it contains UI5 controls)
3controller-matches-viewStructureerrorFS
4folder-structureStructureerrorFS
5no-custom-controlsTechnologyerrorFS, FE
6odata-serviceDataerrorFS, FE
7odata-metadata-localDataerrorFS, FE
8odata-mockdataDataoffFS, FE
9non-odata-jsonDataerrorFS
10no-custom-cssTechnologyerrorFS, FE
11themeConfigurationerrorFS
12cache-busterConfigurationerrorFS
13namespaceNamespaceerrorFS, FE, LIB
14consistent-namespaceNamespaceerrorFS, FE, LIB
15fragments-folderStructureerrorFS
16dialogs-folderStructureerrorFS
17i18n-usedi18nerrorFS, FE, LIB
18i18n-languagesi18nerrorFS, FE, LIB
19i18n-fallbacki18nwarnFS, FE
20device-typesConfigurationerrorFS, FE
21flex-enabledConfigurationwarnFS, FE
22content-densitiesConfigurationerrorFS, FE
23mockserver-configDatawarnFS, FE
24frameworkConfigurationerrorFS, FE, LIB
25ui5-versionConfigurationerrorFS, FE, LIB
26flp-configConfigurationerrorFS, FE
27deploy-configConfigurationerrorFS, FE
28app-title-descriptionConfigurationerrorFS, FE
29qunit-opa-testsTestswarnFS, FE, LIB
30wdi5-testsTestswarnFS
31playwright-testsTestswarnFS, FE
32app-iconsConfigurationwarnFS, FE
33app-versionConfigurationwarnFS, FE, LIB

Technology ​

1. typescript ​

Description: The project uses TypeScript.

Check:

  • tsconfig.json exists in the project root.
  • Under webapp, there are no .js files for controllers, components, or modules, only .ts files.

Parameters:

NameDefaultDescription
allowJs[]Glob patterns for .js files that are allowed (e.g. polyfills)

2. xml-views ​

Description: Views are implemented as XML views.

Check: There are no files with the extensions .view.js, .view.json, .view.html, or .view.ts, and no use of sap.ui.jsview, sap.ui.htmlview, or sap.ui.jsonview.

Project types: Applies to freestyle apps, Fiori Elements apps, and libraries. For libraries, the rule is only applied if the library contains UI5 controls (classes that extend Control); otherwise it is skipped.

Parameters: none

5. no-custom-controls ​

Description: The project does not define its own UI5 controls. On by default, can be turned off per project.

Check: No class in the project is a custom control (extends … or ….extend(...)). Requires AST analysis. A class counts as a custom control if its base class is one of:

  • sap/ui/core/Control or sap/ui/core/Element.
  • A control or element from a UI5 control library, e.g. sap/m/Button, sap/ui/table/Table, sap/f/Card (resolved via import, the sap.ui.define dependency list, or global access such as sap.m.Button.extend).
  • Another custom control of the project, at any depth (BaseTile extends GenericTile, MyTile extends BaseTile).

Controllers, components, models, routers, and other non-control classes are not affected.

Parameters:

NameDefaultDescription
allow[]Names of classes that are allowed

10. no-custom-css ​

Description: The project does not contain its own CSS.

Check:

  • There are no .css files under webapp.
  • sap.ui5/resources/css in the manifest is empty or missing.
  • Inline styles (style= in XML) are not checked and remain allowed.

Parameters:

NameDefaultDescription
allow[]Glob patterns for allowed CSS files

Structure ​

3. controller-matches-view ​

Description: Every XML view with a controller references a controller whose name matches the view's file name, and that controller exists as a file.

Check: For every view with controllerName:

  • The view's own name is authoritative (not the controller's): Home.view.xml must reference a controller ....Home, e.g. not ....App — even if App.controller.ts happens to exist.
  • If the name matches, the corresponding controller file (Home.controller.ts/.js) must actually exist.
  • Views without controllerName are not flagged.

Parameters:

NameDefaultDescription
caseSensitivefalseWhether to respect case when comparing

4. folder-structure ​

Description: The minimum folder structure is present, and XML views and controllers live in the designated folders.

Check:

  • webapp/controller, webapp/view, and webapp/model exist.
  • *.view.xml files live under webapp/view, *.controller.ts files under webapp/controller.

Parameters:

NameDefaultDescription
folderscontroller, view, modelRequired folders under webapp
viewPathwebapp/viewLocation of views
controllerPathwebapp/controllerLocation of controllers

15. fragments-folder ​

Description: XML fragments that are not dialogs live in a fragments folder.

Check: Every *.fragment.xml whose root element is not a dialog (see dialogs-folder, including its handling of FragmentDefinition) lives under basePath.

Parameters:

NameDefaultDescription
basePathwebapp/view/fragmentsFolder for fragments

16. dialogs-folder ​

Description: Fragments with a dialog as the root element live in a dialogs folder, separate from regular fragments.

Check: Every *.fragment.xml whose root element is listed in dialogRoots lives under basePath. If the root element is a FragmentDefinition that wraps exactly one control, that control counts as the root element (<core:FragmentDefinition><Dialog>… is a dialog). A FragmentDefinition with several controls is not a dialog.

Parameters:

NameDefaultDescription
dialogRootsDialog, PopoverRoot elements that count as a dialog
basePathwebapp/view/dialogsFolder for dialogs

Data ​

Special case, FLP plugins: If sap.app/type in the manifest is "component" (instead of "application"), all four rules in this section (odata-service, odata-metadata-local, odata-mockdata, non-odata-json) skip themselves automatically. A Fiori Launchpad plugin only hooks into the shell and, by design, has no backend service of its own — unlike project-type detection (fs/fe/lib, see the "Project type" section in CLAUDE.md), this is not a case of auto-detecting the project type, but an additional, purely manifest-based condition within the fs/fe type.

6. odata-service ​

Description: Number of OData services used. Also covers the requirement on the number of multiple services.

Check: All dataSources in sap.app with type: OData that are assigned to a model in sap.ui5/models are counted. The count must be between min and max.

Parameters:

NameDefaultDescription
min1Minimum count
maxno limitMaximum count

7. odata-metadata-local ​

Description: The OData metadata document is located locally in the localService directory.

Check: Every OData dataSource has a settings.localUri, and the metadata.xml it points to exists.

Parameters:

NameDefaultDescription
basePathwebapp/localServiceLocation of the local service files

8. odata-mockdata ​

Description: Mock data for the OData service is present. Off by default, can be turned on per project.

Check: Depending on mode:

  • any: at least one .json file exists in dataPath.
  • one-entity: a <EntitySet>.json exists for at least one EntitySet from metadata.xml. Other .json files in dataPath do not count.
  • all-entities: a <EntitySet>.json exists for every EntitySet.

Parameters:

NameDefaultDescription
modeanyany, one-entity, or all-entities
dataPathwebapp/localService/dataLocation of the mock data

9. non-odata-json ​

Description: Other services that are not OData are implemented as a JSONModel.

Check: Every dataSource in sap.app that is not of type OData has type: JSON. The model in sap.ui5/models is a JSONModel. The number of OData services is checked by odata-service.

Parameters: none

23. mockserver-config ​

Description: A configuration for running the app with MockServer is present and uses the best-practice naming.

Check: The file fileName exists in the project root.

Parameters:

NameDefaultDescription
fileNameui5-mockserver.yamlExpected file name

Configuration ​

11. theme ​

Description: The theme is specified and configured consistently.

Check:

  • The theme in index.html (data-sap-ui-theme) is in the themes list.
  • The matching theme library (themelib_<theme>) is listed in ui5.yaml (framework.libraries). If ui5.yaml lists several theme libraries, the theme from index.html must be one of them.
  • The theme library may only be missing from ui5.yaml if UI5 is loaded from a CDN or an SAP server. That is the case if the bootstrap script in index.html has an absolute URL (e.g. https://ui5.sap.com/...), or a server middleware in ui5.yaml has a configuration.ui5 entry (e.g. fiori-tools-proxy). With a local UI5 (UI5 Tooling framework dependencies, also used by the build), the theme library must be listed.
  • If one of the two files is missing (e.g. for Launchpad apps), it is skipped. If the theme is found in neither, there is an error.

Parameters:

NameDefaultDescription
themessap_horizonAllowed themes (list)

12. cache-buster ​

Description: The app uses the cache buster.

Check: Either the cache-buster task or the corresponding middleware is configured in ui5.yaml, or index.html includes UI5 via the versioned cache-buster URL.

Parameters:

NameDefaultDescription
sourcesui5.yaml, index.htmlWhere to look

20. device-types ​

Description: The supported device types are specified.

Check: sap.ui/deviceTypes in the manifest matches the expected values.

Parameters:

NameDefaultDescription
desktoptrueexpected value
tablettrueexpected value
phonetrueexpected value

21. flex-enabled ​

Description: flexEnabled has the specified value.

Check: sap.ui5/flexEnabled in the manifest matches value.

Parameters:

NameDefaultDescription
valuetrueexpected value

22. content-densities ​

Description: The content densities have the specified values.

Check: sap.ui5/contentDensities in the manifest matches the expected values.

Parameters:

NameDefaultDescription
compacttrueexpected value
cozytrueexpected value

24. framework ​

Description: The framework used is specified.

Check: framework.name in ui5.yaml matches name.

Parameters:

NameDefaultDescription
nameSAPUI5SAPUI5 or OpenUI5

25. ui5-version ​

Description: The UI5 version meets the requirement.

Check:

  • sap.ui5/dependencies/minUI5Version in the manifest and framework.version in ui5.yaml are at least min.
  • Both values are consistent with each other.
  • Versions are compared semantically, not as strings.

Parameters:

NameDefaultDescription
min"1.152"Minimum version (to be maintained regularly)
maxno limitMaximum version

26. flp-config ​

Description: The app has a Fiori Launchpad configuration for at least one tile.

Check: sap.app/crossNavigation/inbounds in the manifest has at least one entry with semanticObject and action.

Parameters: none

27. deploy-config ​

Description: A deployment configuration with a configured backend is present.

Check:

  • The file fileName exists in the project root.
  • It has a deploy task configured (e.g. deploy-to-abap) whose configuration.target.destination or configuration.target.url is set and not empty.

Parameters:

NameDefaultDescription
fileNameui5-deploy.yamlExpected file name

28. app-title-description ​

Description: The app has a title and a description with actual text.

Check:

  • sap.app/title and sap.app/description are set in the manifest and reference i18n (e.g. {{appTitle}}).
  • The referenced key exists in the i18n base file (i18n.properties) and has a non-empty value there.

Parameters: none

32. app-icons ​

Description: The app has its own icons instead of the generator's placeholders.

Check: The fields listed in requiredIcons under sap.ui/icons in the manifest are set (not empty).

Parameters:

NameDefaultDescription
requiredIconsicon, favIconFields to check under sap.ui/icons

33. app-version ​

Description: The app version has been maintained and is not the generator's default.

Check: sap.app/applicationVersion/version in the manifest is not equal to defaultValue.

Parameters:

NameDefaultDescription
defaultValue0.0.1Value that counts as "not maintained"

Namespace ​

13. namespace ​

Description: The app uses the specified namespace.

Check: sap.app/id in the manifest lies in the namespace value: it equals value or starts with value followed by a dot. A plain string prefix is not enough (com.firmaX.app does not match com.firma).

Parameters:

NameDefaultDescription
valuede.itsfullofstarsExpected namespace

14. consistent-namespace ​

Description: All artifacts of the app use the same namespace.

Check: sap.app/id, controllerName, fragmentName, viewName, and class IDs in views, fragments, and code all lie in the same namespace as sap.app/id (matched on a segment boundary, as in namespace).

Parameters: none


i18n ​

17. i18n-used ​

Description: i18n is used.

Check:

  • An i18n model is configured in the manifest.
  • The base file (i18n.properties) exists.
  • Hardcoded texts in views are not checked.

Parameters:

NameDefaultDescription
basePathwebapp/i18nLocation of the i18n files

18. i18n-languages ​

Description: The app supports the languages specified by the company.

Check: For every language in languages:

  • It is listed in supportedLocales — checked in both places that UI5 does not synchronize automatically (see i18n-fallback): sap.app/i18n/supportedLocales and sap.ui5/models/i18n/settings/supportedLocales. If it is missing in either place, that produces its own error.
  • A corresponding file i18n_<xx>.properties exists. For the fallback language (sap.ui5/models/i18n/settings/fallbackLocale, which governs loading the file at runtime), the base file i18n.properties is enough.

If either of these is missing (e.g. for pt), there is an error.

Parameters:

NameDefaultDescription
languagesde, enRequired languages
strictfalseIf true, additional languages beyond those required are an error

19. i18n-fallback ​

Description: A default language is specified.

Check: fallbackLocale matches value and is included in supportedLocales — checked in two separate places in the manifest that UI5 does not synchronize automatically: sap.app/i18n (descriptor level, used among other things for resolving sap.app/title/sap.app/description by tools without a running UI5 runtime) and sap.ui5/models/i18n/settings (the runtime resource model for {i18n>...} bindings). Both must explicitly set fallbackLocale; if sap.app/i18n is given only as a string (the old short form, bundleUrl only), that counts as missing.

Parameters:

NameDefaultDescription
valueenExpected fallback language

Tests ​

29. qunit-opa-tests ​

Description: The project has unit or integration tests with QUnit or OPA5.

Check: At least one test file exists under basePath: a QUnit test suite (*.qunit.js, *.qunit.ts, or *.qunit.html) or an OPA5 journey (a file that imports/requires sap/ui/test/Opa5). If both are missing, there is a warning.

Parameters:

NameDefaultDescription
basePathwebapp/testLocation of the tests

30. wdi5-tests ​

Description: The project uses wdio-ui5 (wdi5) for end-to-end tests.

Check: A wdio configuration file (configFile) exists in the project root, and package.json has wdio-ui5-service as a dependency.

Parameters:

NameDefaultDescription
configFilewdio.conf.jsExpected file name (.ts is also accepted)

31. playwright-tests ​

Description: The project uses Playwright for end-to-end tests.

Check: A Playwright configuration file (configFile) exists in the project root, and package.json has @playwright/test as a dependency.

Parameters:

NameDefaultDescription
configFileplaywright.config.tsExpected file name (.js is also accepted)

Special cases for libraries ​

Libraries have no webapp/manifest.json — the source code lives under src/<namespace-as-path>/, tests under test/ (not webapp/test/), and there is no app manifest. The following rules therefore read from different sources than FS/FE when projectType: lib, but check the same thing in substance:

RuleFS/FE sourceLIB source
typescript.js files under webapp/ (except webapp/test/).js files under src/
xml-viewssource files under webapp/source files under src/
namespacesap.app/id in manifest.jsonmetadata.name in ui5.yaml
consistent-namespacesap.app/id as the base namespacemetadata.name in ui5.yaml as the base namespace
i18n-usedi18n model in manifest.json + webapp/i18n/i18n.propertiessrc/<namespace>/messagebundle.properties (no model to check, since there is no manifest)
i18n-languagessupportedLocales in manifest.json + webapp/i18n/i18n_<xx>.propertiessrc/<namespace>/messagebundle_<xx>.properties for every required language (no supportedLocales, so no fallback free pass for the base file either)
framework / ui5-versionui5.yaml plus sap.ui5/dependencies/minUI5Version in manifest.json (including the consistency check)ui5.yaml only — manifest.json doesn't exist, so the consistency check doesn't apply
app-versionsap.app/applicationVersion/version in manifest.json, default "0.0.1"version in package.json, default "1.0.0"
qunit-opa-teststests under webapp/test/tests under test/

Two rules that listed LIB in earlier catalog versions now apply only to FS/FE, because there is no corresponding configuration option for libraries:

  • i18n-fallback: libraries do not declare a fallbackLocale — the base file (messagebundle.properties) is always the fallback by UI5 convention; there is nothing that could be misconfigured.
  • app-icons: sap.ui/icons is an app/Launchpad-tile concept from manifest.json that doesn't exist for libraries.

Open issues ​

None currently. New questions that come up during implementation are added here.

Released under the MIT License.