Expand description
Configuration parsing and management for covguard.
This crate provides:
- Configuration types (
Config,Profile, etc.) - TOML parsing
- Profile system (oss, team, strict)
- Precedence handling (CLI > config file > defaults)
Structs§
- CliOverrides
- CLI override options.
- Config
- Full configuration for covguard.
- Effective
Config - Effective configuration with all values resolved.
- Ignore
Config - Ignore directive configuration.
- Normalize
Config - Path normalization configuration.
- Path
Config - Path filtering configuration.
Enums§
- Config
Error - Errors that can occur during configuration loading.
- FailOn
- Determines when the evaluation should fail.
- Missing
Behavior - How to handle missing coverage data.
- Profile
- Built-in policy profiles.
- Scope
- Scope of lines to evaluate.
Functions§
- discover_
config - Try to find and load configuration from the standard location.
- load_
config - Load configuration from a TOML file.
- matches_
any_ pattern - Check if a path matches any of the given glob patterns.
- parse_
config - Load configuration from a TOML string.
- profile_
defaults - Get default configuration for a profile.
- resolve_
config - Resolve effective configuration from profile, config file, and CLI overrides.
- should_
include_ path - Filter a path based on include/exclude patterns.