Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing PMD 5.0.4 in Eclipse

Can anybody tell me how to install PMD in Eclipse. I have downloaded PMD 5.0.4 from the following link:

http://sourceforge.net/projects/pmd/files/latest/download?source=files

When I add this archive file in Eclipse install option I am getting an error stating that "It could not find the file specified".

like image 800
JPS Avatar asked Jul 16 '13 09:07

JPS


People also ask

How do I create a PMD report in Eclipse?

Go to "Window -> Preferences -> PMD -> Reports" and select the report format, you want, e.g. "text". Right-click on the project and select "PMD -> Check Code". Right-click on the project and select "PMD -> Generate Reports".

What is PMD eclipse?

pmd-eclipse-plugin PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. It supports Java, JavaScript, Salesforce.com A... Source Code Analyzer. Last Updated on Saturday, October 29, 2022 - 04:27 by Andreas Dangel.


1 Answers

Just follow the directions on http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/ I copied the direction here for you so you don't even have to click !!

In Eclipse, click on Help -> Install New Software...

Click on Add.. Enter the following:

Name: PMD for Eclipse Update Site

URL: https://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/

and click OK.

You should see PMD for Eclipse 4. Select the checkbox next to it and click Next >.

You'll need to accept the license and confirm you want to install a plugin that is not digitally signed. Go ahead and install it anyway.

Restart eclipse.

like image 176
grepit Avatar answered Nov 14 '22 21:11

grepit