Due to some maintenance issues, this service has been switched in read-only mode, you can find more information about the why

and how to migrate your plugin documentation in this blogpost

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

This plugin reads the "crappy methods" report from Crap4J. Hudson will generate the trend report of crap percentage and provide detailed information about changes. Users will be able to track which methods are crappy and when they entered and left the code base.


Currently, this plugin is restricted to use with freestyle (ant) jobs. Future releases might support all kinds of jobs.


The crap4j plugin scans the Crap4J report data and reports trends.

These features are currently implemented:

  • Crap report page for jobs
    • Trend charts for Crappyness, Crap Method Count, Crap Load and Crap
    • List of all current crap methods of the job
  • Crap report page for builds
    • List of all current crap methods of the build
    • List of new and fixed crap methods in comparison to the previous build
  • Crap report summary in the build report column
    • Statistical summary and links to current, new and fixed crap methods

Configuring the Crap4J Plugin

  1. Get the crap4j plugin
  2. Install the crap4j plugin in your hudson
  3. Configure your project's build script to generate crap4j XML reports (This happens along with the HTML report)
  4. Enable the "Publish Crap" publisher on the job configuration page
  5. Specify the directory where the crap4j report (report.xml) is generated
  6. Perform some builds to receive a trend


Release 0.1 (2008-05-17):

  • Initial release. Please feel free to suggest new features.

  • No labels