Top "Pmd" questions

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

How to export FindBugs/PMD/Checkstyle rules from Sonar and import into Netbeans

My company has sonar set up to with various plugins (PMD, FindBugs, CheckStyle), and although it is very useful as …

netbeans findbugs sonarqube checkstyle pmd
PMD ruleset file

I am trying to figure where is the default ruleset file, name of the default ruleset file and how do …

java maven pmd
Explanation and fix for Possible null pointer dereference of

Code review tool is complaining Possible null pointer dereference of safeScanWarnings in saveSafeScan(...) At the line if (safeScanWarnings != Null & …

java findbugs pmd
What is NPath Complexity and how to avoid it?

In this line: public Map getAll(BusinessTargetPK pkBusinessTargetId) throws Exception I am getting this error: NPath Complexity is 32,768 (max allowed …

java sonarqube pmd
Java PMD warning on non-transient class member

On line: private boolean someFlag; I get the following PMD warning: Found non-transient, non-static member. Please mark as transient or …

java coding-style javabeans pmd
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.…

java eclipse eclipse-plugin pmd
PMD/CPD: Ignore bits of code using comments

Is there a way to tell PMD to ignore checking parts of code for duplication? For example, can I do …

java maven pmd duplication cpd
PMD: Avoid instantiating new objects inside loops

I've got an issue with the PMD rule Avoid instantiating new objects inside loops. Here is some example code: import …

java loops instantiation pmd
How to suppress violations in PMD?

When I run a PMD analysis I receive violation: Each class should declare at least one constructor This violation is …

java spring pmd
Any open-source software that is similar to Fortify?

I have been using PMD and Findbug for my application but fortify managed to detect some of the security vulnerabilities …

security open-source findbugs pmd fortify