JavaNCSS Plugin

Plugin Information

Plugin ID javancss
Latest Release 1.0
Latest Release Date Jun 01, 2010
Sources Subversion
Support Eclipse Hudson Forum
Issue Tracking Eclipse Bugzilla

This plugin allows you to use JavaNCSS build reporting tool.

Configuring the JavaNCSS Plugin

For a freestyle project, check the Java NCSS checkbox in the Post-build Actions section. Set the XML report pattern according to the instructions there. Optionally add health report thresholds (see below for details).

For a Maven type project, report data will be collected automatically when the javancss:report goal is used. Optionally check the Java NCSS checkbox in the Build Settings section to add health report thresholds (see below for details).

For health report thresholds, enter "healthy" and "unhealthy" thresholds for the selected metric. Build health will be 100% if the metric is better than the healthy threshold, and 0% (failed build) if worse than the unhealthy threshold. Health percentage is calculated on a linear scale when the metric falls between the two thresholds.
For the "% of lines that are comments" metric, use threshold values from 0 to 100.
For the "ratio of javadocs to classes and functions" metric, use threshold values from 0.0 to 1.0.

For more information about this plugin, see http://javaadventure.blogspot.com/2008/06/writing-hudson-plugin-part-7-putting-it.html

Version History

Version 1.0 (June 1, 2010)

  • Added link to javancss reports to floatingBox graphs. (issue #3248)
  • Fixing NonSerializableException when merging results on a slave. (issue #3194)
  • Update code for more recent Hudson.

Version 1.0-alpha-1 (September 11, 2008)

  • Initial release

Labels:

plugin-report plugin-report Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Apr 09, 2009

    Jessica-Aileen says:

    Is there any activity to beautify/enhance this plugin? When you are using it wit...

    Is there any activity to beautify/enhance this plugin? When you are using it with Ant you'll only get tables with headers and abbreviations which are well known for JavaNCSS specialists but meaningless for JavaNCSS-unacquainted programmers. So at least a legend with some explanations would be very helpful.

  2. Apr 17, 2009

    Frank says:

    Please supply some information on configuration. I have turned on the JavaNCSS p...

    Please supply some information on configuration. I have turned on the JavaNCSS plugin and pointed it to the correct XML report but nothing is shown when the build completes.

  3. Apr 22, 2009

    Daniel Tamiosso says:

    I have the same case pointed by Frank.

    I have the same case pointed by Frank.

  4. Nov 29, 2010

    Rick Herrick says:

    And I have the same issue as Daniel and Frank.  My assumption is that these...

    And I have the same issue as Daniel and Frank.  My assumption is that these reports would appear in the same place as, e.g., Cobertura coverage reports, on the status page for each build.  So for example http://server/hudson/job/My%20Job/5 would have the JavaNCSS report displayed.  Is that not correct?  Is there a special URL for viewing the report or is there some step I need to take to get the report into the status page?

    I do have the Publish Java NCSS Report option checked and have the appropriate pattern set for the metrics output (the raw metrics reports are generated from the JavaNCSS Ant task).  As best I can tell, the path is correct, or at least nothing's complaining about it.  I have it fully qualified from the workspace root:

    ${WORKSPACE}/flex/metrics/*.xml

    What am I missing here?

  5. Jan 12, 2011

    Jim Jamieson says:

    Any chance the reports will ever be more than just the package details? It would...

    Any chance the reports will ever be more than just the package details? It would be nice to drill down into the packages and see the class and function metrics gathered as well. Thanks.

  6. Feb 15, 2011

    Andre Silva says:

    Hi all, same situation as Frank's here. The XML report is generated, the "show ...

    Hi all,

    same situation as Frank's here.
    The XML report is generated, the "show report" option is checked, but nothing is shown on Hudson..
    Is this some kind of version mismatch?
    Can you provide some more in depth tutorial?

    Thanks