Skip to content

Rules ​

BlueprintAudit ships 33 rules. The table below is the overview from the rule catalog, which is the source of truth. It lists each rule ID, its category, its default severity, and the project types it runs for.

  • FS: Freestyle app (--type fs)
  • FE: Fiori Elements app (--type fe)
  • LIB: Library (--type lib)
#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

How to read the table ​

  • Default is the severity that applies without any config. off means the rule does not run unless you turn it on.
  • A rule runs only for the project types in the last column.
  • Change the severity or the parameters of a rule in ui5-blueprint-audit.yaml. See Configuration.
  • The full catalog explains each check and lists the parameters with their defaults.

Example: change one rule ​

yaml
rules:
  namespace:
    - error
    - value: com.firma
  odata-mockdata:
    - warn
    - mode: one-entity

Rules in sample projects ​

The repository has sample projects that show which rule fires where. See sample-prj/testcases.md.

Released under the MIT License.