Skip to content

@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.

Source on GitHub · npm

Install and run ​

bash
npm install --save-dev @abap/ui5-blueprint-audit
npx @abap/ui5-blueprint-audit --type fs --lang en

The package has one binary, ui5-blueprint-audit. All options are in the CLI reference.

What it contains ​

PartSourceWhat it does
CLI entry pointsrc/cli.tsParses the arguments, runs every project, writes the reports, sets the exit code.
Config loadersrc/config/load-config.tsReads ui5-blueprint-audit.yaml. Resolves the project type and the languages.
Rule config mergesrc/config/merge-rule-config.tsCombines rule defaults with the overrides from the config.
Plugin loadersrc/plugins/load-plugins.tsLoads the core plugin and the plugins from the config. Builds the rule map.
Project contextsrc/context/load-project-context.tsReads the project files once.
Enginesrc/engine/run-project.tsRuns one project from config to results.
Reportssrc/report/Markdown, JUnit XML, HTML, and the console text summary.
CLI textssrc/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.

Released under the MIT License.