Fork me on GitHub

PMD Results

The following document contains the results of PMD 7.17.0.

Violations By Priority

Priority 3

org/apache/maven/plugins/shade/mojo/ShadeMojo.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 13211331

org/apache/maven/plugins/shade/pom/MavenJDOMWriter.java

Rule Violation Line
UnusedNullCheckInEquals Invoke equals() on the object you've already ensured is not null 152

Priority 4

org/apache/maven/plugins/shade/mojo/ArtifactId.java

Rule Violation Line
UselessParentheses Useless parentheses around `(tokens.length > 2) ? tokens[2] : "*"`. 61

org/apache/maven/plugins/shade/mojo/RelativizePath.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RelativizePath': 'parentDirs' is already in scope 48
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RelativizePath': 'parentDirs' is already in scope 49

org/apache/maven/plugins/shade/resource/DontIncludeResourceTransformer.java

Rule Violation Line
UselessParentheses Useless parentheses around `resource != null && !resource.isEmpty()`. 39

Files

org/apache/maven/plugins/shade/mojo/ArtifactId.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `(tokens.length > 2) ? tokens[2] : "*"`. 4 61

org/apache/maven/plugins/shade/mojo/RelativizePath.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RelativizePath': 'parentDirs' is already in scope 4 48
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RelativizePath': 'parentDirs' is already in scope 4 49

org/apache/maven/plugins/shade/mojo/ShadeMojo.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 13211331

org/apache/maven/plugins/shade/pom/MavenJDOMWriter.java

Rule Violation Priority Line
UnusedNullCheckInEquals Invoke equals() on the object you've already ensured is not null 3 152

org/apache/maven/plugins/shade/resource/DontIncludeResourceTransformer.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `resource != null && !resource.isEmpty()`. 4 39