@abap/ui5-blueprint-audit
The command-line tool. It reads the config, loads the plugins, reads the project, runs the rules, and writes the reports.
Install and run
bash
npm install --save-dev @abap/ui5-blueprint-audit
npx @abap/ui5-blueprint-audit --type fs --lang enThe package has one binary, ui5-blueprint-audit. All options are in the CLI reference.
What it contains
| Part | Source | What it does |
|---|---|---|
| CLI entry point | src/cli.ts | Parses the arguments, runs every project, writes the reports, sets the exit code. |
| Config loader | src/config/load-config.ts | Reads ui5-blueprint-audit.yaml. Resolves the project type and the languages. |
| Rule config merge | src/config/merge-rule-config.ts | Combines rule defaults with the overrides from the config. |
| Plugin loader | src/plugins/load-plugins.ts | Loads the core plugin and the plugins from the config. Builds the rule map. |
| Project context | src/context/load-project-context.ts | Reads the project files once. |
| Engine | src/engine/run-project.ts | Runs one project from config to results. |
| Reports | src/report/ | Markdown, JUnit XML, HTML, and the console text summary. |
| CLI texts | src/locales/ | Report titles, column headers, and error messages in de, en, and pt-BR. |
The run flow shows how these parts work together.
Use it as a library
The package also exports its building blocks, so you can embed the audit in another tool:
ts
import { runProject, renderMarkdownReport } from "@abap/ui5-blueprint-audit";Exports: loadConfig, ConfigError, mergeRuleConfig, loadProjectContext, loadPlugins, buildRuleMap, PluginLoadError, runProject, resolveProjectDirs, hasErrorFindings, renderMarkdownReport, renderJUnitReport, renderHtmlReport, renderTextSummary. The generated API reference comes from npm run docs:api.
Dependencies
@abap/ui5-blueprint-audit-plugin-core, @abap/ui5-blueprint-audit-types, import-meta-resolve, and yaml.