Top "Pmd" questions

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

RegExp matching string not starting with my

For PMD I'd like to have a rule which warns me of those ugly variables which start with my. This …

regex regex-negation pmd
Avoid printStackTrace(); use a logger call instead

In my application, I am running my code through PMD.It shows me this message: Avoid printStackTrace(); use a logger …

java logging pmd printstacktrace
Iterating over the content of a text file line by line - is there a best practice? (vs. PMD's AssignmentInOperand)

We have a Java Application that has a few modules that know to read text files. They do it quite …

java while-loop pmd
Logger vs. System.out.println

I'm using the PMD plugin for eclipse and it gives me an error when using System.out.println() with the …

java eclipse pmd java.util.logging
Is SonarQube Replacement for Checkstyle, PMD, FindBugs?

We are working on a web project from scratch and are looking at the following static code analysis tools. Conventions (…

checkstyle findbugs sonarqube pmd
Checkstyle vs. PMD

We are introducing static analysis tools into the build system for our Java product. We are using Maven2 so Checkstyle …

java static-analysis findbugs checkstyle pmd
What are the differences between PMD and FindBugs?

There was a question comparing PMD and CheckStyle. However, I can't find a nice breakdown on the differences/similarities between …

java static-analysis findbugs pmd
Unable to locate Source XRef to link to

I have a big maven project that uses the pmd plugin for code quality checks. since I started using the …

java maven maven-3 pmd
Dataflow anomaly analysis warnings from PMD

I am using Eclipse with the PMD Plug-in (4.0.0.v20130510-1000) and get a lot of those violations: Found 'DD'-anomaly for …

java pmd dataflow anomaly-detection
What is the reason for these PMD rules?

DataflowAnomalyAnalysis: Found 'DD'-anomaly for variable 'variable' (lines 'n1'-'n2'). DataflowAnomalyAnalysis: Found 'DU'-anomaly for variable 'variable' (lines 'n1'-'n2'). …

java pmd