PMD Results

The following document contains the results of PMD 5.0.5.

Files

org/andromda/maven/plugin/andromdanetapp/AndroMDANetAppMojo.java

Violation Line
Local variable 'andromdapp' could be declared final 36
Avoid declaring a variable if it is unreferenced before a possible exit point. 36
A catch statement should never catch throwable since it includes errors. 53
An instanceof check is being performed on the caught exception. Create a separate catch clause for this exception type. 55

org/andromda/maven/plugin/andromdanetapp/HelpMojo.java

Violation Line
Comment is too large: Line too long 11
Found non-transient, non-static member. Please mark as transient or provide accessors. 27
Found non-transient, non-static member. Please mark as transient or provide accessors. 34
Found non-transient, non-static member. Please mark as transient or provide accessors. 41
Found non-transient, non-static member. Please mark as transient or provide accessors. 48
The method execute() has an NPath complexity of 480 52124
Avoid variables with short names like sb 66
Local variable 'sb' could be declared final 66
The String literal "" appears 10 times in this file; the first occurrence is on line 69 69
Parameter 'repeat' is not assigned and could be declared final 135
Parameter 'str' is not assigned and could be declared final 135
Local variable 'buffer' could be declared final 137
Avoid variables with short names like sb 155
Parameter 'description' is not assigned and could be declared final 155
Parameter 'indent' is not assigned and could be declared final 155
Parameter 'sb' is not assigned and could be declared final 155
Local variable 'it' could be declared final 157
Parameter 'text' is not assigned and could be declared final 173
Parameter 'indentSize' is not assigned and could be declared final 173
Parameter 'lineLength' is not assigned and could be declared final 173
Parameter 'indent' is not assigned and could be declared final 173
Local variable 'lines' could be declared final 175
Local variable 'ind' could be declared final 177
Local variable 'plainLines' could be declared final 178
Parameter 'line' is not assigned and could be declared final 195
Parameter 'lines' is not assigned and could be declared final 195
Parameter 'indentSize' is not assigned and could be declared final 195
Parameter 'lineLength' is not assigned and could be declared final 195
Local variable 'lineIndent' could be declared final 197
Local variable 'buf' could be declared final 198
Local variable 'tokens' could be declared final 199
Local variable 'token' could be declared final 202
Local variable 'c' could be declared final 218
Avoid variables with short names like c 218
Parameter 'line' is not assigned and could be declared final 242