Skip to main content

fallow_cli/
lib.rs

1#![expect(
2    clippy::print_stdout,
3    clippy::print_stderr,
4    reason = "CLI binary produces intentional terminal output"
5)]
6
7#[allow(
8    dead_code,
9    unused_imports,
10    reason = "shared CLI library compiles bin-oriented support modules for reuse"
11)]
12mod api;
13#[allow(
14    dead_code,
15    unused_imports,
16    reason = "shared CLI library compiles bin-oriented support modules for reuse"
17)]
18mod baseline;
19#[allow(
20    dead_code,
21    unused_imports,
22    reason = "shared CLI library compiles bin-oriented support modules for reuse"
23)]
24mod check;
25/// CODEOWNERS file parser and ownership lookup.
26pub mod codeowners;
27#[allow(
28    dead_code,
29    unused_imports,
30    reason = "shared CLI library compiles bin-oriented support modules for reuse"
31)]
32mod combined;
33#[allow(
34    dead_code,
35    unused_imports,
36    reason = "shared CLI library compiles bin-oriented support modules for reuse"
37)]
38mod dupes;
39
40/// Structured error output for CLI and JSON formats.
41pub mod error;
42
43/// Metric and rule definitions for explainable CLI output.
44pub mod explain;
45
46#[allow(
47    dead_code,
48    unused_imports,
49    reason = "shared CLI library compiles bin-oriented support modules for reuse"
50)]
51mod health;
52/// Health / complexity analysis report types.
53pub mod health_types;
54#[allow(
55    dead_code,
56    unused_imports,
57    reason = "shared CLI library compiles bin-oriented support modules for reuse"
58)]
59mod license;
60
61/// Programmatic Rust API reused by the NAPI bindings.
62pub mod programmatic;
63
64/// Shared Rayon pool configuration for all embedded analysis entry points.
65pub(crate) mod rayon_pool;
66
67/// Regression detection: baseline comparison and tolerance checking.
68pub mod regression;
69
70/// Report formatting utilities for analysis results.
71///
72/// Exposed for snapshot testing of output formats.
73pub mod report;
74
75#[allow(
76    dead_code,
77    unused_imports,
78    reason = "shared CLI library compiles bin-oriented support modules for reuse"
79)]
80mod runtime_support;
81#[allow(
82    dead_code,
83    unused_imports,
84    reason = "shared CLI library compiles bin-oriented support modules for reuse"
85)]
86mod validate;
87#[allow(
88    dead_code,
89    unused_imports,
90    reason = "shared CLI library compiles bin-oriented support modules for reuse"
91)]
92mod vital_signs;
93
94pub use runtime_support::{AnalysisKind, GroupBy};
95pub(crate) use runtime_support::{build_ownership_resolver, load_config_for_analysis};