Skip to content

latent.lint.rules.lt001

LT001 — Raw IO inside a @task/@flow body when the dir declares a catalog.

Functions

lt001

lt001(ctx: RuleContext) -> Iterator[tuple[int, str]]

Raw IO inside a @task/@flow body when the dir declares a catalog.

Scope stays task-bodies-only. Module-scope IO is a different defect with a different fix: it runs at import, so input=/output= — which bind a dataset to a task invocation — cannot express it, and the common spelling there ((HERE / "prompt.md").read_text() for a source-adjacent asset) is not a catalog dataset at all. Flagging it would prescribe machinery that does not apply, the same defect LT004/LT005's evidence gate fixes.