PMD is a source code analyzer that helps you find programming errors such as empty variables, loops, or duplicate content in different programming languages like C, C++, Java, C#, and more. This source code compiler checks for syntax errors and notifies you about them, and you can ignore or fix them.

PMD: Find Programming Errors and Duplicate Code
Add to an IDE

Getting it to work is very easy, especially if you are a programmer. Here is a brief explanation of how to do it from Windows. Once you download the program from its official page, you need to extract the ZIP file, go to the bin folder, and run the cpdgui.bat file.

PMD: Find Programming Errors and Duplicate Code
You have to unzip the file

Find Duplicate Lines

To find duplicate lines, you just need to select the location of the code (the folder containing it, from the Root Source directory) and specify the programming language of the code, which can be: Objective-C, C#, Ruby, Scala, Java, PHP, JavaScript, Apache Velocity, Salesforce.com APEX, XML, PLSQL, Swift, Matlab, Go, Python, or Fortran. The scanning time depends on the file, and you can search for duplicate lines in one or multiple files. You can also export the results in XML or CSV, either comma-separated or tab-separated.

PMD: Find Programming Errors and Duplicate Code
Very easy to use

Find Programming Errors

To find programming errors, you need to integrate PMD with an IDE that supports it. You can install it with a plugin available on the website. Supported IDEs include Textpad, BlueJ, Maven 2, Code Guide, Netbeans, among others. In error searching, the tool is compatible with Java, JavaScript, Salesforce.com Apex and Visualforce, PLSQL, Apache Velocity, XML, and XSL.

PMD: Find Programming Errors and Duplicate Code
PMD: Find Programming Errors and Duplicate Code
pmdgif

As you can see, the platform is a simple and very visual way to detect duplicate lines and code errors in various programming languages. Thanks to its plugins, you can integrate it with many IDEs. PMD is a free program available for Windows, Mac OS X, and Linux.

Official site: