Skip to main content

Crate loq_core

Crate loq_core 

Source
Expand description

Core domain logic for loq - a file size enforcement tool.

This crate provides the foundational types and logic for enforcing file size limits across a codebase. It handles configuration parsing, rule matching, and violation reporting.

§Architecture

  • config: Configuration types and compilation (glob patterns → matchers)
  • parse: TOML parsing with unknown key detection and suggestions
  • decide: Rule matching logic (exclude → rules → default)
  • report: Outcome aggregation and finding generation

Re-exports§

pub use config::CompiledConfig;
pub use config::ConfigError;
pub use config::ConfigOrigin;
pub use config::LoqConfig;
pub use config::PatternList;
pub use config::Rule;
pub use decide::Decision;
pub use decide::MatchBy;
pub use parse::parse_config;
pub use report::FileOutcome;
pub use report::Finding;
pub use report::FindingKind;
pub use report::OutcomeKind;
pub use report::Report;
pub use report::SkipReason;
pub use report::Summary;

Modules§

config
Configuration types and compilation.
decide
Rule matching and decision logic.
parse
TOML configuration parsing with validation.
report
Outcome aggregation and report generation.