Skip to main content

Crate sc_lint

Crate sc_lint 

Source
Expand description

sc-lint is a Rust lint tool for repository policy enforcement.

It runs boundary, portability and runtime analyzers plus consumer-declared lint and test steps from sc-lint.toml, and reports results through a stable JSON-first machine contract. Most users install the sc-lint binary; sc-lint docs prints the offline user manual.

The library target backs the sc-lint binary. The supported machine interface is the CLI and its JSON contract (ADR-006).

Documentation and source: https://github.com/randlee/sc-lint.

Modules§

consts

Structs§

Cli
CliError
CommandContext
CommandEnvelope
DispatchTelemetry
ExecutionOutcome
ImmediateOutcome
LoadedConfig
MinimumVersion
A validated semantic-version floor for a repository’s sc-lint installation.
RenderedOutput

Enums§

CheckTarget
CliErrorKind
ClippyTarget
Command
CompatibilityCommand
DocsGuide
LintTarget
ParsedInvocation
PlatformScopeArg
Command-line spelling of a consumer --platform-scope.
ViewTarget

Constants§

PROFILE_PLAN_ERROR_CODE
Stable top-level code for every invalid consumer profile declaration.
WINDOWS_XWIN_TARGET

Functions§

run
run_code
Runs the CLI and returns the process exit code without terminating the process. Embedders (the Python bindings) use this entry point.
version_json
Returns the sc-lint version JSON payload as a string.