slop/placeholder-comments
No placeholder implementations
| Severity | info |
| Tiers | all |
| Stacks | any |
| Scope | root |
| Kind | expr |
| Source | library v0.7.0 |
| Selected by | fleetlint-slop@v0.7.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))')falseFix
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.7.0.