Configuration
imferno validates with sensible defaults, but every rule can be tuned via a rules config.
Available severities
Rules config
CLI
Create a rules.json:
Rust
Every validation code has a typed enum variant — no raw strings needed:
WASM
Import the codes object for autocomplete and typo protection:
Node.js
Spec selection
imferno auto-detects the CPL's core spec version and application profile from the namespace declared in the XML. You can override this:
CLI
Rust
CoreSpecTarget: St2067_2_2013, St2067_2_2016, St2067_2_2020
AppSpecTarget: St2067_21_2020, St2067_21_2021, St2067_21_2023
WASM
coreSpec:"auto"|"v2013"|"v2016"|"v2020"app2eSpec:"auto"|"none"|"v2020"|"v2021"|"v2023"
Node.js
coreSpec:"auto"|"v2013"|"v2016"|"v2020"app2eSpec:"auto"|"none"|"v2020"|"v2021"|"v2023"
See the Validation Codes reference for the full catalogue of rule codes.