Configuration
The config file is ui5-blueprint-audit.yaml in the project root. It only overrides the defaults, so you can delete every line you do not need. Comments are welcome.
Create a full reference file with all 33 rules and their defaults (see the complete file):
npx @abap/ui5-blueprint-audit --initExample
# ui5-blueprint-audit.yaml
projectType: fs
languages: [de, en] # Default if not set: [de, en]
plugins:
- ./guardrails-rules/local.mjs # local file
- "@abap/ui5-blueprint-audit-rules-fiori" # npm package
rules:
no-custom-controls: error
namespace:
- error
- value: com.firma
ui5-version:
- error
- min: "1.152"
odata-mockdata: offTop-level keys
| Key | Description |
|---|---|
projectType | fs, fe, or lib. Required, unless you pass --type. |
languages | Report languages. Default [de, en]. Available: de, en, pt-BR, plus any language added by a plugin. |
plugins | Plugins to load: local files or npm packages. See Bring your own rules. |
rules | Rule settings. |
Rule settings
Every rule can be turned on or off, and many take parameters. There are two forms.
Severity only:
rules:
flex-enabled: warn # off | warn | errorSeverity with parameters: a list with the severity first, then the parameters.
rules:
ui5-version:
- error
- min: "1.152"| Severity | Effect |
|---|---|
off | The rule does not run. |
warn | Findings appear in the reports. They do not change the exit code. |
error | Findings appear in the reports, and the exit code is 1. |
Typos are errors
A severity other than off, warn, or error, a rule ID that no loaded plugin provides, or a languages, plugins, or rules entry of the wrong shape fails the project with exit code 1. A misspelled setting is never ignored silently.
Parameters for each rule are in the rules table and the full catalog.
Versions are strings
Always write version numbers as strings: "1.152". They are compared as versions, not as numbers or text.
Plugin paths
- A path that starts with
./,../, or/is a local file, resolved relative to the config file. - Anything else is an npm package, resolved from the project folder, not from the folder of the audit tool.
- Local plugins must be
.mjs,.js, or.cjsfiles.
Rule IDs from plugins
Rules from the core plugin have no prefix: namespace. Rules from a plugin have the prefix <plugin>/<rule>, for example acme/readme-present.