Skip to main content

sc_lint/
lib.rs

1//! `sc-lint` is a Rust lint tool for repository policy enforcement.
2//!
3//! It runs boundary, portability and runtime analyzers plus consumer-declared
4//! lint and test steps from `sc-lint.toml`, and reports results through a
5//! stable JSON-first machine contract. Most users install the `sc-lint`
6//! binary; `sc-lint docs` prints the offline user manual.
7//!
8//! The library target backs the `sc-lint` binary. The supported machine
9//! interface is the CLI and its JSON contract (ADR-006).
10//!
11//! Documentation and source: <https://github.com/randlee/sc-lint>.
12
13mod cli;
14mod command;
15mod compatibility;
16mod config;
17pub mod consts;
18mod consumer_integration;
19mod contract;
20mod dispatch;
21mod docs;
22mod entry;
23mod error;
24mod installer;
25mod profile_host;
26mod profile_plan;
27pub(crate) mod python_adapter;
28mod render;
29mod scheduler;
30mod step_exec;
31mod step_logs;
32mod step_paths;
33mod test_selectors;
34mod workflow;
35
36#[cfg(test)]
37mod tests;
38
39#[cfg(test)]
40pub(crate) mod test_support;
41
42pub use cli::CheckTarget;
43pub use cli::Cli;
44pub use cli::ClippyTarget;
45pub use cli::Command;
46pub use cli::CompatibilityCommand;
47pub use cli::DocsGuide;
48pub use cli::LintTarget;
49pub use cli::PlatformScopeArg;
50pub use cli::ViewTarget;
51pub use command::CommandContext;
52pub use command::DispatchTelemetry;
53pub use config::LoadedConfig;
54pub use config::MinimumVersion;
55pub use contract::CommandEnvelope;
56pub use entry::ExecutionOutcome;
57pub use entry::ImmediateOutcome;
58pub use entry::ParsedInvocation;
59pub use entry::run;
60pub use entry::run_code;
61pub use entry::version_json;
62pub use error::CliError;
63pub use error::CliErrorKind;
64pub use profile_plan::PROFILE_PLAN_ERROR_CODE;
65pub use render::RenderedOutput;
66pub use workflow::WINDOWS_XWIN_TARGET;
67
68#[cfg(test)]
69pub(crate) use entry::help_text;
70#[cfg(test)]
71pub(crate) use entry::parse_args;