Fork me on GitHub

Résultats PMD

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

Violations By Priority

Priority 1

fr/paris/lutece/plugins/forms/modules/template/business/TemplateReferenceItemFieldHome.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 47108

fr/paris/lutece/plugins/forms/modules/template/service/json/TemplateJsonService.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 4464

fr/paris/lutece/plugins/forms/modules/template/web/CompositeTemplateGroupDisplay.java

Rule Violation Ligne
FieldNamingConventions The final field name '_listChildren' doesn't match '[a-z][a-zA-Z0-9]*' 69
FieldNamingConventions The final field name '_templateDisplay' doesn't match '[a-z][a-zA-Z0-9]*' 70

fr/paris/lutece/plugins/forms/modules/template/web/CompositeTemplateQuestionDisplay.java

Rule Violation Ligne
FieldNamingConventions The final field name '_formDisplay' doesn't match '[a-z][a-zA-Z0-9]*' 58

fr/paris/lutece/plugins/forms/modules/template/web/TemplateDisplayTree.java

Rule Violation Ligne
FieldNamingConventions The final field name '_listChildren' doesn't match '[a-z][a-zA-Z0-9]*' 51
FieldNamingConventions The final field name '_listICompositeDisplay' doesn't match '[a-z][a-zA-Z0-9]*' 52

Priority 3

fr/paris/lutece/plugins/forms/modules/template/business/ITemplateControlDAO.java

Rule Violation Ligne
TooManyMethods This class has too many methods, consider refactoring it. 48207

fr/paris/lutece/plugins/forms/modules/template/business/Template.java

Rule Violation Ligne
CommentRequired Header comments are required 4484

fr/paris/lutece/plugins/forms/modules/template/business/TemplateControlDAO.java

Rule Violation Ligne
TooManyMethods This class has too many methods, consider refactoring it. 52346

fr/paris/lutece/plugins/forms/modules/template/business/TemplateControlHome.java

Rule Violation Ligne
CommentRequired Public method and constructor comments are required 7882

fr/paris/lutece/plugins/forms/modules/template/business/TemplateEntryDAO.java

Rule Violation Ligne
AssignmentInOperand Avoid assignments in operands 198

fr/paris/lutece/plugins/forms/modules/template/business/TemplateEntryHome.java

Rule Violation Ligne
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 114
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'field' 164
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'entryChild' 173
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 187

fr/paris/lutece/plugins/forms/modules/template/business/TemplateFieldDAO.java

Rule Violation Ligne
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 94117
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 107
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 169

fr/paris/lutece/plugins/forms/modules/template/business/TemplateFieldHome.java

Rule Violation Ligne
ShortVariable Avoid variables with short names like id 70
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 150

fr/paris/lutece/plugins/forms/modules/template/business/TemplateGroupDAO.java

Rule Violation Ligne
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 152
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 153

fr/paris/lutece/plugins/forms/modules/template/service/ITemplateService.java

Rule Violation Ligne
CommentRequired Header comments are required 4171

fr/paris/lutece/plugins/forms/modules/template/service/TemplateDatabaseService.java

Rule Violation Ligne
CommentRequired Header comments are required 57231
TooManyMethods This class has too many methods, consider refactoring it. 58231

fr/paris/lutece/plugins/forms/modules/template/service/TemplateDisplayService.java

Rule Violation Ligne
CommentRequired Header comments are required 51119

fr/paris/lutece/plugins/forms/modules/template/service/TemplateReferenceItemListener.java

Rule Violation Ligne
CommentRequired Header comments are required 51100

fr/paris/lutece/plugins/forms/modules/template/service/TemplateService.java

Rule Violation Ligne
CommentRequired Header comments are required 4994

fr/paris/lutece/plugins/forms/modules/template/service/json/TemplateJsonService.java

Rule Violation Ligne
CommentRequired Header comments are required 4464
CommentRequired Public method and constructor comments are required 5457

fr/paris/lutece/plugins/forms/modules/template/service/rbac/TemplateRbacAction.java

Rule Violation Ligne
CommentRequired Header comments are required 42152

fr/paris/lutece/plugins/forms/modules/template/service/rbac/TemplateResourceIdService.java

Rule Violation Ligne
CommentRequired Header comments are required 50131

fr/paris/lutece/plugins/forms/modules/template/web/CompositeTemplateGroupDisplay.java

Rule Violation Ligne
CommentRequired Header comments are required 61240
ImmutableField Private field '_templateService' could be made final; it is only initialized in the declaration or constructor. 67
UnusedFormalParameter Avoid unused constructor parameters such as 'nIterationNumber'. 82
ConfusingTernary Avoid if (x != y) ..; else ..; 179

fr/paris/lutece/plugins/forms/modules/template/web/CompositeTemplateQuestionDisplay.java

Rule Violation Ligne
CommentRequired Header comments are required 55189
ConfusingTernary Avoid if (x != y) ..; else ..; 137

fr/paris/lutece/plugins/forms/modules/template/web/TemplateDisplayTree.java

Rule Violation Ligne
CommentRequired Header comments are required 49106
ImmutableField Private field '_templateService' could be made final; it is only initialized in the declaration or constructor. 55
SingularField Perhaps '_step' could be replaced by a local variable. 56

fr/paris/lutece/plugins/forms/modules/template/web/TemplateStepJspBean.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34821
CommentRequired Header comments are required 96821
TooManyMethods This class has too many methods, consider refactoring it. 97821
ImmutableField Private field '_templateService' could be made final; it is only initialized in the declaration or constructor. 151
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 207
ConfusingTernary Avoid if (x != y) ..; else ..; 269
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 295
CommentRequired Public method and constructor comments are required 296314
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 323
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 358
ConfusingTernary Avoid if (x != y) ..; else ..; 395402
ConfusingTernary Avoid if (x != y) ..; else ..; 426428
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 446
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 480
ConfusingTernary Avoid if (x != y) ..; else ..; 515522
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 539
CyclomaticComplexity The method 'getConfirmRemoveComposite(HttpServletRequest)' has a cyclomatic complexity of 10. 540582
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 543
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 622
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 668
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 694
CommentRequired Public method and constructor comments are required 695708
ConfusingTernary Avoid if (x != y) ..; else ..; 699706
CommentRequired Public method and constructor comments are required 711732
CommentRequired Public method and constructor comments are required 735751

Fichiers

fr/paris/lutece/plugins/forms/modules/template/business/ITemplateControlDAO.java

Rule Violation Priority Ligne
TooManyMethods This class has too many methods, consider refactoring it. 3 48207

fr/paris/lutece/plugins/forms/modules/template/business/Template.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 4484

fr/paris/lutece/plugins/forms/modules/template/business/TemplateControlDAO.java

Rule Violation Priority Ligne
TooManyMethods This class has too many methods, consider refactoring it. 3 52346

fr/paris/lutece/plugins/forms/modules/template/business/TemplateControlHome.java

Rule Violation Priority Ligne
CommentRequired Public method and constructor comments are required 3 7882

fr/paris/lutece/plugins/forms/modules/template/business/TemplateEntryDAO.java

Rule Violation Priority Ligne
AssignmentInOperand Avoid assignments in operands 3 198

fr/paris/lutece/plugins/forms/modules/template/business/TemplateEntryHome.java

Rule Violation Priority Ligne
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 114
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'field' 3 164
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'entryChild' 3 173
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 187

fr/paris/lutece/plugins/forms/modules/template/business/TemplateFieldDAO.java

Rule Violation Priority Ligne
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 94117
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 107
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 169

fr/paris/lutece/plugins/forms/modules/template/business/TemplateFieldHome.java

Rule Violation Priority Ligne
ShortVariable Avoid variables with short names like id 3 70
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 150

fr/paris/lutece/plugins/forms/modules/template/business/TemplateGroupDAO.java

Rule Violation Priority Ligne
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 152
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 153

fr/paris/lutece/plugins/forms/modules/template/business/TemplateReferenceItemFieldHome.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 47108

fr/paris/lutece/plugins/forms/modules/template/service/ITemplateService.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 4171

fr/paris/lutece/plugins/forms/modules/template/service/TemplateDatabaseService.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 57231
TooManyMethods This class has too many methods, consider refactoring it. 3 58231

fr/paris/lutece/plugins/forms/modules/template/service/TemplateDisplayService.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 51119

fr/paris/lutece/plugins/forms/modules/template/service/TemplateReferenceItemListener.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 51100

fr/paris/lutece/plugins/forms/modules/template/service/TemplateService.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 4994

fr/paris/lutece/plugins/forms/modules/template/service/json/TemplateJsonService.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 4464
CommentRequired Header comments are required 3 4464
CommentRequired Public method and constructor comments are required 3 5457

fr/paris/lutece/plugins/forms/modules/template/service/rbac/TemplateRbacAction.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 42152

fr/paris/lutece/plugins/forms/modules/template/service/rbac/TemplateResourceIdService.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 50131

fr/paris/lutece/plugins/forms/modules/template/web/CompositeTemplateGroupDisplay.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 61240
ImmutableField Private field '_templateService' could be made final; it is only initialized in the declaration or constructor. 3 67
FieldNamingConventions The final field name '_listChildren' doesn't match '[a-z][a-zA-Z0-9]*' 1 69
FieldNamingConventions The final field name '_templateDisplay' doesn't match '[a-z][a-zA-Z0-9]*' 1 70
UnusedFormalParameter Avoid unused constructor parameters such as 'nIterationNumber'. 3 82
ConfusingTernary Avoid if (x != y) ..; else ..; 3 179

fr/paris/lutece/plugins/forms/modules/template/web/CompositeTemplateQuestionDisplay.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 55189
FieldNamingConventions The final field name '_formDisplay' doesn't match '[a-z][a-zA-Z0-9]*' 1 58
ConfusingTernary Avoid if (x != y) ..; else ..; 3 137

fr/paris/lutece/plugins/forms/modules/template/web/TemplateDisplayTree.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 49106
FieldNamingConventions The final field name '_listChildren' doesn't match '[a-z][a-zA-Z0-9]*' 1 51
FieldNamingConventions The final field name '_listICompositeDisplay' doesn't match '[a-z][a-zA-Z0-9]*' 1 52
ImmutableField Private field '_templateService' could be made final; it is only initialized in the declaration or constructor. 3 55
SingularField Perhaps '_step' could be replaced by a local variable. 3 56

fr/paris/lutece/plugins/forms/modules/template/web/TemplateStepJspBean.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34821
CommentRequired Header comments are required 3 96821
TooManyMethods This class has too many methods, consider refactoring it. 3 97821
ImmutableField Private field '_templateService' could be made final; it is only initialized in the declaration or constructor. 3 151
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 207
ConfusingTernary Avoid if (x != y) ..; else ..; 3 269
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 295
CommentRequired Public method and constructor comments are required 3 296314
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 323
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 358
ConfusingTernary Avoid if (x != y) ..; else ..; 3 395402
ConfusingTernary Avoid if (x != y) ..; else ..; 3 426428
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 446
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 480
ConfusingTernary Avoid if (x != y) ..; else ..; 3 515522
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 539
CyclomaticComplexity The method 'getConfirmRemoveComposite(HttpServletRequest)' has a cyclomatic complexity of 10. 3 540582
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 543
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 622
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 668
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 694
CommentRequired Public method and constructor comments are required 3 695708
ConfusingTernary Avoid if (x != y) ..; else ..; 3 699706
CommentRequired Public method and constructor comments are required 3 711732
CommentRequired Public method and constructor comments are required 3 735751