Top "Pmd" questions

PMD scans source code and looks for potential problems like possible bugs, dead code, suboptimal code, overcomplicated expressions, and duplicate code.

Gradle's PMD plugin: what are acceptable arguments?

Java 1.7.0_40 Gradle 1.10 I've never used Gradle's PMD plugin and I'm running into trouble trying to add rule sets to my …

java gradle pmd
if(x!=y) vs if(x==y)

I have run the PMD plugin in Eclipse against my code and I'm getting a high priority warning for code …

java eclipse pmd
PMD-Plugin in Eclipse/Juno not installable through marketplace

I recently upgraded from Eclipse (for Java/EE developers, x64) "Indigo" to "Juno". Unluckily the PMD-Plugin (http://marketplace.eclipse.org/…

eclipse pmd eclipse-juno eclipse-marketplace
Eclipse PMD Can't find basic.xml

When attempting to run pmd for a project in Eclipse/Juno, I am getting this error. An internal error occurred …

java eclipse eclipse-juno pmd
Using character instead of String for single-character values in StringBuffer append

I was going through the PMD rule AppendCharacterWithChar. It says Avoid concatenating characters as strings in StringBuffer.append. StringBuffer sb = …

java string optimization string-concatenation pmd
Java for each loop being flagged as UR anomaly by PMD

I would like to confirm if this is a bug on PMD? How do I file a ticket if it …

java for-loop code-analysis static-analysis pmd
Gradle PMD Checkstyle Findbugs - Which sourceSet directory to work Java build

Gradle 1.6 Linux . Java build Project structure Project_or_Module src/java (contains java source code) test/java (contains JUnit tests …

gradle ignore findbugs checkstyle pmd
How to explicitly comment empty methods?

public void destroy() { } I have written above empty method in my filter class which is required as per the interface. …

java methods comments pmd noop
Maven PMD plug-in not generating a report with 'mvn site' command or 'pmd:pmd'

I am reading an interesting tutorial here: http://www.avajava.com/tutorials/lessons/how-do-i-generate-pmd-and-cpd-reports-for-a-site.html?page=1 This tutorial shows how …

java maven pmd
Reasoning behind ArrayIsStoredDirectly rule of PMD

PMD has a rule called ArrayIsStoredDirectly in the Sun Security ruleset: Constructors and methods receiving arrays should clone objects and …

java security code-analysis pmd