PMD Results

The following document contains the results of PMD 5.0.2.

Files

de/jflex/plugin/maven/ClassInfo.java

Violation Line
Avoid using Literals in Conditional Statements 22

de/jflex/plugin/maven/JFlexMojo.java

Violation Line
Avoid if (x != y) ..; else ..; 178 - 192
Found 'DD'-anomaly for variable 'lexDefinition' (lines '196'-'197'). 196 - 197
Found 'DD'-anomaly for variable 'classInfo' (lines '241'-'243'). 241 - 243
Found 'DU'-anomaly for variable 'classInfo' (lines '243'-'296'). 243 - 296
New exception is thrown in catch block, original stack trace may be lost 245
New exception is thrown in catch block, original stack trace may be lost 294
A method should have only one exit point, and that should be the last statement in the method 333

de/jflex/plugin/maven/LexSimpleAnalyzer.java

Violation Line
The class 'LexSimpleAnalyzer' has a Cyclomatic Complexity of 11 (Highest = 10). 9 - 68
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 9 - 68
The method 'guessPackageAndClass' has a Cyclomatic Complexity of 10. 27 - 67
Found 'DU'-anomaly for variable 'reader' (lines '31'-'67'). 31 - 67
Avoid using if statements without curly braces 36 - 37
Avoid using Literals in Conditional Statements 41
Deeply nested if..then statements are hard to read 45 - 48
Avoid using Literals in Conditional Statements 54