Source lines of code

View previous topic View next topic Go down

Source lines of code

Post by BIT0112-Rokon on Thu Nov 25, 2010 11:44 pm

According to wiki,
Source lines of code (SLOC) is a software metric used to measure the size of a software program by counting the number of lines in the text of the program's source code. SLOC is typically used to predict the amount of effort that will be required to develop a program, as well as to estimate programming productivity or effort once the software is produced.

Today, here I'm here going to share a tools that will calculate your SLOC. Then name of Tool is CLOC.
its basically a perl script.

So, first download the script from here

now open your terminal. go to your script directory. For say it is in Desktop.
Code:
cd Desktop
now execute following command to find SLOC.
Code:
$ perl perl cloc-1.52.pl [your_source_code_directory]

better lets see an image. It is for my file_uploader project in Java.


For more details about it, you may visit CLOC homepage.


Last edited by BIT0122-Amit on Mon Nov 29, 2010 4:17 pm; edited 1 time in total (Reason for editing : edited the quote tages and made them code tags.)

_________________________________________________________________


Code Explosion Blog | Code Explosion Wiki | The Rokonoid | নির্ঝরিণী
avatar
BIT0112-Rokon
Programmer
Programmer

Course(s) :
  • BIT

Blood Group : O+
Posts : 673
Points : 1269

View user profile http://blog.codexplo.org

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum