Code Counters
LEARN ABOUT OUR PROJECT MANAGEMENT SOLUTIONS FOR SOFTWARE DEVELOPMENT
These links are offered as a convenient reference for code counting tools. QSM does not endorse any code counting tool and no warranty, express or implied, is offered as to the suitability of any tool for any purpose. Descriptions/features section comments are pared-down versions of descriptions from the tool provider. QSM makes no representation as to their accuracy or completeness.
If you have used, or are aware of, a code counting utility that is not mentioned below and would like to add it to the list, please click here to submit that information.
Become a QSM Code Counter Subject Matter Expert contact and receive a QSM white paper.
|
Tool
|
Languages
|
Description/Features
|
Link
|
|
|---|---|---|---|---|
|
Code Count |
Ada
Assembly C C++ COBOL FORTRAN Java JOVIAL Pascal PL1 |
The CodeCount toolset spans multiple programming languages and utilizes one of two possible Source Lines of Code (SLOC) definitions, physical or logical. The CodeCount toolset is provided in source code only, and may be used as is, modified or further distributed subject to certain limitations. The tools in the collection are supplied in C source code only. You are responsible for compiling and building executable versions. The Instructions provide installation and execution directions.
|
||
|
Code Counter Pro v101 |
Java
C/C++ VB PHP HTML, Delphi/Pascal File Types asp, asm, bas, bat, c, cpp, c++, css, csv, dfm, h, hpp, htm, html, inc, ini, java, js, jsp, log, pas, php, php3, sql, txt, vb, vbs, xml. Also create your own file types / comment types. |
Counts several types of source code - including Java, C/C++, VB, PHP, HTML, Delphi/Pascal, and many more. New in v1.1! Create your own file types and comment types. Virtually unlimited file types supported. Easily define each file type's comment and count them all. Smart Comment feature - knows which comment types are used by each language and counts accordingly. (i.e. /* */ for C code and /* */ and // for C++ code. Save and load count profiles - no need to enter the same information over and over for the same source files to count. Sortable results grid - sort by total lines, total comments, total blank lines, total source code only lines, ascending or descending order. Export to CSV file or cut and paste into spreadsheet (i.e. Excel) for more detailed analysis. Free download, $25 US to buy.
|
||
| CodeMetrics™ |
Ada
JavaScript Assembler Jovial AssemblerARM JSP awk ksh Bash ManPage Basic MSDOSBatch C Pascal C# Perl C++ Cobol Script ColdFusion sed csh sh Fortran sp Fortran90 SQL Fortran95 tixwish HTML Verilog Include VisualBasic iSQL wish J# XML |
CodeMetrics™ is an extensible code counting tool that automatically examines every file below a user specified root directory. Counts delivered source instructions, comment lines, comment lines with words, blank lines and total lines. The tool comes preloaded with 39 language specifications and provides users with the capability to specify additional languages of interest. CodeMetrics™ provides a basic COCOMO calculator and an automated interface to USCs COCOMOII cost estimator. Features:
|
||
| EZ-Metrix™ |
Supports multiple
languages |
With an easy Internet-based interface, multiple language support and flexible licensing features, you will be up and running in minutes with EZ-Metrix™. Measure source code size from virtually all text-based languages and from any platform or operating system with the same utility. Size data may be stored in EZ-Metrix's internal database or may be exported for further analysis. EZ-Metrix™ supports software development estimates, productivity measurement, schedule forecasting and quality analysis.
Internet-based Easy to install and use Supports multiple language Provides a common measure for all languages with one tool Ready to use today No compilation or build required to use View & export reports Flexible reporting allows off-line analysis Comparison measures Better support for enhancements and maintenance activities Configurable, rule-based algorithm Supports language-level and project-level reporting Flexible licensing Only pay for what you need |
||
|
Java NCSS |
Java
|
Metrics generated at global, class, or function level.
Counts Non Commented Source Statements (NCSS). Packages, classes, functions and inner classes are counted. Number of formal Javadoc comments per class and method. Command line driven. A GUI is provided. XML output (optional). XSLT stylesheets provided for further generation of HTML, and SVG reports and as a basis for your own custom reports. Free software (GNU GPL). |
||
|
Line Counter |
Visual C++
|
A program that counts the lines (source, comments, blank) in every file included in a MS VC++ 6.0 project. The program is able to count source code, comments (both styles: "// comment" and "/* comment */"), and blank lines.
|
||
| LOCC |
Java
|
LOCC supports size measurement of grammar-based languages through integrated support for JavaCC. Comes with a prebuilt parser for Java, plus an experimental parser for C++. Can also measure the size of non-grammar-based languages (such as simple ASCII text.) Supports hierarchical size measurements. such as the number of packages, the number of classes in each package, the number of methods in each class, and the number of lines of code in each method. Given two files containing successive versions of Java source code, can perform a hierarchical "diff" of the two files, producing the number of new and changed packages, classes, methods, and lines of code within each method.
|
||
|
Project Line Counter |
VC++
Visual Studio.NET |
Supports Visual Studio .NET - dual VC6/VC7 add-in. Automatically scans workspace and project files.
Varied statistical data about your source code, including: lines of code and comment lines. Includes parsers for: C/C++, VB, INI and other file types. Can filter statistics based on workspace or project files and/or custom wildcards. Export as CSV file for processing by Microsoft Excel (includes sample worksheet with statistical analysis). Export as XML for use with the report stylesheets. Online help. Full source code. |
||
|
Resource Standard Metrics |
C ANSI C++ Java |
RSM provides a standard method for analyzing C, ANSI C++ and Java source code across operating systems. Collects Source Code Metrics by function, class, file, and project. Collects industry standard functional and object oriented metrics. Perform differentials between two baselines of code.
Commercial product with free trial license. |
||
|
SLOC Count |
Ada
Assembly awk Bourne shell and variants C C++ C shell COBOL C# Expect Fortran Haskell Java lex/flex LISP/Scheme Makefile Modula-3 Objective-C Pascal Perl PHP Python Ruby sed SQL TCL Yacc/Bison |
Set of tools for counting physical Source Lines of Code (SLOC) in a large number of languages. SLOCCount runs on GNU/Linux, FreeBSD, Windows, and hopefully on other systems too. To run on Windows, you have to install Cygwin first to create a Unix-like environment for SLOCCount. SLOCCount is released under the General Public License (GPL).
|
||
| Toad® | Oracle PL/SQL |
Windows-Based PL/SQL development and Administration, includes code counter for ORACLE PL/SQL. Advanced editors allow users to work on multiple files simultaneously - even different file types such as SQL, PL/SQL, HTML, Java and text. Commercial product with free trial version available.
|
||
| SLOC Metrics | C/C++ C# Java HTML Perl Visual Basic |
SLOC Metrics measures the size of your source code based on the Physical Source Lines of Code metric recommended by the Software Engineering Institute at Carnegie Mellon University (CMU/SEI-92-TR-019). Specifically, the source lines that are included in the count are the lines that contain executable statements, declarations, and/or compiler directives. Comments, and blank lines are excluded from the count. When a line or statement contains more than one type, it is classified as the type with the highest precedence. The order of precedence for the types is: executable, declaration, compiler directive, comment and lastly, white space. Major highlights of SLOC are as follows:
|
||
| Understand | Ada C++ Java Fortran Jovial |
Understand and parses Ada 83, Ada 95, FORTRAN 77, FORTRAN 90, FORTRAN 95, K&R C, ANSI C and C++, and Java source code to reverse engineer, automatically document, calculate code metrics, and help you understand, navigate and maintain source code. Each tool can parse and later manipulate very large amounts of code. (1,000,000 SLOC projects and above are common among our customers)
|
||