pmd icon indicating copy to clipboard operation
pmd copied to clipboard

An extensible multilanguage static code analyzer.

Results 629 pmd issues
Sort by recently updated
recently updated
newest added

**Affects PMD Version:** 6.49.0+ 7.0.0 **Rule:** [UnusedAssignment](https://pmd.github.io/latest/pmd_rules_java_bestpractices.html#unusedassignment) **Description:** First of all, I was kind of surprised that this check also looks at parameters, as that's not quite obvious from the...

a:false-positive

**Is your feature request related to a problem? Please describe.** - The rules have near identical implementation; in fact LocalVariableCouldBeFinal uses methods of the other rule. - The rule MethodArgumentCouldBeFinal...

an:enhancement

**Affects PMD Version:** This error was testing in the following versions: - 7.0.0 - 7.0.0.rc1 - 6.55.0 - 6.54.0 **Description:** Trying to analyze pl/sql code with XMLQUERY function in SELECT,...

a:bug
in:grammar

**Affects PMD Version:** This error was testing in the following versions: - 6.52.0 - 6.51.0 - 7.0.0 (see comments below) **Description:** Trying to analyze pl/sql code in a Compound Trigger...

a:bug
in:grammar

**Affects PMD Version:** PMD 7.0.0-SNAPSHOT **Description:** When transversing the AST for [this file](https://github.com/checkstyle/checkstyle/blob/checkstyle-9.1/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/indentation/InputIndentationLongConcatenatedString.java) PMD fails with a StackOverflowError. Since InFixOperations are parsed as recursive tail descent structure, a new node...

a:bug

**Affects PMD Version:** 7.0.0 **Rule:** [UnusedPrivateMethod](https://docs.pmd-code.org/latest/pmd_rules_java_bestpractices.html#unusedprivatemethod) **Description:** The regression tester shows, that the rule finds the following allegedly unused private methods: - https://github.com/openjdk/jdk/tree/jdk-11+28/src/java.base/share/classes/java/lang/Integer.java#L170 'toStringUTF16(int, int)' - https://github.com/openjdk/jdk/tree/jdk-11+28/src/java.base/share/classes/java/lang/Integer.java#L338 'toUnsignedString0(int, int)' -...

a:false-positive

**Affects PMD Version:** 7.0.0 **Rule:** [EmptyControlStatement](https://docs.pmd-code.org/latest/pmd_rules_java_codestyle.html#emptycontrolstatement) Please provide the rule name and a link to the rule documentation: **Description:** Since #432 was closed EmptyControlStatement allows empty try-with-resources, provided the resources...

a:false-negative

**Affects PMD Version:** v7.0.0 **Description:** When a sub-query uses TYPEOF keyword to query related fields from a polymorphic field object, PMD throws a ParseException. **Exception Stacktrace:** ``` > pmd check...

a:bug
in:grammar

Hi! I am currently trying to update from 6.55.0 to PMD 7.0.0. **Affects PMD Version:** 7.0.0 **Rule:** [UnnecessaryBoxing](https://pmd.github.io/pmd/pmd_rules_java_codestyle.html#unnecessaryboxing) **Code Sample demonstrating the issue:** ```java import java.util.Optional; public class Example {...

a:false-positive

**Affects PMD Version:** 7.0.0 **Rule:** [UnnecessaryBoxing](https://docs.pmd-code.org/latest/pmd_rules_java_codestyle.html#unnecessaryboxing) **Description:** PMD reports "Unnecessary explicit conversion from Integer to Long" violation, but removing the explicit conversion will break compilation. **Code Sample demonstrating the issue:**...

a:false-positive