diff --git a/eval/test_features.py b/eval/test_features.py index 281eaf9..3046a5c 100644 --- a/eval/test_features.py +++ b/eval/test_features.py @@ -298,6 +298,14 @@ def main(): check("v1.5 sweep backfills the kind tag", "tags: [company]" in drift or '' in drift, drift) + # 16b. lint blind spot (1.6.0): a seed README inside a retired tree must be + # flagged retired-path — previously the permissive leaf-readme route matched + # first and absolved it, so retired dirs holding only a README went unflagged. + h.seed("archive/notes/README.md", "This folder holds archived notes.\n") + r = h.echo(LINT) + check("v1.6 lint flags a README inside a retired tree", + "archive/notes/README.md: retired location" in r.stdout, r.stdout[-800:]) + # 17. hooks: stop-hook nudges once on a substantive session, then stays quiet. import tempfile tdir = Path(tempfile.mkdtemp())