Logo

Downloads

  • CodeAnalyzer-0.7.0.jar

Site Links

  • Release Notes
  • User's Guide
  • JavaDoc for CodeAnalyzer
  • Example HTML Report
  • Join the Mailing List

Sourceforge Links

  • CodeAnalyzer@SourceForge
  • Bugs/Enhancements

SF Logo

Comments/Support: mteel@users.sourceforge.net

Last modified on July 19, 2005

CodeAnalyzer - Multi-Platform Java Code Analyzer
Configurable Project Source Metrics

Code Analyzer is a software source file metrics application.
Metrics calculated include:

Total Files (For multiple file metrics)
Total Lines
Code Lines
Comment Lines
Whitespace Lines
Average Line Length
Code Lines/File (For multiple file metrics)
Comment Lines/File (For multiple file metrics)
Code/Comments Ratio
Code/Whitespace Ratio
Code/(Comments + Whitespace) Ratio


It includes built-in comment and file extension definitions for:

C                 (*.c, *.h)
C++             (*.cpp, *.cc, *.h, *.hh)
java             (*.java)
html             (*.html, *.htm)
Assembly     (*.s, *.asm, *.ia)

Several combinations of the above types are built-in as well. It is easy to define new comment and extension types to be saved for repeated use. It features a simple but powerful algorithm for source metrics which allows user definition of comments and extensions in addition to the built-ins. The GUI features a user-friendly tree view of the project (or Code Set) with a tabular display of the analysis results.

There are several report generation options. Full text reports can be generated which display folders and files as rows in the report. Full CSV (comma seperated value) reports can be generated which also display each file or folder in a row and can be easily imported into Excel or OpenOffice. Full HTML reports generate a full html formatted page suitable for web publishing (see an example report).

Code Analyzer is written completely in Java using NetBeans (java.sun.com).

A description of the object relationships within the Code Analyzer design and it's use and capabilities can be found in the User's Guide. There is a link above to the User's Guide and it is also included with the application as "Help".

Code Analyzer is free software distributed under the GNU GPL. It is hosted on SourceForge which maintains the User Forums and Bug Tracking system.