kevinlacotaco/grunt-todos — pull request #1 by m3nt0r (2013-04-05 06:38:43+00:00)
Title: Added a "verbose" option and refactored the logging a bit.

The plugin was displaying every single file while it was running and the "no tasks found" wasn't really working (was never displayed because syntax.comments was always > 0 if the file had any comments).

I changed "logComments" to "detectComments" which will now push onto a (relevant)comments stack before the actualy reporting logic is executed.

That allowed me add the required conditions and i could also fix the missing "no tasks found" report at the same time.

My changes will not affect the original behavior. It is only an option to reduce the amount of files reported down to only those that are relevant (ie. contain a TODO/FIXME, etc).

HTH

_ps; i would have written tests, but all current ones were failing anyway so i am not sure where to start. I think the entire suite must be fixed. Probably outdated or something._