Skip to main content

Module diff

Module diff 

Source
Expand description

Diff-aware lint: only lint contracts changed since a base ref.

Uses git diff --name-only <base_ref>..HEAD -- contracts/ to find changed YAML files, then expands to include transitive dependents (contracts that depend_on any changed contract).

Spec: docs/specifications/sub/lint.md Section 3

Functions§

changed_contracts
Get contract stems changed since base_ref.
expand_dependents
Expand changed stems with transitive dependents.