Expand description
§tokmd-scan
Tier 1 (Adapter)
This crate adapts the tokei library for use within tokmd.
It isolates the dependency on tokei to a single location.
§What belongs here
- Tokei configuration and invocation
- Mapping
tokmdargs totokeiconfig
§What does NOT belong here
- Business logic (filtering, sorting, aggregation)
- Output formatting
- Receipt construction
Re-exports§
pub use exclude::add_exclude_pattern;pub use exclude::has_exclude_pattern;pub use exclude::normalize_exclude_pattern;pub use math::gini_coefficient;pub use math::percentile;pub use math::round_f64;pub use math::safe_ratio;pub use path::normalize_rel_path;pub use path::normalize_slashes;pub use tokeignore::InitArgs;pub use tokeignore::InitProfile;pub use tokeignore::init_tokeignore;
Modules§
- exclude
- Deterministic exclude-pattern normalization and dedupe helpers.
- math
- Deterministic numeric and statistical helpers.
- path
- Single-responsibility path normalization and root bounding.
- tokeignore
- tokmd-scan::tokeignore
- walk
- File walking and repository asset discovery helpers.
Structs§
- InMemory
File - A single logical file supplied from memory rather than the host filesystem.
- Materialized
Scan - A scan result that keeps its backing temp root alive for downstream row modeling.
Functions§
- config_
from_ scan_ options - Build the
tokeiconfig used for a scan from clap-freeScanOptions. - normalize_
in_ memory_ paths - Normalize ordered in-memory inputs into deterministic logical paths.
- scan
- Scans a set of paths and computes line counts for each language found.
- scan_
in_ memory