[PHP] Re: [ANNOUNCE] TODO parser

2007-04-28 Thread Alexander Elder

Daevid Vincent wrote:

For a long time I've wanted a tool that would traverse my source code to
find all those little forgotten TODO entries.
 
It should handle most all kinds (as you'll see if you look at the example

files). The only one I didn't bother with was:
 
$foo = 1; //Todo: [dv] I meant todo this later.
 
notice the 'todo' in there. it confuses my script. simple solution is just

spell it out as 'to do', which is proper English anyways!
 
I give you a fairly simple but useful tool that does just that. The output

can be command line (preferred way) or CSV so you can easily parse it into a
web page. I provided an example of how to do that. The web version of course
could be made much more interesting, with hyperlinks to the files, color,
etc, but I wanted to keep it simple for illustration purposes.
 
http://daevid.com/examples/todo/
 
Having said that, you should download it and try it for yourself.
 
./todo.php --path ./example --parse_tree
 
./todo.php --help for more options
 
It's all in a single todo.php file so it's easy to add to /usr/local/bin or
whatever. 
The tgz is really only for the examples.
 
ÐÆ5ÏÐ 
 
P.S. While you're there, I'll give a plug to my DHCP web tool. Perfect for

seeing who's on your LAN.
http://daevid.com/examples/dhcp/
 

It would be nice if you added a flag for parsing 'FIXME' entries too. 
Quite a lot of source I've read contains 'TODO' and 'FIXME', often with 
little variation between meanings. Just my $0.02.


Alexander

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: [ANNOUNCE] TODO parser

2007-04-28 Thread Daevid Vincent
 -Original Message-
 From: Alexander Elder [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, April 28, 2007 10:30 AM
 To: php-general@lists.php.net
 Subject: [PHP] Re: [ANNOUNCE] TODO parser
 
 Daevid Vincent wrote:
  For a long time I've wanted a tool that would traverse my 
 source code to
  find all those little forgotten TODO entries.
  http://daevid.com/examples/todo/
 

 It would be nice if you added a flag for parsing 'FIXME' entries too. 
 Quite a lot of source I've read contains 'TODO' and 'FIXME', 
 often with 
 little variation between meanings. Just my $0.02.

Thank you Alexander, that is an excellent suggestion!

D.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: [ANNOUNCE] TODO parser

2007-04-28 Thread Sebe

Daevid Vincent wrote:

-Original Message-
From: Alexander Elder [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 28, 2007 10:30 AM

To: php-general@lists.php.net
Subject: [PHP] Re: [ANNOUNCE] TODO parser

Daevid Vincent wrote:

For a long time I've wanted a tool that would traverse my 
  

source code to


find all those little forgotten TODO entries.
http://daevid.com/examples/todo/
  
 

  
It would be nice if you added a flag for parsing 'FIXME' entries too. 
Quite a lot of source I've read contains 'TODO' and 'FIXME', 
often with 
little variation between meanings. Just my $0.02.



it would also be nice if you were able to exclude certain directories... 
maybe an array of disallowed directories so it doesn't check them.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php