Re:Show HN: Summarise all code annotation like TODO or FIXME
by onion2k on Sunday February 26, 2017 @04:59PM
(#13740194)
Wouldn't 'git grep --line-number ^TODO' fix that (only match TODO at the start of a line)? Maybe with some whitespace matching if you indent your TODOs?
[ Parent
| on HN ]
Re:Show HN: Summarise all code annotation like TODO or FIXME
by cryptarch on Sunday February 26, 2017 @06:16PM
(#13740582)
I don't put my TODO's at the start of lines? Usually only in single-line comments after some code.
I think a script with a few grep invocations for all code files with lines containing TODO/FIXME etc. is about right, takes minutes to set up and will work for all but the most obscure cases.
It'll easily deal with your README.md case.
Re:Show HN: Summarise all code annotation like TODO or FIXME
by StavrosK on Sunday February 26, 2017 @06:29PM
(#13740660)
I'm not convinced that "^\s(//|#|--)\s(TODO|FIXME|XXX)\s*:" (i.e. a fairly simple regex) isn't a plausible way to do what's required of this. All the colors and everything are nice, but a simple bash script sounds eminently doable.