Skip to main content

Crate blockwatch

Crate blockwatch 

Source

Modules§

blocks
The Block type and the repository scan that turns source files into blocks to validate.
diff_parser
Reads a unified diff into the per-file line changes that decide which blocks are checked.
flags
Command-line arguments and the accessors that turn them into globs, filters, and extension maps.
fs
File access and path filtering behind traits, so tests can substitute fakes for the real disk.
language_parsers
One tree-sitter-backed comment parser per supported language, keyed by file extension.
repo_path
RepoPath: the single spelling of a repository-relative file path used as a map key.
report
Renders the end-of-run report describing what was scanned and checked. Builds the report that --verbosity prints: the files a run scanned, the blocks it found, and the validators that checked them.
sarif
Renders the violations of a run as a SARIF log, the format code-scanning services read.
validators
The rules enforced on blocks (affects, keep-sorted, …) and the machinery that runs them.
violation_address
Unique violation address.

Structs§

Position
A place in a source file.