Expand description
marque-config — layered configuration loading.
Precedence (highest wins): CLI flags → env vars → .marque.local.toml → .marque.toml
§Hard-fail validators (T023)
The loader refuses to produce a Config if any of these conditions hold:
.marque.tomlcontains a[user]section (FR-010, SC-006) → exit 65[capco] versionmismatchesmarque_ism::SCHEMA_VERSION(FR-011) → exit 65confidence_thresholdoutside[0.0, 1.0]→ exit 65
Structs§
- Capco
Config - CAPCO-specific configuration.
- Config
- Resolved, merged configuration ready for engine use.
- Rule
Config - Per-rule severity overrides.
- User
Config - User identity — always from local config, never committed.
Enums§
Constants§
- EX_
DATAERR - Exit code 65 (
EX_DATAERR) percontracts/cli.md.
Functions§
- load
- Load and merge configuration from standard locations.
- load_
with_ explicit_ config - Load configuration from an explicit
.marque.tomlpath, bypassing the upward walk. Used by--config <PATH>percontracts/cli.md: “short-circuits the walk and uses the specified path as the project config; the local-config search still applies, only in the directory containing the supplied path.”