PMD 5.2.0

PMD is a static code analyzer that looks for common code flaws such as unused variables, empty catch blocks, unneeded object instantiation. It understands Java, JavaScript, XML, XSL. It's companion tool CPD detects copy and pasted sections in Java, C, C++, C#, Go, PHP, Ruby, Fortran, and JavaScript.