redline
MediumAI tellsplaceholder-value

Placeholder value

Placeholder value. A placeholder value ("https://your-domain.com/api/YOUR_PROJECT_ID") that was never filled in.

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

Why it matters

Generated code ships with YOUR_API_KEY and your-domain.com in it. It runs, then fails at the first real request.

What to do

Read the real value from config, and fail at startup when it's missing.

Examples

Flagged
const BASE_URL = "https://your-domain.com/api";
Better
const BASE_URL = config.apiUrl;

What it catches

It reads a pattern on each line, aware of strings and comments. Languages: TypeScript and JavaScript, Python, Go, Rust, Java, C and similar, Shell, YAML and config. Scope: Shipped code only. These cases are the rule's own tests: the first set must be flagged and the second must not.

Flagged

const u = "https://your-domain.com/api/YOUR_PROJECT_ID";
const k = "changeme";

Left alone

const u = config.apiUrl;

Research

Placeholder config values (`YOUR_API_KEY`, `changeme`, `your-domain.com`). They break at runtime or leak into production config.

Turn it off or change it

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

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

Read the source or report a false positive.