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/accesscontrol/business/AccessControl.java

Rule Violation Ligne
MissingOverride The method 'getWorkgroup()' is missing an @Override annotation. 188191

fr/paris/lutece/plugins/accesscontrol/business/AccessControlDAO.java

Rule Violation Ligne
AssignmentInOperand Avoid assignments in operands 275
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 275

fr/paris/lutece/plugins/accesscontrol/business/AccessControlFilter.java

Rule Violation Ligne
RedundantFieldInitializer Avoid using redundant field initializer for '_strName' 51
CommentRequired Public method and constructor comments are required 5356
CommentRequired Public method and constructor comments are required 5861
CommentRequired Public method and constructor comments are required 121125

fr/paris/lutece/plugins/accesscontrol/business/AccessControlResource.java

Rule Violation Ligne
CommentRequired Header comments are required 3692

fr/paris/lutece/plugins/accesscontrol/business/AccessControlResourceDAO.java

Rule Violation Ligne
ShortVariable Avoid variables with short names like id 92

fr/paris/lutece/plugins/accesscontrol/business/UserCodeControllerData.java

Rule Violation Ligne
CommentRequired Header comments are required 38113

fr/paris/lutece/plugins/accesscontrol/business/UserCodeControllerDataHome.java

Rule Violation Ligne
CommentRequired Header comments are required 42134

fr/paris/lutece/plugins/accesscontrol/service/AbstractPersistentAccessControllerType.java

Rule Violation Ligne
CommentRequired Header comments are required 51132
CommentRequired Protected method constructor comments are required 5977
CommentRequired Protected method constructor comments are required 101119
ConfusingTernary Avoid if (x != y) ..; else ..; 110118
CommentRequired Protected method constructor comments are required 121129
CommentRequired Protected method constructor comments are required 131

fr/paris/lutece/plugins/accesscontrol/service/AbstractUserCodeAccessControllerType.java

Rule Violation Ligne
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 92
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 111
CommentRequired Protected method constructor comments are required 136
CommentRequired Protected method constructor comments are required 138

fr/paris/lutece/plugins/accesscontrol/service/AccessControlService.java

Rule Violation Ligne
CommentRequired Header comments are required 52124

fr/paris/lutece/plugins/accesscontrol/service/AgeAccessControllerType.java

Rule Violation Ligne
CommentRequired Header comments are required 57182
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 112
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 123

fr/paris/lutece/plugins/accesscontrol/service/CommentAccessControllerType.java

Rule Violation Ligne
CommentRequired Header comments are required 51123
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 100
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 118

fr/paris/lutece/plugins/accesscontrol/service/IAccessControlService.java

Rule Violation Ligne
CommentRequired Header comments are required 4590

fr/paris/lutece/plugins/accesscontrol/service/IAccessControllerType.java

Rule Violation Ligne
UncommentedEmptyMethodBody Document empty method body 7879
UncommentedEmptyMethodBody Document empty method body 99100

fr/paris/lutece/plugins/accesscontrol/service/IPersistentDataHandler.java

Rule Violation Ligne
CommentRequired Header comments are required 4487
CommentRequired Public method and constructor comments are required 47

fr/paris/lutece/plugins/accesscontrol/service/LuteceUserCodeAccessControllerType.java

Rule Violation Ligne
CommentRequired Header comments are required 4580

fr/paris/lutece/plugins/accesscontrol/service/TosAccessControllerType.java

Rule Violation Ligne
CommentRequired Header comments are required 51137
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 102
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 121

fr/paris/lutece/plugins/accesscontrol/service/UserCodeAccessControllerType.java

Rule Violation Ligne
CommentRequired Header comments are required 4273

fr/paris/lutece/plugins/accesscontrol/service/rbac/AccessControlRbacAction.java

Rule Violation Ligne
CommentRequired Header comments are required 42171

fr/paris/lutece/plugins/accesscontrol/service/rbac/AccessControlResourceIdService.java

Rule Violation Ligne
DataClass The class 'AccessControlResourceIdService' is suspected to be a Data Class (WOC=0.000%, NOPA=4, NOAM=0, WMC=1) 48123
CommentRequired Header comments are required 48123

fr/paris/lutece/plugins/accesscontrol/util/BoolCondition.java

Rule Violation Ligne
CommentRequired Enum comments are required 4056
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'BoolCondition(String)': enum constructors are implicitly private 4750
CommentRequired Public method and constructor comments are required 5255

fr/paris/lutece/plugins/accesscontrol/web/AccessControlJspBean.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34600
ImmutableField Private field '_accessControlService' could be made final; it is only initialized in the declaration or constructor. 143
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 158
ConfusingTernary Avoid if (x != y) ..; else ..; 175
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 283

fr/paris/lutece/plugins/accesscontrol/web/AccessControlXPage.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34248
CommentRequired Header comments are required 74248
ImmutableField Private field '_service' could be made final; it is only initialized in the declaration or constructor. 114
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 135
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 153
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 225
CommentRequired Public method and constructor comments are required 226240
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 242
CommentRequired Public method and constructor comments are required 243247

fr/paris/lutece/plugins/accesscontrol/web/UserCodeControllerJspBean.java

Rule Violation Ligne
ImmutableField Private field '_accessControlService' could be made final; it is only initialized in the declaration or constructor. 90
CommentRequired Public method and constructor comments are required 111114
CommentRequired Public method and constructor comments are required 117148

Fichiers

fr/paris/lutece/plugins/accesscontrol/business/AccessControl.java

Rule Violation Priority Ligne
MissingOverride The method 'getWorkgroup()' is missing an @Override annotation. 3 188191

fr/paris/lutece/plugins/accesscontrol/business/AccessControlDAO.java

Rule Violation Priority Ligne
AssignmentInOperand Avoid assignments in operands 3 275
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 275

fr/paris/lutece/plugins/accesscontrol/business/AccessControlFilter.java

Rule Violation Priority Ligne
RedundantFieldInitializer Avoid using redundant field initializer for '_strName' 3 51
CommentRequired Public method and constructor comments are required 3 5356
CommentRequired Public method and constructor comments are required 3 5861
CommentRequired Public method and constructor comments are required 3 121125

fr/paris/lutece/plugins/accesscontrol/business/AccessControlResource.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 3692

fr/paris/lutece/plugins/accesscontrol/business/AccessControlResourceDAO.java

Rule Violation Priority Ligne
ShortVariable Avoid variables with short names like id 3 92

fr/paris/lutece/plugins/accesscontrol/business/UserCodeControllerData.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 38113

fr/paris/lutece/plugins/accesscontrol/business/UserCodeControllerDataHome.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 42134

fr/paris/lutece/plugins/accesscontrol/service/AbstractPersistentAccessControllerType.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 51132
CommentRequired Protected method constructor comments are required 3 5977
CommentRequired Protected method constructor comments are required 3 101119
ConfusingTernary Avoid if (x != y) ..; else ..; 3 110118
CommentRequired Protected method constructor comments are required 3 121129
CommentRequired Protected method constructor comments are required 3 131

fr/paris/lutece/plugins/accesscontrol/service/AbstractUserCodeAccessControllerType.java

Rule Violation Priority Ligne
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 92
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 111
CommentRequired Protected method constructor comments are required 3 136
CommentRequired Protected method constructor comments are required 3 138

fr/paris/lutece/plugins/accesscontrol/service/AccessControlService.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 52124

fr/paris/lutece/plugins/accesscontrol/service/AgeAccessControllerType.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 57182
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 112
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 123

fr/paris/lutece/plugins/accesscontrol/service/CommentAccessControllerType.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 51123
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 100
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 118

fr/paris/lutece/plugins/accesscontrol/service/IAccessControlService.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 4590

fr/paris/lutece/plugins/accesscontrol/service/IAccessControllerType.java

Rule Violation Priority Ligne
UncommentedEmptyMethodBody Document empty method body 3 7879
UncommentedEmptyMethodBody Document empty method body 3 99100

fr/paris/lutece/plugins/accesscontrol/service/IPersistentDataHandler.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 4487
CommentRequired Public method and constructor comments are required 3 47

fr/paris/lutece/plugins/accesscontrol/service/LuteceUserCodeAccessControllerType.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 4580

fr/paris/lutece/plugins/accesscontrol/service/TosAccessControllerType.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 51137
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 102
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 121

fr/paris/lutece/plugins/accesscontrol/service/UserCodeAccessControllerType.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 4273

fr/paris/lutece/plugins/accesscontrol/service/rbac/AccessControlRbacAction.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 42171

fr/paris/lutece/plugins/accesscontrol/service/rbac/AccessControlResourceIdService.java

Rule Violation Priority Ligne
DataClass The class 'AccessControlResourceIdService' is suspected to be a Data Class (WOC=0.000%, NOPA=4, NOAM=0, WMC=1) 3 48123
CommentRequired Header comments are required 3 48123

fr/paris/lutece/plugins/accesscontrol/util/BoolCondition.java

Rule Violation Priority Ligne
CommentRequired Enum comments are required 3 4056
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'BoolCondition(String)': enum constructors are implicitly private 3 4750
CommentRequired Public method and constructor comments are required 3 5255

fr/paris/lutece/plugins/accesscontrol/web/AccessControlJspBean.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34600
ImmutableField Private field '_accessControlService' could be made final; it is only initialized in the declaration or constructor. 3 143
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 158
ConfusingTernary Avoid if (x != y) ..; else ..; 3 175
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 283

fr/paris/lutece/plugins/accesscontrol/web/AccessControlXPage.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34248
CommentRequired Header comments are required 3 74248
ImmutableField Private field '_service' could be made final; it is only initialized in the declaration or constructor. 3 114
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 135
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 153
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 225
CommentRequired Public method and constructor comments are required 3 226240
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 242
CommentRequired Public method and constructor comments are required 3 243247

fr/paris/lutece/plugins/accesscontrol/web/UserCodeControllerJspBean.java

Rule Violation Priority Ligne
ImmutableField Private field '_accessControlService' could be made final; it is only initialized in the declaration or constructor. 3 90
CommentRequired Public method and constructor comments are required 3 111114
CommentRequired Public method and constructor comments are required 3 117148