sc-lint 0.8.8

Top-level CLI composition root for the sc-lint tool family.
Documentation

sc-lint

sc-lint checks Rust repositories for boundary, portability, runtime, and repository-policy problems. The Rust CLI is the product command surface; the separately published Python distribution provides bindings and repository helper modules.

Current release: 0.8.8.

Install

Install the CLI and its analyzer binaries with Homebrew:

brew install randlee/tap/sc-lint

Release archives are available from GitHub Releases. The sc-lint crate page is on crates.io; crate API docs are on docs.rs.

The Python package is installed separately:

python -m pip install sc-lint

It does not install the Rust CLI binaries. Install the CLI from Homebrew or a release archive before using Python helpers that locate or invoke sc-lint. See the Python bindings guide.

Other supported distribution and integration channels are Scoop, WinGet, the GitHub Action, and the Rust crates on crates.io. The Python package supplies bindings and helpers; it is not the CLI installer.

Run checks

With a configured sc-lint.toml, run the consumer CI lint profile for a consumer repository with:

sc-lint lint ci --consumer

Bare sc-lint lint ci runs sc-lint's own maintainer profile.

Run an individual analyzer with:

sc-lint lint sc-boundary
sc-lint lint sc-portability
sc-lint lint sc-runtime

Use sc-lint --json lint ci --consumer for machine-readable output. The offline manual is available with sc-lint docs; start with its installation, configuration, using-sc-lint, and package guides.

The analyzers can also be run directly when working on their Rust crates:

cargo run -p sc-lint-boundary -- analyze --root . --format text
cargo run -p sc-lint-portability -- analyze --root . --format text
cargo run -p sc-lint-runtime -- analyze --root . --format text

Analyzer rules

The rule inventories below match the 0.8.8 analyzer crates. Full descriptions, configuration, and examples are in each linked crate guide.

Boundary

sc-lint-boundary checks graph cycles, source boundaries, dependency policy, features, and manifests. Its rules are:

  • SCB-CYCLE-001–SCB-CYCLE-003
  • SCB-BOUNDARY-001–SCB-BOUNDARY-005
  • SCB-CALLER-001
  • SCB-DEPENDENCY-001–SCB-DEPENDENCY-004
  • SCB-FEATURE-001
  • SCB-MANIFEST-001–SCB-MANIFEST-006

Boundary records must not contain an [enforcement] section; that section was removed from the record schema and causes inventory loading to fail. The SCB-BOUNDARY-005 rule checks a record's [implementation].visibility against its named source type and, when declared, [implementation].constructor against the type's inherent fn new. See the boundary guide for checked values and remediation details.

Portability

sc-lint-portability checks cross-platform paths, environment access, Unix shell assumptions, and cfg parity:

  • PORT-001–PORT-010

Runtime

sc-lint-runtime checks blocking waits, sleep calls, block_on, and mutex guards held across .await:

  • SCB-RUNTIME-001–SCB-RUNTIME-007

Packages

The workspace version is 0.8.8. The sc-lint CLI composes the analyzer crates; the support crates are reusable building blocks.

Package Role
sc-lint CLI and product command surface
sc-lint-boundary Boundary analyzer
sc-lint-portability Portability analyzer
sc-lint-runtime Runtime analyzer
sc-lint-analyzer-support Shared analyzer implementation support
sc-lint-attributes #[sc_lint(...)] procedural attribute
sc-lint-directives Shared directive parser and types
sc-lint-schema Analyzer report and finding types
sc-lint on PyPI Python bindings and repository helpers

The Python check_version_sync helper also checks that a declared dependency on another listed Python project admits the workspace version. A mismatch is reported as python.dependency_specifier, with the workspace version in expected and the configured specifier in actual.

Project links

Contributing

From a source checkout, run the complete repository gates:

just lint
just test

Before running cargo test directly in a fresh checkout, run just setup to build the local wheels required by the consumer fixture.