PMD Results

The following document contains the results of PMD 6.42.0.

Violations By Priority

Priority 3

org/apache/maven/plugins/enforcer/BanDuplicatePomDependencyVersions.java

Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'helper'. 99

org/apache/maven/plugins/enforcer/ReactorModuleConvergence.java

Rule Violation Line
EmptyIfStmt Avoid empty if statements 236238
CollapsibleIfStatements These nested if statements could be combined 253260
CollapsibleIfStatements These nested if statements could be combined 396399

org/apache/maven/plugins/enforcer/RequireActiveProfile.java

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

org/apache/maven/plugins/enforcer/RequireFilesDontExist.java

Rule Violation Line
SimplifiedTernary Ternary operators that can be simplified with || or && 34

org/apache/maven/plugins/enforcer/RequireFilesExist.java

Rule Violation Line
SimplifiedTernary Ternary operators that can be simplified with || or && 35

org/apache/maven/plugins/enforcer/RequireNoRepositories.java

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

org/apache/maven/plugins/enforcer/RequirePluginVersions.java

Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'model'. 989
UnusedFormalParameter Avoid unused method parameters such as 'model'. 1002
UnusedFormalParameter Avoid unused method parameters such as 'model'. 1017

org/apache/maven/plugins/enforcer/utils/ArtifactMatcher.java

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

org/apache/maven/plugins/enforcer/utils/DependencyVersionMap.java

Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'log'. 43

org/apache/maven/plugins/enforcer/utils/EnforcerRuleUtils.java

Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'theFactory'. 70

org/apache/maven/plugins/enforcer/utils/NormalizeLineSeparatorReader.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 7275
CollapsibleIfStatements These nested if statements could be combined 7982

Priority 4

org/apache/maven/plugins/enforcer/AbstractVersionEnforcer.java

Rule Violation Line
UselessParentheses Useless parentheses. 134

org/apache/maven/plugins/enforcer/BanTransitiveDependencies.java

Rule Violation Line
UselessParentheses Useless parentheses. 110

org/apache/maven/plugins/enforcer/RequireFilesSize.java

Rule Violation Line
UselessParentheses Useless parentheses. 111
UselessParentheses Useless parentheses. 116
UselessParentheses Useless parentheses. 126
UselessParentheses Useless parentheses. 127
UselessParentheses Useless parentheses. 134

org/apache/maven/plugins/enforcer/RequireOS.java

Rule Violation Line
UselessParentheses Useless parentheses. 147154
UselessParentheses Useless parentheses. 216
UselessParentheses Useless parentheses. 287

Files

org/apache/maven/plugins/enforcer/AbstractVersionEnforcer.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 134

org/apache/maven/plugins/enforcer/BanDuplicatePomDependencyVersions.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'helper'. 3 99

org/apache/maven/plugins/enforcer/BanTransitiveDependencies.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 110

org/apache/maven/plugins/enforcer/ReactorModuleConvergence.java

Rule Violation Priority Line
EmptyIfStmt Avoid empty if statements 3 236238
CollapsibleIfStatements These nested if statements could be combined 3 253260
CollapsibleIfStatements These nested if statements could be combined 3 396399

org/apache/maven/plugins/enforcer/RequireActiveProfile.java

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

org/apache/maven/plugins/enforcer/RequireFilesDontExist.java

Rule Violation Priority Line
SimplifiedTernary Ternary operators that can be simplified with || or && 3 34

org/apache/maven/plugins/enforcer/RequireFilesExist.java

Rule Violation Priority Line
SimplifiedTernary Ternary operators that can be simplified with || or && 3 35

org/apache/maven/plugins/enforcer/RequireFilesSize.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 111
UselessParentheses Useless parentheses. 4 116
UselessParentheses Useless parentheses. 4 126
UselessParentheses Useless parentheses. 4 127
UselessParentheses Useless parentheses. 4 134

org/apache/maven/plugins/enforcer/RequireNoRepositories.java

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

org/apache/maven/plugins/enforcer/RequireOS.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 147154
UselessParentheses Useless parentheses. 4 216
UselessParentheses Useless parentheses. 4 287

org/apache/maven/plugins/enforcer/RequirePluginVersions.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'model'. 3 989
UnusedFormalParameter Avoid unused method parameters such as 'model'. 3 1002
UnusedFormalParameter Avoid unused method parameters such as 'model'. 3 1017

org/apache/maven/plugins/enforcer/utils/ArtifactMatcher.java

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

org/apache/maven/plugins/enforcer/utils/DependencyVersionMap.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'log'. 3 43

org/apache/maven/plugins/enforcer/utils/EnforcerRuleUtils.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'theFactory'. 3 70

org/apache/maven/plugins/enforcer/utils/NormalizeLineSeparatorReader.java

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