Skip to main content

Crate marque_config

Crate marque_config 

Source
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.toml contains a [user] section (FR-010, SC-006) → exit 65
  • [capco] version mismatches marque_ism::SCHEMA_VERSION (FR-011) → exit 65
  • confidence_threshold outside [0.0, 1.0] → exit 65

Structs§

CapcoConfig
CAPCO-specific configuration.
Config
Resolved, merged configuration ready for engine use.
RuleConfig
Per-rule severity overrides.
UserConfig
User identity — always from local config, never committed.

Enums§

ConfigError

Constants§

EX_DATAERR
Exit code 65 (EX_DATAERR) per contracts/cli.md.

Functions§

load
Load and merge configuration from standard locations.
load_with_explicit_config
Load configuration from an explicit .marque.toml path, bypassing the upward walk. Used by --config <PATH> per contracts/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.”