Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.49.0.

Violations By Priority

Priority 2

org/codehaus/mojo/versions/MinimalMavenBuildVersionFinder.java

Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 147

org/codehaus/mojo/versions/api/PomHelper.java

Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 1579

org/codehaus/mojo/versions/api/PropertyVersions.java

Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 223

Priority 3

org/codehaus/mojo/versions/AbstractVersionsDependencyUpdaterMojo.java

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

org/codehaus/mojo/versions/AbstractVersionsDisplayMojo.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 124127
CollapsibleIfStatements These nested if statements could be combined 141144

org/codehaus/mojo/versions/CompareDependenciesMojo.java

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

org/codehaus/mojo/versions/DisplayPluginUpdatesMojo.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 263275
EmptyCatchBlock Avoid empty catch blocks 282285
EmptyCatchBlock Avoid empty catch blocks 290293
EmptyCatchBlock Avoid empty catch blocks 333336
EmptyCatchBlock Avoid empty catch blocks 353356
EmptyCatchBlock Avoid empty catch blocks 359362
EmptyCatchBlock Avoid empty catch blocks 507510
EmptyCatchBlock Avoid empty catch blocks 532535
EmptyCatchBlock Avoid empty catch blocks 766769
CollapsibleIfStatements These nested if statements could be combined 928935
EmptyCatchBlock Avoid empty catch blocks 996999
EmptyCatchBlock Avoid empty catch blocks 10161019
EmptyCatchBlock Avoid empty catch blocks 10221025
EmptyCatchBlock Avoid empty catch blocks 10741078
EmptyCatchBlock Avoid empty catch blocks 11211124
EmptyCatchBlock Avoid empty catch blocks 11331136
EmptyCatchBlock Avoid empty catch blocks 11501155
UnusedFormalParameter Avoid unused method parameters such as 'settings'. 1343
UnusedFormalParameter Avoid unused method parameters such as 'localRepository'. 1344
EmptyCatchBlock Avoid empty catch blocks 15011504
EmptyCatchBlock Avoid empty catch blocks 15301533
EmptyCatchBlock Avoid empty catch blocks 15621565
EmptyCatchBlock Avoid empty catch blocks 15851588
EmptyCatchBlock Avoid empty catch blocks 16091612
EmptyCatchBlock Avoid empty catch blocks 16221625
EmptyCatchBlock Avoid empty catch blocks 16321635
EmptyCatchBlock Avoid empty catch blocks 16421645
CollapsibleIfStatements These nested if statements could be combined 16811684
EmptyCatchBlock Avoid empty catch blocks 17861789
EmptyCatchBlock Avoid empty catch blocks 18061809
EmptyCatchBlock Avoid empty catch blocks 18121815

org/codehaus/mojo/versions/LockSnapshotsMojo.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 129133
CollapsibleIfStatements These nested if statements could be combined 163167

org/codehaus/mojo/versions/SetMojo.java

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

org/codehaus/mojo/versions/UseLatestReleasesMojo.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 199206
CollapsibleIfStatements These nested if statements could be combined 202205

org/codehaus/mojo/versions/UseLatestSnapshotsMojo.java

Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'selectedVersion'. 182
CollapsibleIfStatements These nested if statements could be combined 225232

org/codehaus/mojo/versions/UseLatestVersionsMojo.java

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

org/codehaus/mojo/versions/UseReactorMojo.java

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

org/codehaus/mojo/versions/api/DefaultVersionsHelper.java

Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'id'. 311
CollapsibleIfStatements These nested if statements could be combined 431442

org/codehaus/mojo/versions/api/PropertyVersions.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 186189
EmptyCatchBlock Avoid empty catch blocks 215218

org/codehaus/mojo/versions/change/ParentVersionChanger.java

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

org/codehaus/mojo/versions/change/ProjectVersionChanger.java

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

org/codehaus/mojo/versions/ordering/ComparableVersion.java

Rule Violation Line
BigIntegerInstantiation Dont create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) 69

org/codehaus/mojo/versions/ordering/MercuryVersionComparator.java

Rule Violation Line
BigIntegerInstantiation Dont create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) 39

org/codehaus/mojo/versions/ordering/NumericVersionComparator.java

Rule Violation Line
BigIntegerInstantiation Dont create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) 40
BigIntegerInstantiation Dont create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) 42

org/codehaus/mojo/versions/reporting/AbstractVersionsReportRenderer.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1469

org/codehaus/mojo/versions/reporting/OverviewStats.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1152

org/codehaus/mojo/versions/reporting/PluginOverviewStats.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 196

org/codehaus/mojo/versions/reporting/PluginUpdatesReportRenderer.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1369
UnusedFormalParameter Avoid unused method parameters such as 'artifact'. 234

org/codehaus/mojo/versions/reporting/PropertyUpdatesReportRenderer.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1436

org/codehaus/mojo/versions/reporting/VersionsReportRendererBase.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 101104
EmptyCatchBlock Avoid empty catch blocks 114117
EmptyCatchBlock Avoid empty catch blocks 126129
EmptyCatchBlock Avoid empty catch blocks 139142

org/codehaus/mojo/versions/utils/SegmentUtils.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 195

org/codehaus/mojo/versions/xml/DependencyUpdatesXmlReportRenderer.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1146

org/codehaus/mojo/versions/xml/PluginUpdatesXmlReportRenderer.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1148

Priority 4

org/codehaus/mojo/versions/AbstractVersionsDependencyUpdaterMojo.java

Rule Violation Line
UselessParentheses Useless parentheses. 481

org/codehaus/mojo/versions/DisplayPluginUpdatesMojo.java

Rule Violation Line
UselessParentheses Useless parentheses. 567568
UselessParentheses Useless parentheses. 568

org/codehaus/mojo/versions/SetMojo.java

Rule Violation Line
UselessParentheses Useless parentheses. 515516

org/codehaus/mojo/versions/UpdatePropertiesMojo.java

Rule Violation Line
UselessParentheses Useless parentheses. 203

org/codehaus/mojo/versions/api/DefaultVersionsHelper.java

Rule Violation Line
UselessParentheses Useless parentheses. 382
UselessParentheses Useless parentheses. 571
UselessParentheses Useless parentheses. 594

org/codehaus/mojo/versions/api/PropertyVersions.java

Rule Violation Line
UselessParentheses Useless parentheses. 454

org/codehaus/mojo/versions/api/PropertyVersionsBuilder.java

Rule Violation Line
UselessParentheses Useless parentheses. 244

org/codehaus/mojo/versions/ordering/AbstractVersionComparator.java

Rule Violation Line
UselessParentheses Useless parentheses. 76

org/codehaus/mojo/versions/ordering/ComparableVersion.java

Rule Violation Line
UselessParentheses Useless parentheses. 184
UselessParentheses Useless parentheses. 251
UselessParentheses Useless parentheses. 385
UselessParentheses Useless parentheses. 440
UselessParentheses Useless parentheses. 450

org/codehaus/mojo/versions/reporting/PropertyUpdatesReportRenderer.java

Rule Violation Line
UselessParentheses Useless parentheses. 277

org/codehaus/mojo/versions/reporting/VersionsReportRendererBase.java

Rule Violation Line
UselessParentheses Useless parentheses. 91
UselessParentheses Useless parentheses. 92

org/codehaus/mojo/versions/rewriting/ModifiedPomXMLEventReader.java

Rule Violation Line
UselessParentheses Useless parentheses. 422

Files

org/codehaus/mojo/versions/AbstractVersionsDependencyUpdaterMojo.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 475482
UselessParentheses Useless parentheses. 4 481

org/codehaus/mojo/versions/AbstractVersionsDisplayMojo.java

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

org/codehaus/mojo/versions/CompareDependenciesMojo.java

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

org/codehaus/mojo/versions/DisplayPluginUpdatesMojo.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 263275
EmptyCatchBlock Avoid empty catch blocks 3 282285
EmptyCatchBlock Avoid empty catch blocks 3 290293
EmptyCatchBlock Avoid empty catch blocks 3 333336
EmptyCatchBlock Avoid empty catch blocks 3 353356
EmptyCatchBlock Avoid empty catch blocks 3 359362
EmptyCatchBlock Avoid empty catch blocks 3 507510
EmptyCatchBlock Avoid empty catch blocks 3 532535
UselessParentheses Useless parentheses. 4 567568
UselessParentheses Useless parentheses. 4 568
EmptyCatchBlock Avoid empty catch blocks 3 766769
CollapsibleIfStatements These nested if statements could be combined 3 928935
EmptyCatchBlock Avoid empty catch blocks 3 996999
EmptyCatchBlock Avoid empty catch blocks 3 10161019
EmptyCatchBlock Avoid empty catch blocks 3 10221025
EmptyCatchBlock Avoid empty catch blocks 3 10741078
EmptyCatchBlock Avoid empty catch blocks 3 11211124
EmptyCatchBlock Avoid empty catch blocks 3 11331136
EmptyCatchBlock Avoid empty catch blocks 3 11501155
UnusedFormalParameter Avoid unused method parameters such as 'settings'. 3 1343
UnusedFormalParameter Avoid unused method parameters such as 'localRepository'. 3 1344
EmptyCatchBlock Avoid empty catch blocks 3 15011504
EmptyCatchBlock Avoid empty catch blocks 3 15301533
EmptyCatchBlock Avoid empty catch blocks 3 15621565
EmptyCatchBlock Avoid empty catch blocks 3 15851588
EmptyCatchBlock Avoid empty catch blocks 3 16091612
EmptyCatchBlock Avoid empty catch blocks 3 16221625
EmptyCatchBlock Avoid empty catch blocks 3 16321635
EmptyCatchBlock Avoid empty catch blocks 3 16421645
CollapsibleIfStatements These nested if statements could be combined 3 16811684
EmptyCatchBlock Avoid empty catch blocks 3 17861789
EmptyCatchBlock Avoid empty catch blocks 3 18061809
EmptyCatchBlock Avoid empty catch blocks 3 18121815

org/codehaus/mojo/versions/LockSnapshotsMojo.java

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

org/codehaus/mojo/versions/MinimalMavenBuildVersionFinder.java

Rule Violation Priority Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 147

org/codehaus/mojo/versions/SetMojo.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 515516
CollapsibleIfStatements These nested if statements could be combined 3 601605

org/codehaus/mojo/versions/UpdatePropertiesMojo.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 203

org/codehaus/mojo/versions/UseLatestReleasesMojo.java

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

org/codehaus/mojo/versions/UseLatestSnapshotsMojo.java

Rule Violation Priority Line
UnusedLocalVariable Avoid unused local variables such as 'selectedVersion'. 3 182
CollapsibleIfStatements These nested if statements could be combined 3 225232

org/codehaus/mojo/versions/UseLatestVersionsMojo.java

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

org/codehaus/mojo/versions/UseReactorMojo.java

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

org/codehaus/mojo/versions/api/DefaultVersionsHelper.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'id'. 3 311
UselessParentheses Useless parentheses. 4 382
CollapsibleIfStatements These nested if statements could be combined 3 431442
UselessParentheses Useless parentheses. 4 571
UselessParentheses Useless parentheses. 4 594

org/codehaus/mojo/versions/api/PomHelper.java

Rule Violation Priority Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 1579

org/codehaus/mojo/versions/api/PropertyVersions.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 186189
EmptyCatchBlock Avoid empty catch blocks 3 215218
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 223
UselessParentheses Useless parentheses. 4 454

org/codehaus/mojo/versions/api/PropertyVersionsBuilder.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 244

org/codehaus/mojo/versions/change/ParentVersionChanger.java

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

org/codehaus/mojo/versions/change/ProjectVersionChanger.java

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

org/codehaus/mojo/versions/ordering/AbstractVersionComparator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 76

org/codehaus/mojo/versions/ordering/ComparableVersion.java

Rule Violation Priority Line
BigIntegerInstantiation Dont create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) 3 69
UselessParentheses Useless parentheses. 4 184
UselessParentheses Useless parentheses. 4 251
UselessParentheses Useless parentheses. 4 385
UselessParentheses Useless parentheses. 4 440
UselessParentheses Useless parentheses. 4 450

org/codehaus/mojo/versions/ordering/MercuryVersionComparator.java

Rule Violation Priority Line
BigIntegerInstantiation Dont create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) 3 39

org/codehaus/mojo/versions/ordering/NumericVersionComparator.java

Rule Violation Priority Line
BigIntegerInstantiation Dont create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) 3 40
BigIntegerInstantiation Dont create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) 3 42

org/codehaus/mojo/versions/reporting/AbstractVersionsReportRenderer.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1469

org/codehaus/mojo/versions/reporting/OverviewStats.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1152

org/codehaus/mojo/versions/reporting/PluginOverviewStats.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 196

org/codehaus/mojo/versions/reporting/PluginUpdatesReportRenderer.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1369
UnusedFormalParameter Avoid unused method parameters such as 'artifact'. 3 234

org/codehaus/mojo/versions/reporting/PropertyUpdatesReportRenderer.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1436
UselessParentheses Useless parentheses. 4 277

org/codehaus/mojo/versions/reporting/VersionsReportRendererBase.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 91
UselessParentheses Useless parentheses. 4 92
EmptyCatchBlock Avoid empty catch blocks 3 101104
EmptyCatchBlock Avoid empty catch blocks 3 114117
EmptyCatchBlock Avoid empty catch blocks 3 126129
EmptyCatchBlock Avoid empty catch blocks 3 139142

org/codehaus/mojo/versions/rewriting/ModifiedPomXMLEventReader.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 422

org/codehaus/mojo/versions/utils/SegmentUtils.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 195

org/codehaus/mojo/versions/xml/DependencyUpdatesXmlReportRenderer.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1146

org/codehaus/mojo/versions/xml/PluginUpdatesXmlReportRenderer.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1148