Java Code Metrics Report

Java Code Metrics Report

This is the dream for Managers to have code report for each project. In Java we have tools like check style, PMD, CPD, Cobertura Test Coverage, ..etc. We need to have tool which can track all this results on day to day basis and helps to track down the progress in project. To achieve this we have following tools.

XRadar – http://xradar.sourceforge.net/

Maven Dashboard Plug-in – http://mojo.codehaus.org/dashboard-maven-plugin/

QA Lab – http://qalab.sourceforge.net/

Sonar – http://sonar.codehaus.org/

Hacky Stat – http://code.google.com/p/hackystat/

Strengths:

  1. It supports branches and multiple projects
  2. Nice time lines
  3. Tabular and graphical views
  4. Separate database to track huge past history.

JcReport – http://www.jcoderz.org/fawkez/wiki/JcReport

(Only with Ant…no maven support)


The best tool worked out for me is Sonar.

Here is the Sonar demo site http://nemo.sonar.codehaus.org

Problems faced in Sonar setup as on Nov-04-2008

Problem: sonar-1.4.3 is having issues and there is ticket http://jira.codehaus.org/browse/SONAR-413

Solution: Sonar 1.4.2 is working fine.

Problem: MySQL database in Windows with McAfee is having problem while using Windows/Temp folders

Embedded error: org.hibernate.exception.GenericJDBCException: could not get table metadata: rules_categories

Can’t create/write to file ‘C:WINDOWSTEMP#sql_12a8_0.MYI’ (Errcode: 13)

Solution:

my.ini file in mysql folder

#Added to escape from McAfee

tmpdir=”C:/mysql_temp”

http://www.customware.net/repository/pages/viewpage.action?pageId=8093734

-o-

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s