Overview
NLOC is a command-line based source line counter tool. It counts the total number of comment, code and blank lines of source files. It supports various languages like C, C++, C#, Java, Visual Basic, Pascal and Delphi, and is compatible with Visual Studio project and solution files.
It generates textual reports and/or XML documents. It can be used from any external program, script or batch file. The results will be grouped by projects, which can be explicitly specified by the user.
You can download the latest release here.
Features
- Counts several statistics: total number and percentage of code, comment and blank lines
- Recursive search for source files
- Filtering with wildcards
- Using projects as file groups
- Compatible with Visual Studio 2003/2005 project and solution files
- Extremely fast (hundreds of thousands of lines in a few seconds)
- Supports various languages: C, C++, C#, Java, Visual Basic, Pascal and Delphi
- Exporting reports to text files and XML documents
Future Plan
- Graphical user interface (GUI)
- Generation of HTML report files with XSL transformations