PMD Results

The following document contains the results of PMD 6.46.0.

Violations By Priority

Priority 3

org/apache/maven/plugins/dependency/GetMojo.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'groupId'. 95
UnusedPrivateField Avoid unused private fields such as 'artifactId'. 101
UnusedPrivateField Avoid unused private fields such as 'version'. 107
UnusedPrivateField Avoid unused private fields such as 'classifier'. 115
UnusedPrivateField Avoid unused private fields such as 'packaging'. 121

org/apache/maven/plugins/dependency/ListClassesMojo.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'groupId'. 99
UnusedPrivateField Avoid unused private fields such as 'artifactId'. 105
UnusedPrivateField Avoid unused private fields such as 'version'. 111
UnusedPrivateField Avoid unused private fields such as 'classifier'. 119
UnusedPrivateField Avoid unused private fields such as 'packaging'. 125
UnusedPrivateField Avoid unused private fields such as 'skip'. 153

org/apache/maven/plugins/dependency/fromDependencies/CopyDependenciesMojo.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'repositoryLayouts'. 75

org/apache/maven/plugins/dependency/resolvers/ResolveDependenciesMojo.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 296316

org/apache/maven/plugins/dependency/tree/TreeMojo.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'reactorProjects'. 99
UnusedPrivateField Avoid unused private fields such as 'repositorySystem'. 102
UnusedPrivateField Avoid unused private fields such as 'repoSession'. 111
UnusedPrivateField Avoid unused private fields such as 'projectRepos'. 117

org/apache/maven/plugins/dependency/utils/markers/SourcesFileMarkerHandler.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 157160

Priority 4

org/apache/maven/plugins/dependency/utils/filters/DestFileFilter.java

Rule Violation Line
UselessParentheses Useless parentheses. 293
UselessParentheses Useless parentheses. 294
UselessParentheses Useless parentheses. 318319

org/apache/maven/plugins/dependency/utils/filters/MarkerFileFilter.java

Rule Violation Line
UselessParentheses Useless parentheses. 94
UselessParentheses Useless parentheses. 95
UselessParentheses Useless parentheses. 101

org/apache/maven/plugins/dependency/utils/filters/ResolveFileFilter.java

Rule Violation Line
UselessParentheses Useless parentheses. 49

org/apache/maven/plugins/dependency/utils/markers/UnpackFileMarkerHandler.java

Rule Violation Line
UselessParentheses Useless parentheses. 6566

Files

org/apache/maven/plugins/dependency/GetMojo.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'groupId'. 3 95
UnusedPrivateField Avoid unused private fields such as 'artifactId'. 3 101
UnusedPrivateField Avoid unused private fields such as 'version'. 3 107
UnusedPrivateField Avoid unused private fields such as 'classifier'. 3 115
UnusedPrivateField Avoid unused private fields such as 'packaging'. 3 121

org/apache/maven/plugins/dependency/ListClassesMojo.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'groupId'. 3 99
UnusedPrivateField Avoid unused private fields such as 'artifactId'. 3 105
UnusedPrivateField Avoid unused private fields such as 'version'. 3 111
UnusedPrivateField Avoid unused private fields such as 'classifier'. 3 119
UnusedPrivateField Avoid unused private fields such as 'packaging'. 3 125
UnusedPrivateField Avoid unused private fields such as 'skip'. 3 153

org/apache/maven/plugins/dependency/fromDependencies/CopyDependenciesMojo.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'repositoryLayouts'. 3 75

org/apache/maven/plugins/dependency/resolvers/ResolveDependenciesMojo.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 296316

org/apache/maven/plugins/dependency/tree/TreeMojo.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'reactorProjects'. 3 99
UnusedPrivateField Avoid unused private fields such as 'repositorySystem'. 3 102
UnusedPrivateField Avoid unused private fields such as 'repoSession'. 3 111
UnusedPrivateField Avoid unused private fields such as 'projectRepos'. 3 117

org/apache/maven/plugins/dependency/utils/filters/DestFileFilter.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 293
UselessParentheses Useless parentheses. 4 294
UselessParentheses Useless parentheses. 4 318319

org/apache/maven/plugins/dependency/utils/filters/MarkerFileFilter.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 94
UselessParentheses Useless parentheses. 4 95
UselessParentheses Useless parentheses. 4 101

org/apache/maven/plugins/dependency/utils/filters/ResolveFileFilter.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 49

org/apache/maven/plugins/dependency/utils/markers/SourcesFileMarkerHandler.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 157160

org/apache/maven/plugins/dependency/utils/markers/UnpackFileMarkerHandler.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 6566

Suppressed Violations

Filename Rule message Suppression type Reason
org/apache/maven/plugins/dependency/fromConfiguration/CopyMojo.java Avoid unused private fields such as 'artifact'. annotation
org/apache/maven/plugins/dependency/fromConfiguration/UnpackMojo.java Avoid unused private fields such as 'artifact'. annotation