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/extend/modules/feedback/util/constants/FeedbackConstants.java

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

Priority 3

fr/paris/lutece/plugins/extend/modules/feedback/business/ExtendFeedbackDAO.java

Rule Violation Ligne
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 286287
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 332333
NPathComplexity The method 'constructRequest(String, String, String, String, ResourceExtenderDTO)' has an NPath complexity of 576 332364
CyclomaticComplexity The method 'constructRequest(String, String, String, String, ResourceExtenderDTO)' has a cyclomatic complexity of 14. 332364

fr/paris/lutece/plugins/extend/modules/feedback/business/IExtendFeedbackDAO.java

Rule Violation Ligne
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 126

fr/paris/lutece/plugins/extend/modules/feedback/business/config/FeedbackExtenderConfigDAO.java

Rule Violation Ligne
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 5774

fr/paris/lutece/plugins/extend/modules/feedback/service/ExtendFeedbackService.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34281
TooManyMethods This class has too many methods, consider refactoring it. 80281
DefaultPackage Use explicit scoping instead of the default package private level 8788
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _extendFeedbackDAO field if you want a default access modifier 88
DefaultPackage Use explicit scoping instead of the default package private level 8991
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _resourceHistoryService field if you want a default access modifier 91
DefaultPackage Use explicit scoping instead of the default package private level 9294
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _configService field if you want a default access modifier 94
DefaultPackage Use explicit scoping instead of the default package private level 9597
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _resourceExtenderService field if you want a default access modifier 97
ConfusingTernary Avoid if (x != y) ..; else ..; 195
ConfusingTernary Avoid if (x != y) ..; else ..; 196
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 219
AvoidCatchingNPE Avoid catching NullPointerException; consider removing the cause of the NPE. 259
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 259

fr/paris/lutece/plugins/extend/modules/feedback/service/extender/FeedbackResourceExtender.java

Rule Violation Ligne
ConfusingTernary Avoid if (x != y) ..; else ..; 102111

fr/paris/lutece/plugins/extend/modules/feedback/web/FeedbackApp.java

Rule Violation Ligne
ImmutableField Private field '_feedbackCaptchaService' could be made final; it is only initialized in the declaration or constructor. 75
ImmutableField Private field '_extendFeedbackService' could be made final; it is only initialized in the declaration or constructor. 76
ImmutableField Private field '_configService' could be made final; it is only initialized in the declaration or constructor. 77
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 93

fr/paris/lutece/plugins/extend/modules/feedback/web/FeedbackJspBean.java

Rule Violation Ligne
ImmutableField Private field '_extendFeedbackService' could be made final; it is only initialized in the declaration or constructor. 88
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 122
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 184

fr/paris/lutece/plugins/extend/modules/feedback/web/FeedbackTypeJspBean.java

Rule Violation Ligne
DefaultPackage Use explicit scoping instead of the default package private level 98
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _feedbackTypeService field if you want a default access modifier 98
CommentRequired Public method and constructor comments are required 101111
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 113
CommentRequired Public method and constructor comments are required 114134
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 136
CommentRequired Public method and constructor comments are required 137152
ConfusingTernary Avoid if (x != y) ..; else ..; 142149
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 154
CommentRequired Public method and constructor comments are required 155184
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 186
CommentRequired Public method and constructor comments are required 187215
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 224

fr/paris/lutece/plugins/extend/modules/feedback/web/action/FeedbackInstallerPluginAction.java

Rule Violation Ligne
UncommentedEmptyMethodBody Document empty method body 7677

fr/paris/lutece/plugins/extend/modules/feedback/web/component/FeedbackResourceExtenderComponent.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34270
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 130
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 162
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 189

Priority 4

fr/paris/lutece/plugins/extend/modules/feedback/business/FeedbackType.java

Rule Violation Ligne
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 109112

Fichiers

fr/paris/lutece/plugins/extend/modules/feedback/business/ExtendFeedbackDAO.java

Rule Violation Priority Ligne
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 286287
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 332333
NPathComplexity The method 'constructRequest(String, String, String, String, ResourceExtenderDTO)' has an NPath complexity of 576 3 332364
CyclomaticComplexity The method 'constructRequest(String, String, String, String, ResourceExtenderDTO)' has a cyclomatic complexity of 14. 3 332364

fr/paris/lutece/plugins/extend/modules/feedback/business/FeedbackType.java

Rule Violation Priority Ligne
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 109112

fr/paris/lutece/plugins/extend/modules/feedback/business/IExtendFeedbackDAO.java

Rule Violation Priority Ligne
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 126

fr/paris/lutece/plugins/extend/modules/feedback/business/config/FeedbackExtenderConfigDAO.java

Rule Violation Priority Ligne
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 5774

fr/paris/lutece/plugins/extend/modules/feedback/service/ExtendFeedbackService.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34281
TooManyMethods This class has too many methods, consider refactoring it. 3 80281
DefaultPackage Use explicit scoping instead of the default package private level 3 8788
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _extendFeedbackDAO field if you want a default access modifier 3 88
DefaultPackage Use explicit scoping instead of the default package private level 3 8991
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _resourceHistoryService field if you want a default access modifier 3 91
DefaultPackage Use explicit scoping instead of the default package private level 3 9294
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _configService field if you want a default access modifier 3 94
DefaultPackage Use explicit scoping instead of the default package private level 3 9597
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _resourceExtenderService field if you want a default access modifier 3 97
ConfusingTernary Avoid if (x != y) ..; else ..; 3 195
ConfusingTernary Avoid if (x != y) ..; else ..; 3 196
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 219
AvoidCatchingNPE Avoid catching NullPointerException; consider removing the cause of the NPE. 3 259
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 259

fr/paris/lutece/plugins/extend/modules/feedback/service/extender/FeedbackResourceExtender.java

Rule Violation Priority Ligne
ConfusingTernary Avoid if (x != y) ..; else ..; 3 102111

fr/paris/lutece/plugins/extend/modules/feedback/util/constants/FeedbackConstants.java

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

fr/paris/lutece/plugins/extend/modules/feedback/web/FeedbackApp.java

Rule Violation Priority Ligne
ImmutableField Private field '_feedbackCaptchaService' could be made final; it is only initialized in the declaration or constructor. 3 75
ImmutableField Private field '_extendFeedbackService' could be made final; it is only initialized in the declaration or constructor. 3 76
ImmutableField Private field '_configService' could be made final; it is only initialized in the declaration or constructor. 3 77
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 93

fr/paris/lutece/plugins/extend/modules/feedback/web/FeedbackJspBean.java

Rule Violation Priority Ligne
ImmutableField Private field '_extendFeedbackService' could be made final; it is only initialized in the declaration or constructor. 3 88
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 122
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 184

fr/paris/lutece/plugins/extend/modules/feedback/web/FeedbackTypeJspBean.java

Rule Violation Priority Ligne
DefaultPackage Use explicit scoping instead of the default package private level 3 98
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _feedbackTypeService field if you want a default access modifier 3 98
CommentRequired Public method and constructor comments are required 3 101111
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 113
CommentRequired Public method and constructor comments are required 3 114134
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 136
CommentRequired Public method and constructor comments are required 3 137152
ConfusingTernary Avoid if (x != y) ..; else ..; 3 142149
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 154
CommentRequired Public method and constructor comments are required 3 155184
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 186
CommentRequired Public method and constructor comments are required 3 187215
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 224

fr/paris/lutece/plugins/extend/modules/feedback/web/action/FeedbackInstallerPluginAction.java

Rule Violation Priority Ligne
UncommentedEmptyMethodBody Document empty method body 3 7677

fr/paris/lutece/plugins/extend/modules/feedback/web/component/FeedbackResourceExtenderComponent.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34270
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 130
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 162
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 189