fleetlint Policy for a fleet of repositories
v0.11 (latest)
Getting started

slop/placeholder-comments

No placeholder implementations

Severityinfo
Tiersall
Stacksany
Scoperoot
Kindexpr
Sourcelibrary v0.8.0
Selected byfleetlint-slop@v0.8.0

Requirement

No comment marks code as a stand-in (“in a real app”, “for simplicity”, “not implemented”, “mock data for now”).

Why

The comment admits the code does not do what its name says.

Check

For each item in:

codegrep("code", r'(?i)(^\s*\*|(^|\s)(//+|#+|/\*+))\s.*\b(in a real (app|implementation|world|project|scenario)|for simplicity|simplified (version|implementation|logic)|placeholder (implementation|logic|for now)|mock (data|implementation) for now|not (yet )?implemented|implement (this|later|me)|dummy (data|value|implementation))')
false

Fix

Implement it, or remove the code and track the gap in an issue.

Agent instruction: Report each placeholder; implement it only when the intended behaviour is clear from the callers, otherwise ask.

Sources


Generated by fleetlint docs from catalog v0.8.0.