Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Project Count of Lines Of Code

Status
Not open for further replies.

jfrost10

Programmer
Jun 3, 2001
2,004
CA
Hey guys,

Is there any known, easy way of getting the total number of lines of code for a given project?

Trying to convince the higher-ups that we need more people (or that they should pay me as if i was 3 people...yeah, I'm not optimistic about that either)

Thanks

D
 
Not that I know of Jack. You could scroll to the bottom of every page get the line number and then add them together. Depending on the size of your project this could take you a day to do though. That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
yeah, I've got a dll with about 50 classes, and the main project has about 50 forms on it as well.

I was able to average everything out, so that should be good enough.

thanks

D
 
It would not be that hard to find out.

I wrote a code counter for Clipper once (in VB.NET), but I lost the code when my computer died the other month (I still have the EXE).

All you have to do is:

1. search for the relevant files (*.aspx,*.vb,*....)
- Give it directory and file extensions and create an
array of file names.
2. then run through each file and count for three things
A. Trimed lines that = "" (Blank Lines)
B. Trimed lines that start with ' (Comments)
C. All other lines (Code)


Also, look at these:

Kris
- To spot the expert, pick the one who predicts the job will take the longest and cost the most.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top