Tiny, self-contained Python examples for the definition-layout rules. Each *_bad
triggers the finding named in its comment; each *_good scores 0. Run:
ventouse tests/fixtures/python/catalog/02_definitions.py --all
| Rule | Kind | Example | What it flags |
|---|---|---|---|
ForwardRef (declare-order) |
warning | 02 caller_* |
a callee defined below its caller (forward reference) |
Misplaced (placement) |
scope-debt | 02 weight/gravity |
a definition wedged away from what it references |
ExtractShared |
suggestion | 02 shared/task_* |
shared infrastructure (≥4 callers) → extract into its own module |