def METHOD_NAME(
    self,
    tasks_main_text: str,
    tmp_path: Path,
) -> list[MatchError]:
    """Lints received text as tasks."""
    role_path = tmp_path
    tasks_path = role_path / "tasks"
    tasks_path.mkdir(parents=True, exist_ok=True)
    with (tasks_path / "main.yml").open("w", encoding="utf-8") as fh:
        fh.write(tasks_main_text)
        fh.flush()
    results = self._call_runner(role_path)
    shutil.rmtree(role_path)
    return results