Skip to main content

Crate stern4rust

Crate stern4rust 

Source
Expand description

Holds a Rust workspace to its house coding rules and names every file that breaks one.

This library is not a public API. Depend on the binary, cargo stern4rust.

Module paths, type names and signatures may move in any release, including a patch, and no change to them is treated as breaking. Everything here is pub for one reason: this repository forbids unit tests, so every test lives in tests/ and can only reach what is public. The surface is exactly as wide as the test suite needs, and it is reshaped whenever the rules require it – directory-file-count has already forced two restructures that moved public paths.

What is promised is the binary: its exit codes (0 clean, 1 could not run, 2 rule broken) and the shape of its --format json report. See docs/ADRs/ADR-LibrarySurfaceIsNotAnApi.md.

Modules§

adoption
finding
reporting
rule
rule_registry
rules
runner
settings
source_file
source_reader
source_walker
test_file_rewriter