Saturday, May 8, 2010

How to Generating PMD Reports InEclipse ?

You have configured and found the all violation but I think you also like to save all that data for future reference. You can do this without using any other tool. For situations of this kind PMD provides a handy reporting tool it is able to generate reports in multiple formats. Currently PMD can generate reports in HTML, XML, plain text as well as Comma Separated Value (CSV) formats.
  1. Right Click on the java project in the project explorer and select PMD | Generate reports
  2. It creates a report folder in your application and create violation report.
  3. Select Window | Show View | Navigator
  4. In Navigator view click on Project and then on the reports folder
  5. That folder content same report in different format one of them html format. It is something like:

2 comments:

  1. I am getting error like below
    any help ?
    An internal error occurred during: "RenderReport".
    Compilation unit name must end with .java, or one of the registered Java-like extensions

    ReplyDelete