← 返回
未分类 中文

Partial Implementation

Code returned as "done" is actually a stub — a placeholder body, a TODO comment, or a function that claims completion without real logic.
返回为“done”的代码实际上是占位符——空函数体、待办注释,或声称完成却无实际逻辑的函数。
mvogt99 mvogt99 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 296
下载
💾 1
安装
1
版本
#latest

概述

partial-implementation

A function or module is declared complete, but the body is a stub. The most common form is a function with pass, return None, throw NotImplementedError, or a single TODO: comment in place of real logic.

Symptoms

  • Function signature exists but the body contains only a comment, pass, return, throw new Error("not implemented"), or similar.
  • Placeholder values returned (return 0, return {}, return null) where real computation was requested.
  • Tests pass only because the test is also a stub, or because the function always returns the fixture value.
  • The agent claims a change is "complete" or "implemented" but no meaningful lines of logic were added.

What to do

  • Before declaring a task done, re-read every function you added or modified. If the body is a placeholder, the task is not done.
  • Search the diff for TODO, FIXME, XXX, NotImplementedError, unimplemented!, pass, lone return or return null. Investigate each hit.
  • Run the code end-to-end, not just the type-checker. A stub satisfies the type checker but fails at runtime.
  • Compare the implementation against the task description: every bullet of the task should map to concrete lines of logic, not comments.
  • If part of the task is genuinely out of scope, say so explicitly rather than stubbing silently.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-08 00:25 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 79 📥 182,817
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 197 📥 68,115
data-analysis

Analysis Missing Tradeoffs

mvogt99
分析仅呈现单一选项,未比较替代方案,也未说明所选方案的成本。
★ 0 📥 678