PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 3

org/apache/rat/analysis/HeaderCheckWorker.java
Rule Violation Line
EmptyControlStatement Empty while statement 107109
org/apache/rat/analysis/matchers/SPDXMatcherFactory.java
Rule Violation Line
UnnecessarySemicolon Unnecessary semicolon 70
org/apache/rat/annotation/AbstractLicenseAppender.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 241249
org/apache/rat/configuration/builders/ChildContainerBuilder.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'in': resource specifications are implicitly final 61
org/apache/rat/document/impl/guesser/BinaryGuesser.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 8688
EmptyCatchBlock Avoid empty catch blocks 130132
org/apache/rat/license/ILicenseFamilyBuilder.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'getFamilyName': an anonymous class cannot be extended 6870
org/apache/rat/utils/Log.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on enum 'Level': the enum is declared in an interface type 2950
UnnecessarySemicolon Unnecessary semicolon 50
org/apache/rat/utils/ReportingSet.java
Rule Violation Line
UselessQualifiedThis Useless qualified this usage in the same class. 131

Priority 4

org/apache/rat/analysis/DefaultAnalyserFactory.java
Rule Violation Line
UnnecessaryImport Unused import 'org.apache.rat.utils.Log.Level' 33
org/apache/rat/analysis/matchers/SPDXMatcherFactory.java
Rule Violation Line
UselessParentheses Useless parentheses. 108
org/apache/rat/annotation/AbstractLicenseAppender.java
Rule Violation Line
UselessParentheses Useless parentheses. 541
UselessParentheses Useless parentheses. 548
UselessParentheses Useless parentheses. 548
UselessParentheses Useless parentheses. 557
UselessParentheses Useless parentheses. 558
UselessParentheses Useless parentheses. 568
UselessParentheses Useless parentheses. 597
UselessParentheses Useless parentheses. 613
UselessParentheses Useless parentheses. 613
org/apache/rat/license/LicenseFamilySetFactory.java
Rule Violation Line
UselessParentheses Useless parentheses. 118
org/apache/rat/license/LicenseSetFactory.java
Rule Violation Line
UselessParentheses Useless parentheses. 221
org/apache/rat/report/claim/impl/xml/SimpleXmlClaimReporter.java
Rule Violation Line
UnnecessaryImport Unused import 'org.apache.rat.report.xml.writer.impl.base.XmlWriter' 27

Files

org/apache/rat/analysis/DefaultAnalyserFactory.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.apache.rat.utils.Log.Level' 4 33

org/apache/rat/analysis/HeaderCheckWorker.java

Rule Violation Priority Line
EmptyControlStatement Empty while statement 3 107109

org/apache/rat/analysis/matchers/SPDXMatcherFactory.java

Rule Violation Priority Line
UnnecessarySemicolon Unnecessary semicolon 3 70
UselessParentheses Useless parentheses. 4 108

org/apache/rat/annotation/AbstractLicenseAppender.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 241249
UselessParentheses Useless parentheses. 4 541
UselessParentheses Useless parentheses. 4 548
UselessParentheses Useless parentheses. 4 548
UselessParentheses Useless parentheses. 4 557
UselessParentheses Useless parentheses. 4 558
UselessParentheses Useless parentheses. 4 568
UselessParentheses Useless parentheses. 4 597
UselessParentheses Useless parentheses. 4 613
UselessParentheses Useless parentheses. 4 613

org/apache/rat/configuration/builders/ChildContainerBuilder.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'in': resource specifications are implicitly final 3 61

org/apache/rat/document/impl/guesser/BinaryGuesser.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 8688
EmptyCatchBlock Avoid empty catch blocks 3 130132

org/apache/rat/license/ILicenseFamilyBuilder.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'getFamilyName': an anonymous class cannot be extended 3 6870

org/apache/rat/license/LicenseFamilySetFactory.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 118

org/apache/rat/license/LicenseSetFactory.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 221

org/apache/rat/report/claim/impl/xml/SimpleXmlClaimReporter.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.apache.rat.report.xml.writer.impl.base.XmlWriter' 4 27

org/apache/rat/utils/Log.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on enum 'Level': the enum is declared in an interface type 3 2950
UnnecessarySemicolon Unnecessary semicolon 3 50

org/apache/rat/utils/ReportingSet.java

Rule Violation Priority Line
UselessQualifiedThis Useless qualified this usage in the same class. 3 131