Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.13.0.

Violations By Priority

Priority 1

fr/paris/lutece/plugins/forms/modules/documentproducer/business/producerconfig/DocumentType.java

Rule Violation Line
FieldNamingConventions The final field name '_strExtension' doesn't match '[a-z][a-zA-Z0-9]*' 47

fr/paris/lutece/plugins/forms/modules/documentproducer/web/DocumentProducerJspBean.java

Rule Violation Line
FieldNamingConventions The constant name '_manageConfigProducerService' doesn't match '[A-Z][A-Z_0-9]*' 145

fr/paris/lutece/plugins/forms/modules/documentproducer/web/servlets/FormsPDFServlet.java

Rule Violation Line
FieldNamingConventions The constant name '_manageConfigProducerService' doesn't match '[A-Z][A-Z_0-9]*' 66

Priority 2

fr/paris/lutece/plugins/forms/modules/documentproducer/utils/PDFUtils.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'listIdQuestionConfig' 370

Priority 3

fr/paris/lutece/plugins/forms/modules/documentproducer/business/listener/FormsDocumentProducerRemovalListener.java

Rule Violation Line
ShortVariable Avoid variables with short names like id 64

fr/paris/lutece/plugins/forms/modules/documentproducer/business/listener/QuestionDocumentProducerRemovalListener.java

Rule Violation Line
ShortVariable Avoid variables with short names like id 71

fr/paris/lutece/plugins/forms/modules/documentproducer/business/producerconfig/ConfigProducerDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 49430

fr/paris/lutece/plugins/forms/modules/documentproducer/business/producerconfig/ConfigProducerHome.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 47257

fr/paris/lutece/plugins/forms/modules/documentproducer/business/producerconfig/DocumentType.java

Rule Violation Line
SwitchStmtsShouldHaveDefault Switch statements should have a default label 7581
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 7581
SwitchStmtsShouldHaveDefault Switch statements should have a default label 9399
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 9399

fr/paris/lutece/plugins/forms/modules/documentproducer/business/producerconfig/IConfigProducerDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 45204

fr/paris/lutece/plugins/forms/modules/documentproducer/service/ConfigProducerService.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 50229

fr/paris/lutece/plugins/forms/modules/documentproducer/service/FormsDocumentProducerResourceIdService.java

Rule Violation Line
ShortVariable Avoid variables with short names like rt 86
ShortVariable Avoid variables with short names like p 97

fr/paris/lutece/plugins/forms/modules/documentproducer/utils/PDFUtils.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34447
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 169
CyclomaticComplexity The method 'builderPDFWithFormQuestionResponse(Document, FormResponse, List)' has a cyclomatic complexity of 12. 251352
ExcessiveMethodLength Avoid really long methods. 251352
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 318
ShortVariable Avoid variables with short names like os 385

fr/paris/lutece/plugins/forms/modules/documentproducer/web/DocumentProducerJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34558
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _configProducer field if you want a default access modifier 150
DefaultPackage Use explicit scoping instead of the default package private level 150
DefaultPackage Use explicit scoping instead of the default package private level 151
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _form field if you want a default access modifier 151
CommentRequired Public method and constructor comments are required 154169
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 179
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 200
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 216
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 245
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 273
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 294
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 311
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 340
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 368
ConfusingTernary Avoid if (x != y) ..; else ..; 394401
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 413
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 424
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 425
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 464

fr/paris/lutece/plugins/forms/modules/documentproducer/web/servlets/FormsPDFServlet.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 80

Files

fr/paris/lutece/plugins/forms/modules/documentproducer/business/listener/FormsDocumentProducerRemovalListener.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like id 3 64

fr/paris/lutece/plugins/forms/modules/documentproducer/business/listener/QuestionDocumentProducerRemovalListener.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like id 3 71

fr/paris/lutece/plugins/forms/modules/documentproducer/business/producerconfig/ConfigProducerDAO.java

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

fr/paris/lutece/plugins/forms/modules/documentproducer/business/producerconfig/ConfigProducerHome.java

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

fr/paris/lutece/plugins/forms/modules/documentproducer/business/producerconfig/DocumentType.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_strExtension' doesn't match '[a-z][a-zA-Z0-9]*' 1 47
SwitchStmtsShouldHaveDefault Switch statements should have a default label 3 7581
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 3 7581
SwitchStmtsShouldHaveDefault Switch statements should have a default label 3 9399
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 3 9399

fr/paris/lutece/plugins/forms/modules/documentproducer/business/producerconfig/IConfigProducerDAO.java

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

fr/paris/lutece/plugins/forms/modules/documentproducer/service/ConfigProducerService.java

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

fr/paris/lutece/plugins/forms/modules/documentproducer/service/FormsDocumentProducerResourceIdService.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like rt 3 86
ShortVariable Avoid variables with short names like p 3 97

fr/paris/lutece/plugins/forms/modules/documentproducer/utils/PDFUtils.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34447
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 169
CyclomaticComplexity The method 'builderPDFWithFormQuestionResponse(Document, FormResponse, List)' has a cyclomatic complexity of 12. 3 251352
ExcessiveMethodLength Avoid really long methods. 3 251352
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 318
AvoidReassigningParameters Avoid reassigning parameters such as 'listIdQuestionConfig' 2 370
ShortVariable Avoid variables with short names like os 3 385

fr/paris/lutece/plugins/forms/modules/documentproducer/web/DocumentProducerJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34558
FieldNamingConventions The constant name '_manageConfigProducerService' doesn't match '[A-Z][A-Z_0-9]*' 1 145
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _configProducer field if you want a default access modifier 3 150
DefaultPackage Use explicit scoping instead of the default package private level 3 150
DefaultPackage Use explicit scoping instead of the default package private level 3 151
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _form field if you want a default access modifier 3 151
CommentRequired Public method and constructor comments are required 3 154169
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 179
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 200
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 216
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 245
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 273
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 294
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 311
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 340
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 368
ConfusingTernary Avoid if (x != y) ..; else ..; 3 394401
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 413
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 424
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 425
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 464

fr/paris/lutece/plugins/forms/modules/documentproducer/web/servlets/FormsPDFServlet.java

Rule Violation Priority Line
FieldNamingConventions The constant name '_manageConfigProducerService' doesn't match '[A-Z][A-Z_0-9]*' 1 66
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 80