Skip to content

TODO and FIXME left behind: work the agent did not finish and did not mention ​

Code nobody needs: one of the ways AI coding agents bloat software, from lessloc's pattern catalog. lessloc catches it as todo; it asks to finish the work, or to record known debt as shortcut: and tell the user.

What makes TODO and FIXME left behind a bad practice? ​

The standards that call it a bad practice: CWE-546 Suspicious Comment; Sonar S1135.

What does lessloc do about TODO and FIXME left behind? ​

lessloc catches it as todo; it asks to finish the work, or to record known debt as shortcut: and tell the user.

  • todo (tier 3): A TODO, FIXME, HACK or XXX comment left in.

Examples ​

Caught as todo:

python
def ship(order):
    # TODO: handle international orders
    return order

Written well:

python
def ship(order):
    # shortcut: domestic only; add carriers when we sell abroad
    return order

The other patterns in Code nobody needs:

Released under the Apache-2.0 license. · llms.txt