Placeholder Content
Lorem ipsum, example emails, "John Doe" and "your-api-key-here" left in shipped code
infoAI Quality
placeholder-contentWhy this matters
AI tools use placeholder text and example values that look real enough to miss in review. Lorem ipsum in production is embarrassing; placeholder API keys are a security risk.
Example
components/hero.tsxexport const config = {
supportEmail: "user@example.com",
apiKey: "your-api-key-here",
author: "John Doe",
};
export function Hero() {
return <p>Lorem ipsum dolor sit amet...</p>;
}components/hero.tsxexport const config = {
supportEmail: process.env.SUPPORT_EMAIL!,
apiKey: process.env.API_KEY!,
author: "Ada Lovelace",
};
export function Hero() {
return <p>Ship production-ready code with confidence.</p>;
}How to fix
Search the codebase for lorem ipsum, example emails, John Doe, password123, changeme and your-…-here. Replace each with real content or an env var.
Reference
- In the output
- Findings carry
"ruleId": "placeholder-content"in--jsonand the same id in SARIF and in the terminal. - Silence one line
// prodlint-disable-next-line placeholder-content- Silence a whole file
// prodlint-disable placeholder-contentat the top of the file- How it works
- Matches text patterns. Source on GitHub