redline
HighAI tellsplaceholder-code

Placeholder instead of code

Placeholder instead of code. A placeholder where code should be (existing code). Something was elided or never written.

This is how the comment reads inline, under the flagged line.

Why it matters

Models elide code with // ... existing code ... or # implementation here. When that lands in a commit, the real code is gone or was never written.

What to do

Write the code, or restore what was cut. If it is future work, open an issue and leave no stub.

Examples

Flagged
function save(user) {
  // ... existing code ...
}
Better
function save(user) {
  return db.users.insert(user);
}

What it catches

It reads a pattern on each line, aware of strings and comments. Languages: Any file. Scope: All files. These cases are the rule's own tests: the first set must be flagged and the second must not.

Flagged

function a() {
  // ... existing code ...
}
src/app.py
def f():
    # implementation goes here
    pass
// ...

Left alone

// Load the rest lazily.
const a = 1;
const s = '...';

Research

Stubs and elided code (`// ... existing code ...`, `raise NotImplementedError`, "implementation here"). Code that looks finished and does nothing passes review and fails in use.

Turn it off or change it

In a config file for the CLI, or in the API's rules field:

{
  "rules": {
    "disable": [
      "placeholder-code"
    ],
    "severity": {
      "placeholder-code": "low"
    }
  }
}

Read the source or report a false positive.