Configuration file reference
This is the shape of .l3lint.yaml. The file is YAML; the schema checks it after it is read, and an invalid file stops the run with exit code 3. See Configuration for how the file is found and how its values combine with flags and the payload.
Schema: config.schema.json (JSON Schema draft 2020-12, $id https://brimatt16219.github.io/l3lint/schemas/config.schema.json). l3lint schema config prints the same file.
Team defaults so CI and laptops lint the same way. Unknown keys are errors. Relative paths resolve from the folder that holds the file.
Types read "string or null" when a property may also be null. In the tables, an object that has its own table links to it.
Root object
| Property | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
version |
integer | no | always 1 |
Config schema version. | |
context |
object, see context | no | Defaults used when the payload and the command line are silent. | ||
inputs |
object, see inputs | no | How input files are read. | ||
rules |
object, see rules | no | Which rules run, their severities and the data quality settings. | ||
arithmetic |
object, see arithmetic | no | Tolerance and rounding for the arithmetic rules. | ||
pci |
object, see pci | no | Card-number handling. | ||
output |
object, see output | no | Default outputs and the failing threshold. | ||
rates |
string | no | at least 1 character | Rate table YAML for cost estimates, relative to this file's folder. --rates overrides it. |
No other properties are allowed.
context
Defaults used when the payload and the command line are silent.
| Property | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
brand |
string | no | auto |
one of auto, visa, mastercard, amex, discover, all |
Card brand used when the payload has no card.brand and --brand is not given. all lints every transaction against every brand; auto uses only the payload. |
cardProduct |
string | no | one of consumer, business, corporate, purchasing, fleet, commercialPrepaid |
Card product used when the payload has no card.product and --card-product is not given. | |
mcc |
string | no | pattern ^[0-9]{4}$ |
Merchant category code used when the payload has no merchant.mcc and --mcc is not given. | |
merchantCountry |
string | no | US |
pattern ^[A-Z]{2}$ |
Merchant country (ISO 3166-1 alpha-2) used when the payload has no merchant.country and --merchant-country is not given. |
processor |
string | no | generic |
at least 1 character | Profile name, or a path to a profile YAML file. --processor overrides it. |
strictProfiles |
boolean | no | false |
Run single-processor rules at their catalog severity under every profile, as --strict-profiles does. |
No other properties are allowed.
inputs
How input files are read.
| Property | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
format |
string | no | auto |
one of auto, canonical, stripe, adyen, braintree, cybersource, authorizenet, checkoutcom, csv |
Input format. auto detects it from the payload. --format overrides it. |
defaultCurrency |
string | no | pattern ^[A-Z]{3}$ |
ISO 4217 currency for payloads that carry none, such as Braintree requests (ADR-0056). | |
csvMap |
string | no | at least 1 character | Column map for CSV input, relative to this file's folder. --map overrides it. | |
limits |
object, see inputs.limits | no | Hard input limits. An input over a limit is an input error (exit code 2); the other inputs are still linted. |
No other properties are allowed.
inputs.limits
Hard input limits. An input over a limit is an input error (exit code 2); the other inputs are still linted.
| Property | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
maxFileBytes |
integer | no | 26214400 |
at least 1; at most 2147483647 | Largest input in bytes (25 MB by default). For .ndjson and .jsonl files the limit applies to each record. |
maxLineItems |
integer | no | 1000 |
at least 1; at most 2147483647 | Most line items one transaction may carry. |
maxJsonDepth |
integer | no | 64 |
at least 2; at most 1000 | Deepest JSON nesting allowed. |
No other properties are allowed.
rules
Which rules run, their severities and the data quality settings.
| Property | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
only |
array of string | no | items: pattern ^[A-Z0-9*?-]+$ |
Run only these rules (IDs or globs such as VISA-DQ-*). --only replaces this list. | |
disable |
array of string | no | items: pattern ^[A-Z0-9*?-]+$ |
Rules to skip (IDs or globs). --disable adds to this list. | |
severity |
map of keys matching ^[A-Z0-9*?-]+$ to string |
no | values: one of error, warning, information |
Severity per rule ID or glob, for example GEN-DQ-007: error. A --severity flag for the same key wins. | |
placeholders |
object, see rules.placeholders | no | Edits to the placeholder description list that GEN-DQ-001 and VISA-DQ-001 use. | ||
batch |
object, see rules.batch | no | Thresholds for the batch rule GEN-DQ-007. |
No other properties are allowed.
rules.placeholders
Edits to the placeholder description list that GEN-DQ-001 and VISA-DQ-001 use.
| Property | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
add |
array of string | no | items: at least 1 character | Terms to treat as placeholder descriptions, in addition to the shipped list. | |
remove |
array of string | no | items: at least 1 character | Shipped terms to stop treating as placeholder descriptions. |
No other properties are allowed.
rules.batch
Thresholds for the batch rule GEN-DQ-007.
| Property | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
minTransactions |
integer | no | 20 |
at least 2; at most 2147483647 | Fewest transactions in one run before GEN-DQ-007 is checked. |
sameValueShare |
number | no | 0.8 |
greater than 0; at most 1 | Share of the run's transactions that must carry the same description or product code for GEN-DQ-007 to fire. |
No other properties are allowed.
arithmetic
Tolerance and rounding for the arithmetic rules.
| Property | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
lineTolerance |
number | no | at least 0 | Largest accepted difference between a reported and an expected line total, in major units. Default: 1 minor unit of the transaction currency (0.01 for USD). | |
totalTolerance |
number | no | at least 0 | Largest accepted difference for the transaction total and the header tax, in major units. Default: 1 minor unit of the transaction currency. | |
toleranceMode |
string | no | strict |
one of strict, accumulated |
strict uses totalTolerance as given. accumulated uses the larger of totalTolerance and 1 minor unit per line, capped at 5 minor units. |
rounding |
string | no | awayFromZero |
one of awayFromZero, toEven |
How a midpoint rounds when quantity times unit cost is rounded to the currency exponent. |
No other properties are allowed.
pci
Card-number handling.
| Property | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
strict |
boolean | no | false |
Stop instead of masking when a card number is found, as --strict-pci does. | |
allowFields |
array of string | no | items: pattern ^(/[A-Za-z0-9*]+)+$ |
Canonical JSON Pointers (* matches any line index) exempt from card-number detection. Add a path only after a person confirms its values are not card numbers. |
No other properties are allowed.
output
Default outputs and the failing threshold.
| Property | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
failOn |
string | no | error |
one of error, warning, information, none |
Lowest severity that sets exit code 1. --fail-on overrides it. |
formats |
array of string | no | ["text"] |
items: pattern ^(text|json|sarif|junit|markdown)(=.+)?$ |
Outputs to write, each kind or kind=path, for example sarif=artifacts/l3lint.sarif. Paths resolve from this file's folder. Any --output flag replaces the whole list. |
maxFindings |
integer | no | at least 0; at most 2147483647 | Most findings to print. The summary still counts every finding. No limit when absent. |
No other properties are allowed.