Skip to main content

Crate sloc_core

Crate sloc_core 

Source

Re-exports§

pub use baseline::check_against_baseline;
pub use baseline::resolve_baselines_path;
pub use baseline::BaselineEntry;
pub use baseline::BaselineStore;
pub use coverage::aggregate_line_coverage;
pub use coverage::lookup_coverage;
pub use coverage::parse_lcov;
pub use coverage::FileCoverage;
pub use delta::compute_delta;
pub use delta::compute_multi_delta;
pub use delta::FileChangeStatus;
pub use delta::FileDelta;
pub use delta::MultiFileDelta;
pub use delta::MultiScanComparison;
pub use delta::MultiScanPoint;
pub use delta::ScanComparison;
pub use delta::SummaryDelta;
pub use history::CleanupPolicy;
pub use history::CleanupPolicyStore;
pub use history::RegistryEntry;
pub use history::ScanRegistry;
pub use history::ScanSummarySnapshot;
pub use history::WatchedDirsStore;
pub use maintenance::dir_size_bytes;
pub use maintenance::execute_run_prune;
pub use maintenance::plan_run_prune;
pub use maintenance::resolve_output_root;
pub use maintenance::resolve_registry_path;
pub use maintenance::rotate_log;
pub use maintenance::rotated_log_paths;
pub use maintenance::run_output_dir;
pub use maintenance::PrunePlan;
pub use maintenance::PruneReport;
pub use maintenance::PrunedRun;

Modules§

baseline
Named baseline snapshots — save a scan result as a pinned reference point and compare future scans against it.
coverage
delta
history
maintenance
Disk-hygiene primitives for reclaiming space taken by old scan artifacts and log files.

Structs§

AnalysisRun
CocomoEstimate
COCOMO I (Basic) cost-estimation result derived from total code SLOC.
EffectiveCounts
EnvironmentMetadata
FileRecord
LanguageStyleGroup
Per-language-family style aggregation within a StyleSummary.
LanguageSummary
ProgressCounters
Atomics shared between analyze() and the caller so the caller can poll scan progress.
RepositoryLayout
Summary of the git-repository shape under a selected scan root.
StyleSummary
Aggregate multi-language style-guide adherence across all analysed files.
SubmoduleSummary
Per-submodule aggregated stats produced when submodule_breakdown is enabled.
SummaryTotals
ToolMetadata

Enums§

CocomoMode
COCOMO I (Basic) project mode — determines the a/b/c/d exponent coefficients.
FileStatus

Functions§

analyze
Errors
detect_repository_layout
Inspect root for independent git repositories nested beneath it.
detect_submodules
Parse .gitmodules in root and return (name, relative_path) for each submodule found.
read_json
Errors
write_json
Errors

Type Aliases§

CppStyleSummary
Backward-compatible alias kept so that sloc-report and sloc-web can migrate incrementally without a breaking change on the same release.