Fork me on GitHub

Résultats PMD

Le document suivant contient les résultats de PMD 6.13.0.

Violations By Priority

Priority 3

fr/paris/lutece/plugins/codewizard/business/BusinessObject.java

Rule Violation Ligne
ImmutableField Private field '_attributes' could be made final; it is only initialized in the declaration or constructor. 51
CommentRequired Public method and constructor comments are required 142145
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 209
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'strInstanceName' 211

fr/paris/lutece/plugins/codewizard/business/JavaType.java

Rule Violation Ligne
ImmutableField Private field '_strName' could be made final; it is only initialized in the declaration or constructor. 43
ImmutableField Private field '_strPrefix' could be made final; it is only initialized in the declaration or constructor. 44
ImmutableField Private field '_bIsDaoType' could be made final; it is only initialized in the declaration or constructor. 45
ImmutableField Private field '_strImport' could be made final; it is only initialized in the declaration or constructor. 46
ImmutableField Private field '_strTestInitValueFormat' could be made final; it is only initialized in the declaration or constructor. 47

fr/paris/lutece/plugins/codewizard/service/GeneratorService.java

Rule Violation Ligne
ShortVariable Avoid variables with short names like bo 68
ShortVariable Avoid variables with short names like i 88
AssignmentInOperand Avoid assignments in operands 90
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'strTemplate' 110

fr/paris/lutece/plugins/codewizard/service/JavaTypeService.java

Rule Violation Ligne
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 47173
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 48
CommentRequired Public method and constructor comments are required 6797
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 78
ShortVariable Avoid variables with short names like jt 79
ConfusingTernary Avoid if (x != y) ..; else ..; 8095
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 107
ShortVariable Avoid variables with short names like jt 108
ShortVariable Avoid variables with short names like c 132
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 134
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 144
ShortVariable Avoid variables with short names like c 168

fr/paris/lutece/plugins/codewizard/web/CodeWizardApp.java

Rule Violation Ligne
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 127
ShortVariable Avoid variables with short names like bo 151
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 165
ShortVariable Avoid variables with short names like bo 181
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 193
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 199

Fichiers

fr/paris/lutece/plugins/codewizard/business/BusinessObject.java

Rule Violation Priority Ligne
ImmutableField Private field '_attributes' could be made final; it is only initialized in the declaration or constructor. 3 51
CommentRequired Public method and constructor comments are required 3 142145
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 209
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'strInstanceName' 3 211

fr/paris/lutece/plugins/codewizard/business/JavaType.java

Rule Violation Priority Ligne
ImmutableField Private field '_strName' could be made final; it is only initialized in the declaration or constructor. 3 43
ImmutableField Private field '_strPrefix' could be made final; it is only initialized in the declaration or constructor. 3 44
ImmutableField Private field '_bIsDaoType' could be made final; it is only initialized in the declaration or constructor. 3 45
ImmutableField Private field '_strImport' could be made final; it is only initialized in the declaration or constructor. 3 46
ImmutableField Private field '_strTestInitValueFormat' could be made final; it is only initialized in the declaration or constructor. 3 47

fr/paris/lutece/plugins/codewizard/service/GeneratorService.java

Rule Violation Priority Ligne
ShortVariable Avoid variables with short names like bo 3 68
ShortVariable Avoid variables with short names like i 3 88
AssignmentInOperand Avoid assignments in operands 3 90
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'strTemplate' 3 110

fr/paris/lutece/plugins/codewizard/service/JavaTypeService.java

Rule Violation Priority Ligne
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 3 47173
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 48
CommentRequired Public method and constructor comments are required 3 6797
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 78
ShortVariable Avoid variables with short names like jt 3 79
ConfusingTernary Avoid if (x != y) ..; else ..; 3 8095
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 107
ShortVariable Avoid variables with short names like jt 3 108
ShortVariable Avoid variables with short names like c 3 132
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 134
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 144
ShortVariable Avoid variables with short names like c 3 168

fr/paris/lutece/plugins/codewizard/web/CodeWizardApp.java

Rule Violation Priority Ligne
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 127
ShortVariable Avoid variables with short names like bo 3 151
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 165
ShortVariable Avoid variables with short names like bo 3 181
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 193
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 199