PMD Results

The following document contains the results of PMD

Files

org/apache/myfaces/maven/plugin/AptMojo.java

Violation Line
The class 'AptMojo' has a Cyclomatic Complexity of 2 (Highest = 5). 42 - 170
Local variable could be declared final 114
Local variable could be declared final 116
Private field could be made final. It is only initialized in the declaration or constructor. 132
Private field could be made final. It is only initialized in the declaration or constructor. 139
The method 'getSourceInclusionScanner' has a Cyclomatic Complexity of 5. 141 - 169
Local variable could be declared final 158
Local variable could be declared final 160
Avoid instantiating new objects inside loops 161

org/apache/myfaces/maven/plugin/TestAptMojo.java

Violation Line
The class 'TestAptMojo' has a Cyclomatic Complexity of 2 (Highest = 5). 41 - 184
Private field could be made final. It is only initialized in the declaration or constructor. 98
Private field could be made final. It is only initialized in the declaration or constructor. 105
Local variable could be declared final 117
Local variable could be declared final 119
The method 'getSourceInclusionScanner' has a Cyclomatic Complexity of 5. 156 - 183
Local variable could be declared final 172
Local variable could be declared final 174
Avoid instantiating new objects inside loops 175

org/apache/myfaces/maven/plugin/AllSourcesInclusionScanner.java

Violation Line
Private field could be made final. It is only initialized in the declaration or constructor. 35
Private field could be made final. It is only initialized in the declaration or constructor. 39
Parameter 'targetDir' is not assigned and could be declared final 60
Parameter 'sourceDir' is not assigned and could be declared final 60
Local variable could be declared final 63
Local variable could be declared final 64
Local variable could be declared final 67
Local variable could be declared final 68
Avoid instantiating new objects inside loops 68

org/apache/myfaces/maven/plugin/AbstractAPTMojo.java

Violation Line
The class 'AbstractAPTMojo' has a Cyclomatic Complexity of 3 (Highest = 16). 50 - 821
The method 'execute' has a Cyclomatic Complexity of 16. 327 - 479
Local variable could be declared final 330
Local variable could be declared final 332
Local variable could be declared final 342
Avoid if (x != y) ..; else ..; 343 - 384
Local variable could be declared final 360
Local variable could be declared final 378
Local variable could be declared final 399
Local variable could be declared final 402
Local variable could be declared final 423 - 424
Local variable could be declared final 425 - 426
Local variable could be declared final 432
Local variable could be declared final 433
Local variable could be declared final 440 - 441
Local variable could be declared final 449 - 450
Local variable could be declared final 471
Parameter 'cmd' is not assigned and could be declared final 485
Local variable could be declared final 491
Parameter 'cmd' is not assigned and could be declared final 508
Local variable could be declared final 512 - 513
Local variable could be declared final 514
Parameter 'cmd' is not assigned and could be declared final 541
The method 'setStandards' has a Cyclomatic Complexity of 7. 541 - 580
Parameter 'cmd' is not assigned and could be declared final 582
The method 'setSourcepath' has a Cyclomatic Complexity of 7. 582 - 608
Local variable could be declared final 583
Local variable could be declared final 584
Local variable could be declared final 598
Parameter 'cmd' is not assigned and could be declared final 616
The method 'fillSourcelist' has a Cyclomatic Complexity of 5. 616 - 641
Local variable could be declared final 627
Avoid instantiating new objects inside loops 627
Local variable could be declared final 630
Local variable could be declared final 636
Avoid instantiating new objects inside loops 636
Avoid reassigning parameters such as 'has' 651
Parameter 'cmd' is not assigned and could be declared final 651
Parameter 'srcFile' is not assigned and could be declared final 651
The method 'addIncludedSources' has a Cyclomatic Complexity of 7. 651 - 698
Local variable could be declared final 676
Prefer StringBuffer over += for concatenating strings 678
Local variable could be declared final 682
Local variable could be declared final 685
Parameter 'cmd' is not assigned and could be declared final 706
Local variable could be declared final 708
Local variable could be declared final 709
Parameter 'cmd' is not assigned and could be declared final 725
Parameter 'arg' is not assigned and could be declared final 725
Parameter 'cmd' is not assigned and could be declared final 742
Parameter 'arg1' is not assigned and could be declared final 742
Parameter 'arg2' is not assigned and could be declared final 742
Parameter 'value' is not assigned and could be declared final 792
The method 'quotedPathArgument' has a Cyclomatic Complexity of 5. 792 - 820
Local variable could be declared final 801
Avoid if (x != y) ..; else ..; 806 - 813