Skip to main content

How many TODO comments do you have?

How many TODO comments do you have in your codebase?

After posting the grep command from the st repository, I decided to check a project I'm working on.

Here's the command I ran:

grep -rnE TODO web/modules/custom | wc -l

Different to the original, this command finds the number of TODO comments recursively in the custom modules directory and counts them using the wc command.

This gave me a result of 29 TODOs.

Some were added recently.

Some were added by Developers who no longer work on the project.

This is something I'll often do in the future to review the number of TODOs, fix them in-place or move them into a ticketing system.

About me

Picture of Oliver

I'm an certified Drupal Triple Expert with 18 years of experience, a Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.