PMD 结果
以下文档包含PMD 6.42.0 的结果。
优先级违规
优先级 3
org/apache/maven/plugins/dependency/GetMojo.java
| 规则 | 违反 | 线 | 
|---|---|---|
| 未使用的私有字段 | 避免使用未使用的私有字段,例如“groupId”。 | 95 | 
| 未使用的私有字段 | 避免使用未使用的私有字段,例如“artifactId”。 | 101 | 
| 未使用的私有字段 | 避免未使用的私有字段,例如“版本”。 | 107 | 
| 未使用的私有字段 | 避免未使用的私有字段,例如“分类器”。 | 115 | 
| 未使用的私有字段 | 避免未使用的私有字段,例如“包装”。 | 121 | 
org/apache/maven/plugins/dependency/ListClassesMojo.java
| 规则 | 违反 | 线 | 
|---|---|---|
| 未使用的私有字段 | 避免使用未使用的私有字段,例如“groupId”。 | 99 | 
| 未使用的私有字段 | 避免使用未使用的私有字段,例如“artifactId”。 | 105 | 
| 未使用的私有字段 | 避免未使用的私有字段,例如“版本”。 | 111 | 
| 未使用的私有字段 | 避免未使用的私有字段,例如“分类器”。 | 119 | 
| 未使用的私有字段 | 避免未使用的私有字段,例如“包装”。 | 125 | 
| 未使用的私有字段 | 避免未使用的私有字段,例如“skip”。 | 153 | 
org/apache/maven/plugins/dependency/fromDependencies/CopyDependenciesMojo.java
| 规则 | 违反 | 线 | 
|---|---|---|
| 未使用的私有字段 | 避免未使用的私有字段,例如“repositoryLayouts”。 | 75 | 
org/apache/maven/plugins/dependency/resolvers/ResolveDependenciesMojo.java
| 规则 | 违反 | 线 | 
|---|---|---|
| 可折叠If语句 | 这些嵌套的 if 语句可以组合 | 296 – 316 | 
org/apache/maven/plugins/dependency/tree/TreeMojo.java
| 规则 | 违反 | 线 | 
|---|---|---|
| 未使用的私有字段 | 避免使用未使用的私有字段,例如“reactorProjects”。 | 99 | 
| 未使用的私有字段 | 避免使用未使用的私有字段,例如“repositorySystem”。 | 102 | 
| 未使用的私有字段 | 避免未使用的私有字段,例如“repoSession”。 | 111 | 
| 未使用的私有字段 | 避免使用未使用的私有字段,例如“projectRepos”。 | 117 | 
org/apache/maven/plugins/dependency/utils/markers/SourcesFileMarkerHandler.java
| 规则 | 违反 | 线 | 
|---|---|---|
| 可折叠If语句 | 这些嵌套的 if 语句可以组合 | 157 – 160 | 
优先级 4
org/apache/maven/plugins/dependency/utils/filters/DestFileFilter.java
| 规则 | 违反 | 线 | 
|---|---|---|
| 无用的括号 | 无用的括号。 | 275 | 
| 无用的括号 | 无用的括号。 | 276 | 
| 无用的括号 | 无用的括号。 | 299 – 300 | 
org/apache/maven/plugins/dependency/utils/filters/MarkerFileFilter.java
| 规则 | 违反 | 线 | 
|---|---|---|
| 无用的括号 | 无用的括号。 | 94 | 
| 无用的括号 | 无用的括号。 | 95 | 
| 无用的括号 | 无用的括号。 | 101 | 
org/apache/maven/plugins/dependency/utils/filters/ResolveFileFilter.java
| 规则 | 违反 | 线 | 
|---|---|---|
| 无用的括号 | 无用的括号。 | 49 | 
org/apache/maven/plugins/dependency/utils/markers/UnpackFileMarkerHandler.java
| 规则 | 违反 | 线 | 
|---|---|---|
| 无用的括号 | 无用的括号。 | 65 – 66 | 
文件
org/apache/maven/plugins/dependency/GetMojo.java
| 规则 | 违反 | 优先 | 线 | 
|---|---|---|---|
| 未使用的私有字段 | 避免使用未使用的私有字段,例如“groupId”。 | 3 | 95 | 
| 未使用的私有字段 | 避免使用未使用的私有字段,例如“artifactId”。 | 3 | 101 | 
| 未使用的私有字段 | 避免未使用的私有字段,例如“版本”。 | 3 | 107 | 
| 未使用的私有字段 | 避免未使用的私有字段,例如“分类器”。 | 3 | 115 | 
| 未使用的私有字段 | 避免未使用的私有字段,例如“包装”。 | 3 | 121 | 
org/apache/maven/plugins/dependency/ListClassesMojo.java
| 规则 | 违反 | 优先 | 线 | 
|---|---|---|---|
| 未使用的私有字段 | 避免使用未使用的私有字段,例如“groupId”。 | 3 | 99 | 
| 未使用的私有字段 | 避免使用未使用的私有字段,例如“artifactId”。 | 3 | 105 | 
| 未使用的私有字段 | 避免未使用的私有字段,例如“版本”。 | 3 | 111 | 
| 未使用的私有字段 | 避免未使用的私有字段,例如“分类器”。 | 3 | 119 | 
| 未使用的私有字段 | 避免未使用的私有字段,例如“包装”。 | 3 | 125 | 
| 未使用的私有字段 | 避免未使用的私有字段,例如“skip”。 | 3 | 153 | 
org/apache/maven/plugins/dependency/fromDependencies/CopyDependenciesMojo.java
| 规则 | 违反 | 优先 | 线 | 
|---|---|---|---|
| 未使用的私有字段 | 避免未使用的私有字段,例如“repositoryLayouts”。 | 3 | 75 | 
org/apache/maven/plugins/dependency/resolvers/ResolveDependenciesMojo.java
| 规则 | 违反 | 优先 | 线 | 
|---|---|---|---|
| 可折叠If语句 | 这些嵌套的 if 语句可以组合 | 3 | 296 – 316 | 
org/apache/maven/plugins/dependency/tree/TreeMojo.java
| 规则 | 违反 | 优先 | 线 | 
|---|---|---|---|
| 未使用的私有字段 | 避免使用未使用的私有字段,例如“reactorProjects”。 | 3 | 99 | 
| 未使用的私有字段 | 避免使用未使用的私有字段,例如“repositorySystem”。 | 3 | 102 | 
| 未使用的私有字段 | 避免未使用的私有字段,例如“repoSession”。 | 3 | 111 | 
| 未使用的私有字段 | 避免使用未使用的私有字段,例如“projectRepos”。 | 3 | 117 | 
org/apache/maven/plugins/dependency/utils/filters/DestFileFilter.java
| 规则 | 违反 | 优先 | 线 | 
|---|---|---|---|
| 无用的括号 | 无用的括号。 | 4 | 275 | 
| 无用的括号 | 无用的括号。 | 4 | 276 | 
| 无用的括号 | 无用的括号。 | 4 | 299 – 300 | 
org/apache/maven/plugins/dependency/utils/filters/MarkerFileFilter.java
| 规则 | 违反 | 优先 | 线 | 
|---|---|---|---|
| 无用的括号 | 无用的括号。 | 4 | 94 | 
| 无用的括号 | 无用的括号。 | 4 | 95 | 
| 无用的括号 | 无用的括号。 | 4 | 101 | 
org/apache/maven/plugins/dependency/utils/filters/ResolveFileFilter.java
| 规则 | 违反 | 优先 | 线 | 
|---|---|---|---|
| 无用的括号 | 无用的括号。 | 4 | 49 | 
org/apache/maven/plugins/dependency/utils/markers/SourcesFileMarkerHandler.java
| 规则 | 违反 | 优先 | 线 | 
|---|---|---|---|
| 可折叠If语句 | 这些嵌套的 if 语句可以组合 | 3 | 157 – 160 | 
org/apache/maven/plugins/dependency/utils/markers/UnpackFileMarkerHandler.java
| 规则 | 违反 | 优先 | 线 | 
|---|---|---|---|
| 无用的括号 | 无用的括号。 | 4 | 65 – 66 | 


