Functions | |
| dict | load_contract () |
| Load the forbidden-signature contract. | |
| iter_markdown (dict contract) | |
| Yield every repository Markdown file inside the contract's scan scope. | |
| str | normalize (str text) |
| Collapse whitespace so formatting changes cannot hide an exact template copy. | |
| list[str] | scan (dict contract) |
| Collect every forbidden-signature hit in the Markdown corpus. | |
| int | main () |
| Fail when generic expansion debris is present in the Markdown corpus. | |
Variables | |
| REPO_ROOT = Path(__file__).resolve().parents[2] | |
| str | CONTRACT_PATH = REPO_ROOT / "tests" / "tooling" / "generic_expansion_contract.json" |
Reject generic documentation-expansion debris anywhere in the repository Markdown corpus.
| dict audit_generic_expansion.load_contract | ( | ) |
Load the forbidden-signature contract.
Definition at line 15 of file audit_generic_expansion.py.
| audit_generic_expansion.iter_markdown | ( | dict | contract | ) |
Yield every repository Markdown file inside the contract's scan scope.
| [in] | contract | Parsed contract mapping. |
Definition at line 23 of file audit_generic_expansion.py.
| str audit_generic_expansion.normalize | ( | str | text | ) |
Collapse whitespace so formatting changes cannot hide an exact template copy.
| [in] | text | Raw file text. |
Definition at line 36 of file audit_generic_expansion.py.
| list[str] audit_generic_expansion.scan | ( | dict | contract | ) |
Collect every forbidden-signature hit in the Markdown corpus.
| [in] | contract | Parsed contract mapping. |
Definition at line 45 of file audit_generic_expansion.py.
| int audit_generic_expansion.main | ( | ) |
Fail when generic expansion debris is present in the Markdown corpus.
Definition at line 68 of file audit_generic_expansion.py.
| audit_generic_expansion.REPO_ROOT = Path(__file__).resolve().parents[2] |
Definition at line 11 of file audit_generic_expansion.py.
| str audit_generic_expansion.CONTRACT_PATH = REPO_ROOT / "tests" / "tooling" / "generic_expansion_contract.json" |
Definition at line 12 of file audit_generic_expansion.py.