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/appcenter/modules/support/business/SupportData.java

Rule Violation Ligne
FormalParameterNamingConventions The method parameter name '_listIdFilesSupport' doesn't match '[a-z][a-zA-Z0-9]*' 71

fr/paris/lutece/plugins/appcenter/modules/support/business/SupportDemand.java

Rule Violation Ligne
FormalParameterNamingConventions The method parameter name '_strQuestionSupport' doesn't match '[a-z][a-zA-Z0-9]*' 57
FormalParameterNamingConventions The method parameter name '_listFilesSupport' doesn't match '[a-z][a-zA-Z0-9]*' 75

fr/paris/lutece/plugins/appcenter/modules/support/web/DoAdminDownloadFile.java

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

fr/paris/lutece/plugins/appcenter/modules/support/web/DoDownloadFile.java

Rule Violation Ligne
ClassNamingConventions The utility class name 'DoDownloadFile' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 62142

Priority 2

fr/paris/lutece/plugins/appcenter/modules/support/web/SupportTaskComponent.java

Rule Violation Ligne
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 81

Priority 3

fr/paris/lutece/plugins/appcenter/modules/support/business/SupportDemand.java

Rule Violation Ligne
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 89

fr/paris/lutece/plugins/appcenter/modules/support/service/SupportAsynchronousUploadHandler.java

Rule Violation Ligne
CommentRequired Header comments are required 56300
UseUnderscoresInNumericLiterals Number 5242880 should separate every third digit with an underscore 73
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 77
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 99
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 259
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 287

fr/paris/lutece/plugins/appcenter/modules/support/service/SupportPermissionProvider.java

Rule Violation Ligne
CommentRequired Header comments are required 1445

fr/paris/lutece/plugins/appcenter/modules/support/service/SupportTask.java

Rule Violation Ligne
CommentRequired Header comments are required 1229

fr/paris/lutece/plugins/appcenter/modules/support/web/DoAdminDownloadFile.java

Rule Violation Ligne
CyclomaticComplexity The method 'doDownloadFile(HttpServletRequest, HttpServletResponse)' has a cyclomatic complexity of 13. 86153
NPathComplexity The method 'doDownloadFile(HttpServletRequest, HttpServletResponse)' has an NPath complexity of 320 86153
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 103
ConfusingTernary Avoid if (x != y) ..; else ..; 118119
ShortVariable Avoid variables with short names like os 142

fr/paris/lutece/plugins/appcenter/modules/support/web/DoDownloadFile.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. 63142
NPathComplexity The method 'doDownloadFile(HttpServletRequest, HttpServletResponse)' has an NPath complexity of 240 78141
CyclomaticComplexity The method 'doDownloadFile(HttpServletRequest, HttpServletResponse)' has a cyclomatic complexity of 12. 78141
ConfusingTernary Avoid if (x != y) ..; else ..; 108109
ShortVariable Avoid variables with short names like os 132

fr/paris/lutece/plugins/appcenter/modules/support/web/SupportTaskComponent.java

Rule Violation Ligne
CommentRequired Header comments are required 29112
UnusedPrivateField Avoid unused private fields such as 'MESSAGE_MANDATORY_FIELD'. 36
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 48
UnusedLocalVariable Avoid unused local variables such as 'demand'. 95
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 95
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 98

fr/paris/lutece/plugins/appcenter/modules/support/web/SupportsXPage.java

Rule Violation Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 68215
CommentRequired Public method and constructor comments are required 92115
CommentRequired Public method and constructor comments are required 118168
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 129

Priority 4

fr/paris/lutece/plugins/appcenter/modules/support/business/UploadFile.java

Rule Violation Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.business.file.File' 36

fr/paris/lutece/plugins/appcenter/modules/support/web/DoAdminDownloadFile.java

Rule Violation Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.business.Demand' 36

fr/paris/lutece/plugins/appcenter/modules/support/web/DoDownloadFile.java

Rule Violation Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.security.SecurityService' 50

Fichiers

fr/paris/lutece/plugins/appcenter/modules/support/business/SupportData.java

Rule Violation Priority Ligne
FormalParameterNamingConventions The method parameter name '_listIdFilesSupport' doesn't match '[a-z][a-zA-Z0-9]*' 1 71

fr/paris/lutece/plugins/appcenter/modules/support/business/SupportDemand.java

Rule Violation Priority Ligne
FormalParameterNamingConventions The method parameter name '_strQuestionSupport' doesn't match '[a-z][a-zA-Z0-9]*' 1 57
FormalParameterNamingConventions The method parameter name '_listFilesSupport' doesn't match '[a-z][a-zA-Z0-9]*' 1 75
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 89

fr/paris/lutece/plugins/appcenter/modules/support/business/UploadFile.java

Rule Violation Priority Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.business.file.File' 4 36

fr/paris/lutece/plugins/appcenter/modules/support/service/SupportAsynchronousUploadHandler.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 56300
UseUnderscoresInNumericLiterals Number 5242880 should separate every third digit with an underscore 3 73
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 77
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 99
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 259
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 287

fr/paris/lutece/plugins/appcenter/modules/support/service/SupportPermissionProvider.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 1445

fr/paris/lutece/plugins/appcenter/modules/support/service/SupportTask.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 1229

fr/paris/lutece/plugins/appcenter/modules/support/web/DoAdminDownloadFile.java

Rule Violation Priority Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.business.Demand' 4 36
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 65175
CyclomaticComplexity The method 'doDownloadFile(HttpServletRequest, HttpServletResponse)' has a cyclomatic complexity of 13. 3 86153
NPathComplexity The method 'doDownloadFile(HttpServletRequest, HttpServletResponse)' has an NPath complexity of 320 3 86153
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 103
ConfusingTernary Avoid if (x != y) ..; else ..; 3 118119
ShortVariable Avoid variables with short names like os 3 142

fr/paris/lutece/plugins/appcenter/modules/support/web/DoDownloadFile.java

Rule Violation Priority Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.security.SecurityService' 4 50
ClassNamingConventions The utility class name 'DoDownloadFile' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 62142
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 63142
NPathComplexity The method 'doDownloadFile(HttpServletRequest, HttpServletResponse)' has an NPath complexity of 240 3 78141
CyclomaticComplexity The method 'doDownloadFile(HttpServletRequest, HttpServletResponse)' has a cyclomatic complexity of 12. 3 78141
ConfusingTernary Avoid if (x != y) ..; else ..; 3 108109
ShortVariable Avoid variables with short names like os 3 132

fr/paris/lutece/plugins/appcenter/modules/support/web/SupportTaskComponent.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 29112
UnusedPrivateField Avoid unused private fields such as 'MESSAGE_MANDATORY_FIELD'. 3 36
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 48
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 81
UnusedLocalVariable Avoid unused local variables such as 'demand'. 3 95
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 95
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 98

fr/paris/lutece/plugins/appcenter/modules/support/web/SupportsXPage.java

Rule Violation Priority Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 68215
CommentRequired Public method and constructor comments are required 3 92115
CommentRequired Public method and constructor comments are required 3 118168
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 129