Skip to content

Latest commit

 

History

History
140 lines (88 loc) · 5.66 KB

File metadata and controls

140 lines (88 loc) · 5.66 KB

Rules Reference

async-component-flags

Checks whether a Component is configured for asynchronous loading via the sap.ui.core.IAsyncContentCreation interface in the Component metadata or via async flags in the manifest.json.

Related information

csp-unsafe-inline-script

Checks whether inline scripts are used in HTML files in accordance with Content Security Policy (CSP) best practices.

Related information

no-ambiguous-event-handler

Checks whether event handlers in XML views/fragments are prefixed by a dot '.' (i.e. represent a controller method) or refer to a local name (via core:require import).

Related information

no-deprecated-api

Checks whether deprecated APIs, features or parameters are used in the project.

Related information

no-deprecated-component

Checks for dependencies to deprecated components in manifest.json.

Related information

no-deprecated-control-renderer-declaration

Checks whether the renderer of a control is declared correctly.

no-deprecated-library

Checks for dependencies to deprecated libraries in manifest.json and ui5.yaml.

Related information

no-deprecated-theme

Checks for usage of deprecated themes in the code and HTML files.

Related information

no-globals

Checks for the usage of global variables in the code.

Related information

no-implicit-globals

Checks whether:

  • modules are accessed via the global library namespace that is exposed by the library module of a UI5 library
  • odata globals are used implicitly in bindings without an explicit import of the corresponding modules

Related information

no-pseudo-modules

Checks for dependencies to pseudo modules in the code.

Related information

parsing-error

Syntax/parsing errors that appear during the linting process are reported with this rule.

autofix-error

An expected autofix could not be applied. This is likely a UI5 linter internal issue. Please report this using the bug report template: github.com/UI5/linter/issues/

prefer-test-starter

Checks whether test-related files are using the Test Starter concept.

Related information

ui5-class-declaration

Checks whether the declaration of UI5 classes is correct. This rule only applies to TypeScript code where built-in ECMAScript classes are used instead of an .extend() call.

unsupported-api-usage

Checks whether the UI5 API is used correctly, for example, whether a formatter in a JavaScript/TypeScript binding declaration is of type function.

no-outdated-manifest-version

Legacy-free UI5 requires Manifest Version 2. This test checks the _version property in manifest.json.

no-removed-manifest-property

Manifest Version 2 lacks several properties of earlier versions, which do not match anymore to the new schema. They must be omitted.

no-legacy-ui5-version-in-manifest

Checks the sap.ui5/dependencies/minUI5Version property in manifest.json for legacy UI5 versions, which must not be used.

This rule ensures that projects specify a minimum UI5 version that supports modern development practices. As of OpenUI5/SAPUI5 1.136, the new Manifest Version 2 is supported, which provides enhanced capabilities for UI5 applications.

Related information