PMD Results
The following document contains the results of PMD 7.17.0.
Violations By Priority
Priority 2
org/apache/rat/config/exclusion/plexus/SelectorUtils.java
| Rule | Violation | Line |
|---|---|---|
| AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 378 |
| AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 482 |
| AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 636 |
Priority 3
org/apache/rat/analysis/UnknownLicense.java
| Rule | Violation | Line |
|---|---|---|
| UselessOverridingMethod | Overriding method merely calls super | 65 |
org/apache/rat/annotation/AbstractLicenseAppender.java
| Rule | Violation | Line |
|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 310–319 |
org/apache/rat/commandline/Arg.java
| Rule | Violation | Line |
|---|---|---|
| UnusedFormalParameter | Avoid unused method parameters such as 'context'. | 692 |
org/apache/rat/commandline/Converters.java
| Rule | Violation | Line |
|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 106–109 |
org/apache/rat/config/parameters/DescriptionBuilder.java
| Rule | Violation | Line |
|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 69–71 |
org/apache/rat/configuration/XMLConfigurationReader.java
| Rule | Violation | Line |
|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 278–280 |
org/apache/rat/document/ArchiveEntryName.java
| Rule | Violation | Line |
|---|---|---|
| UselessOverridingMethod | Overriding method merely calls super | 64 |
| UselessOverridingMethod | Overriding method merely calls super | 76 |
| UselessOverridingMethod | Overriding method merely calls super | 81 |
org/apache/rat/document/DocumentName.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 354–356 |
| EmptyCatchBlock | Avoid empty catch blocks | 367–369 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 629–632 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 650–657 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 653–655 |
org/apache/rat/report/claim/ClaimAggregator.java
| Rule | Violation | Line |
|---|---|---|
| UselessOverridingMethod | Overriding method merely calls super | 66 |
org/apache/rat/utils/ReportingSet.java
| Rule | Violation | Line |
|---|---|---|
| UselessQualifiedThis | Useless qualified this usage in the same class. | 117 |
Priority 4
org/apache/rat/Defaults.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Defaults': 'readConfigFiles' is already in scope | 99 |
org/apache/rat/DeprecationReporter.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'DeprecationReporter': 'consumer' is already in scope because it is declared in an enclosing type | 88 |
org/apache/rat/OptionCollection.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ArgumentType': 'values' is already in scope | 383 |
org/apache/rat/analysis/DocumentHeaderAnalyser.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'String': 'format' is already in scope | 60 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'String': 'format' is already in scope | 63 |
org/apache/rat/commandline/Arg.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'String': 'format' is already in scope | 378 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'String': 'format' is already in scope | 693 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Arg': 'values' is already in scope | 777 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Arg': 'values' is already in scope | 947 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Arg': 'values' is already in scope | 964 |
org/apache/rat/config/exclusion/ExclusionProcessor.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'String': 'format' is already in scope | 239 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'String': 'format' is already in scope | 286 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'String': 'format' is already in scope | 294 |
org/apache/rat/config/exclusion/StandardCollection.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'StandardCollection': 'values' is already in scope | 259 |
org/apache/rat/configuration/Format.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Format': 'values' is already in scope | 96 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Format': 'from' is already in scope | 110 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Format': 'from' is already in scope | 119 |
org/apache/rat/document/ArchiveEntryName.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'DocumentName': 'builder' is already in scope | 33 |
org/apache/rat/document/DocumentName.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'DocumentName': 'builder' is already in scope | 706 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'DocumentName': 'builder' is already in scope | 742 |
org/apache/rat/document/DocumentNameMatcher.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'String': 'format' is already in scope | 528 |
org/apache/rat/document/guesser/NoteGuesser.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'NoteGuesser': 'NOTE_FILE_NAMES' is already in scope because it is declared in an enclosing type | 82 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'NoteGuesser': 'NOTE_FILE_EXTENSIONS' is already in scope because it is declared in an enclosing type | 86 |
org/apache/rat/help/AbstractHelp.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'String': 'format' is already in scope | 91 |
org/apache/rat/license/ILicenseFamily.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ILicenseFamily': 'makeCategory' is already in scope | 123 |
org/apache/rat/report/xml/writer/XMLChar.java
| Rule | Violation | Line |
|---|---|---|
| UselessParentheses | Useless parentheses around `c >= 0x10000 && c <= 0x10FFFF`. | 733 |
| UselessParentheses | Useless parentheses around `l - 0xDC00`. | 744 |
| UselessParentheses | Useless parentheses around `0xD800 <= c && c <= 0xDBFF`. | 771 |
| UselessParentheses | Useless parentheses around `0xDC00 <= c && c <= 0xDFFF`. | 780 |
org/apache/rat/ui/ArgumentTracker.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ArgumentTracker': 'extractKey' is already in scope | 82 |
org/apache/rat/utils/CasedString.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'CasedString': 'CAMEL_JOINER' is already in scope because it is declared in an enclosing type | 248 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'CasedString': 'CAMEL_JOINER' is already in scope because it is declared in an enclosing type | 250 |
Files
org/apache/rat/Defaults.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Defaults': 'readConfigFiles' is already in scope | 4 | 99 |
org/apache/rat/DeprecationReporter.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'DeprecationReporter': 'consumer' is already in scope because it is declared in an enclosing type | 4 | 88 |
org/apache/rat/OptionCollection.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ArgumentType': 'values' is already in scope | 4 | 383 |
org/apache/rat/analysis/DocumentHeaderAnalyser.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'String': 'format' is already in scope | 4 | 60 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'String': 'format' is already in scope | 4 | 63 |
org/apache/rat/analysis/UnknownLicense.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessOverridingMethod | Overriding method merely calls super | 3 | 65 |
org/apache/rat/annotation/AbstractLicenseAppender.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 310–319 |
org/apache/rat/commandline/Arg.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'String': 'format' is already in scope | 4 | 378 |
| UnusedFormalParameter | Avoid unused method parameters such as 'context'. | 3 | 692 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'String': 'format' is already in scope | 4 | 693 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Arg': 'values' is already in scope | 4 | 777 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Arg': 'values' is already in scope | 4 | 947 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Arg': 'values' is already in scope | 4 | 964 |
org/apache/rat/commandline/Converters.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 106–109 |
org/apache/rat/config/exclusion/ExclusionProcessor.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'String': 'format' is already in scope | 4 | 239 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'String': 'format' is already in scope | 4 | 286 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'String': 'format' is already in scope | 4 | 294 |
org/apache/rat/config/exclusion/StandardCollection.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'StandardCollection': 'values' is already in scope | 4 | 259 |
org/apache/rat/config/exclusion/plexus/SelectorUtils.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 2 | 378 |
| AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 2 | 482 |
| AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 2 | 636 |
org/apache/rat/config/parameters/DescriptionBuilder.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 69–71 |
org/apache/rat/configuration/Format.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Format': 'values' is already in scope | 4 | 96 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Format': 'from' is already in scope | 4 | 110 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Format': 'from' is already in scope | 4 | 119 |
org/apache/rat/configuration/XMLConfigurationReader.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 278–280 |
org/apache/rat/document/ArchiveEntryName.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'DocumentName': 'builder' is already in scope | 4 | 33 |
| UselessOverridingMethod | Overriding method merely calls super | 3 | 64 |
| UselessOverridingMethod | Overriding method merely calls super | 3 | 76 |
| UselessOverridingMethod | Overriding method merely calls super | 3 | 81 |
org/apache/rat/document/DocumentName.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 354–356 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 367–369 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 629–632 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 650–657 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 653–655 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'DocumentName': 'builder' is already in scope | 4 | 706 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'DocumentName': 'builder' is already in scope | 4 | 742 |
org/apache/rat/document/DocumentNameMatcher.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'String': 'format' is already in scope | 4 | 528 |
org/apache/rat/document/guesser/NoteGuesser.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'NoteGuesser': 'NOTE_FILE_NAMES' is already in scope because it is declared in an enclosing type | 4 | 82 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'NoteGuesser': 'NOTE_FILE_EXTENSIONS' is already in scope because it is declared in an enclosing type | 4 | 86 |
org/apache/rat/help/AbstractHelp.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'String': 'format' is already in scope | 4 | 91 |
org/apache/rat/license/ILicenseFamily.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ILicenseFamily': 'makeCategory' is already in scope | 4 | 123 |
org/apache/rat/report/claim/ClaimAggregator.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessOverridingMethod | Overriding method merely calls super | 3 | 66 |
org/apache/rat/report/xml/writer/XMLChar.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessParentheses | Useless parentheses around `c >= 0x10000 && c <= 0x10FFFF`. | 4 | 733 |
| UselessParentheses | Useless parentheses around `l - 0xDC00`. | 4 | 744 |
| UselessParentheses | Useless parentheses around `0xD800 <= c && c <= 0xDBFF`. | 4 | 771 |
| UselessParentheses | Useless parentheses around `0xDC00 <= c && c <= 0xDFFF`. | 4 | 780 |
org/apache/rat/ui/ArgumentTracker.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ArgumentTracker': 'extractKey' is already in scope | 4 | 82 |
org/apache/rat/utils/CasedString.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'CasedString': 'CAMEL_JOINER' is already in scope because it is declared in an enclosing type | 4 | 248 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'CasedString': 'CAMEL_JOINER' is already in scope because it is declared in an enclosing type | 4 | 250 |
org/apache/rat/utils/ReportingSet.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessQualifiedThis | Useless qualified this usage in the same class. | 3 | 117 |
Apache RAT
Maven