no-todo-placeholders

FreeDead Code

Disallow TODO/FIXME/HACK comments left as if work is complete

no-todo-placeholders

Disallow TODO/FIXME/HACK comments left as if work is complete

Category: Dead Code | Tier: Free

Why This Matters

AI generates TODO and FIXME comments as stand-ins for actual implementation. These markers give the illusion of progress while the real functionality is missing. In production, a TODO comment does not handle payments or validate input.

Bad Code

function processPayment(amount: number) {
  // TODO: implement payment processing
  // FIXME: add error handling
  console.log('payment', amount);
}

Good Code

function processPayment(amount: number) {
  const charge = await stripe.charges.create({
    amount,
    currency: 'usd',
  });
  return charge;
}

Configuration

This rule has no configuration options. It is enabled by default in lintmyai:recommended.