PMD Results

The following document contains the results of PMD 7.17.0.

Violations By Priority

Priority 3

org/apache/maven/doxia/module/markdown/MarkdownParser.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 354357
CollapsibleIfStatements This if statement could be combined with its parent 366369

org/apache/maven/doxia/module/markdown/MarkdownSink.java

Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'writer'. 352
EmptyControlStatement Empty else statement 10741076
CollapsibleIfStatements This if statement could be combined with its parent 13211323

Priority 4

org/apache/maven/doxia/module/markdown/MarkdownParser.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'HtmlMarkup': 'DIV' is already in scope because it is inherited by an enclosing type 354
UnnecessaryFullyQualifiedName Unnecessary qualifier 'HtmlMarkup': 'DIV' is already in scope because it is inherited by an enclosing type 366

org/apache/maven/doxia/module/markdown/MarkdownSink.java

Rule Violation Line
UselessParentheses Useless parentheses around `isInListItem() && (removedContext == ElementCon...`. 412413
UselessParentheses Useless parentheses around `isInListItem() && (newContext == ElementContext...`. 428429
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Sink': 'JUSTIFY_DEFAULT' is already in scope because it is inherited by an enclosing type 889
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Sink': 'JUSTIFY_RIGHT' is already in scope because it is inherited by an enclosing type 896
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Sink': 'JUSTIFY_CENTER' is already in scope because it is inherited by an enclosing type 899
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Sink': 'JUSTIFY_LEFT' is already in scope because it is inherited by an enclosing type 902
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Sink': 'JUSTIFY_LEFT' is already in scope because it is inherited by an enclosing type 924
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Sink': 'JUSTIFY_RIGHT' is already in scope because it is inherited by an enclosing type 926
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Sink': 'JUSTIFY_CENTER' is already in scope because it is inherited by an enclosing type 928
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Sink': 'JUSTIFY_DEFAULT' is already in scope because it is inherited by an enclosing type 940

Files

org/apache/maven/doxia/module/markdown/MarkdownParser.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 354357
UnnecessaryFullyQualifiedName Unnecessary qualifier 'HtmlMarkup': 'DIV' is already in scope because it is inherited by an enclosing type 4 354
CollapsibleIfStatements This if statement could be combined with its parent 3 366369
UnnecessaryFullyQualifiedName Unnecessary qualifier 'HtmlMarkup': 'DIV' is already in scope because it is inherited by an enclosing type 4 366

org/apache/maven/doxia/module/markdown/MarkdownSink.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'writer'. 3 352
UselessParentheses Useless parentheses around `isInListItem() && (removedContext == ElementCon...`. 4 412413
UselessParentheses Useless parentheses around `isInListItem() && (newContext == ElementContext...`. 4 428429
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Sink': 'JUSTIFY_DEFAULT' is already in scope because it is inherited by an enclosing type 4 889
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Sink': 'JUSTIFY_RIGHT' is already in scope because it is inherited by an enclosing type 4 896
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Sink': 'JUSTIFY_CENTER' is already in scope because it is inherited by an enclosing type 4 899
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Sink': 'JUSTIFY_LEFT' is already in scope because it is inherited by an enclosing type 4 902
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Sink': 'JUSTIFY_LEFT' is already in scope because it is inherited by an enclosing type 4 924
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Sink': 'JUSTIFY_RIGHT' is already in scope because it is inherited by an enclosing type 4 926
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Sink': 'JUSTIFY_CENTER' is already in scope because it is inherited by an enclosing type 4 928
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Sink': 'JUSTIFY_DEFAULT' is already in scope because it is inherited by an enclosing type 4 940
EmptyControlStatement Empty else statement 3 10741076
CollapsibleIfStatements This if statement could be combined with its parent 3 13211323