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/identitydesk/business/LocalAttributeDto.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 44233
FieldNamingConventions The field name 'name' doesn't match '_[a-z][a-zA-Z0-9]*' 47
FieldNamingConventions The field name 'description' doesn't match '_[a-z][a-zA-Z0-9]*' 48
FieldNamingConventions The field name 'value' doesn't match '_[a-z][a-zA-Z0-9]*' 49
FieldNamingConventions The field name 'certifier' doesn't match '_[a-z][a-zA-Z0-9]*' 50
FieldNamingConventions The field name 'certificationLevel' doesn't match '_[a-z][a-zA-Z0-9]*' 51
FieldNamingConventions The field name 'certificationDate' doesn't match '_[a-z][a-zA-Z0-9]*' 52
FieldNamingConventions The field name 'mandatory' doesn't match '_[a-z][a-zA-Z0-9]*' 53
FieldNamingConventions The field name 'allowedCertificationList' doesn't match '_[a-z][a-zA-Z0-9]*' 54

fr/paris/lutece/plugins/identitydesk/business/LocalIdentityDto.java

Rule Violation Ligne
FieldNamingConventions The field name 'tasks' doesn't match '_[a-z][a-zA-Z0-9]*' 54

fr/paris/lutece/plugins/identitydesk/cache/ServiceAttributeKeyReferentialCache.java

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

fr/paris/lutece/plugins/identitydesk/cache/ServiceContractCache.java

Rule Violation Ligne
FieldNamingConventions The final field name '_currentClientCode' doesn't match '[a-z][a-zA-Z0-9]*' 53
FieldNamingConventions The final field name '_serviceContractService' doesn't match '[a-z][a-zA-Z0-9]*' 55
FieldNamingConventions The final field name '_sortedAttributeKeyList' doesn't match '[a-z][a-zA-Z0-9]*' 56

fr/paris/lutece/plugins/identitydesk/cache/ServiceProcessusReferentialCache.java

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

fr/paris/lutece/plugins/identitydesk/dto/ExtendedIdentityDto.java

Rule Violation Ligne
FieldNamingConventions The field name 'tasks' doesn't match '_[a-z][a-zA-Z0-9]*' 44

fr/paris/lutece/plugins/identitydesk/service/HistoryService.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1566
FieldNamingConventions The constant name '_serviceIdentity' doesn't match '[A-Z][A-Z_0-9]*' 17

fr/paris/lutece/plugins/identitydesk/service/IdentityDeskService.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 2382
FieldNamingConventions The constant name '_serviceIdentity' doesn't match '[A-Z][A-Z_0-9]*' 24
FieldNamingConventions The final field name '_currentClientCode' doesn't match '[a-z][a-zA-Z0-9]*' 25

fr/paris/lutece/plugins/identitydesk/web/IdentityJspBean.java

Rule Violation Ligne
FieldNamingConventions The constant name '_serviceContractCache' doesn't match '[A-Z][A-Z_0-9]*' 193
FieldNamingConventions The constant name '_serviceProcessusReferentialCache' doesn't match '[A-Z][A-Z_0-9]*' 194
FieldNamingConventions The constant name '_serviceAttributeKeyReferentialCache' doesn't match '[A-Z][A-Z_0-9]*' 196
FieldNamingConventions The final field name '_identityService' doesn't match '[a-z][a-zA-Z0-9]*' 211
FieldNamingConventions The final field name '_accountCreationTaskMinLevel' doesn't match '[a-z][a-zA-Z0-9]*' 212
FieldNamingConventions The final field name '_autocompleteCityEndpoint' doesn't match '[a-z][a-zA-Z0-9]*' 213
FieldNamingConventions The final field name '_autocompleteCountryEndpoint' doesn't match '[a-z][a-zA-Z0-9]*' 214
FieldNamingConventions The final field name '_searchRules' doesn't match '[a-z][a-zA-Z0-9]*' 215
FieldNamingConventions The final field name '_searchAttributeKeyStrictList' doesn't match '[a-z][a-zA-Z0-9]*' 219
FieldNamingConventions The final field name '_AttributeInfoKeyList' doesn't match '[a-z][a-zA-Z0-9]*' 222

Priority 2

fr/paris/lutece/plugins/identitydesk/cache/ServiceAttributeKeyReferentialCache.java

Rule Violation Ligne
GuardLogStatement Logger calls should be surrounded by log level guards. 65
GuardLogStatement Logger calls should be surrounded by log level guards. 75

fr/paris/lutece/plugins/identitydesk/cache/ServiceContractCache.java

Rule Violation Ligne
GuardLogStatement Logger calls should be surrounded by log level guards. 71
GuardLogStatement Logger calls should be surrounded by log level guards. 81

fr/paris/lutece/plugins/identitydesk/cache/ServiceProcessusReferentialCache.java

Rule Violation Ligne
GuardLogStatement Logger calls should be surrounded by log level guards. 65
GuardLogStatement Logger calls should be surrounded by log level guards. 75

fr/paris/lutece/plugins/identitydesk/service/IdentityDeskService.java

Rule Violation Ligne
GuardLogStatement Logger calls should be surrounded by log level guards. 78

Priority 3

fr/paris/lutece/plugins/identitydesk/business/LocalAttributeDto.java

Rule Violation Ligne
DataClass The class 'LocalAttributeDto' is suspected to be a Data Class (WOC=25.000%, NOPA=0, NOAM=12, WMC=22) 44233
CommentRequired Header comments are required 44233
ImmutableField Private field 'name' could be made final; it is only initialized in the declaration or constructor. 47
ImmutableField Private field 'description' could be made final; it is only initialized in the declaration or constructor. 48
ImmutableField Private field 'mandatory' could be made final; it is only initialized in the declaration or constructor. 53
ImmutableField Private field 'allowedCertificationList' could be made final; it is only initialized in the declaration or constructor. 54
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 61
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 62
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 63
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 64
CommentRequired Public method and constructor comments are required 8386
CommentRequired Public method and constructor comments are required 128131
CommentRequired Public method and constructor comments are required 138141
ControlStatementBraces This statement should have braces 213
ControlStatementBraces This statement should have braces 220
ControlStatementBraces This statement should have braces 225

fr/paris/lutece/plugins/identitydesk/business/LocalIdentityDto.java

Rule Violation Ligne
DataClass The class 'LocalIdentityDto' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=6) 4987
UnusedPrivateField Avoid unused private fields such as 'lastUpdateDate'. 52
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 58
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 60
CommentRequired Public method and constructor comments are required 6368

fr/paris/lutece/plugins/identitydesk/cache/ServiceAttributeKeyReferentialCache.java

Rule Violation Ligne
CommentRequired Header comments are required 4692
CommentRequired Public method and constructor comments are required 5256
CallSuperInConstructor It is a good practice to call super() in a constructor 5256
CommentRequired Public method and constructor comments are required 5866
CommentRequired Public method and constructor comments are required 6876
CommentRequired Public method and constructor comments are required 7885

fr/paris/lutece/plugins/identitydesk/cache/ServiceContractCache.java

Rule Violation Ligne
CommentRequired Header comments are required 49142
CallSuperInConstructor It is a good practice to call super() in a constructor 5862
CommentRequired Public method and constructor comments are required 5862
CommentRequired Public method and constructor comments are required 6472
CommentRequired Public method and constructor comments are required 7482
CommentRequired Public method and constructor comments are required 8493
CommentRequired Public method and constructor comments are required 95102
ShortVariable Avoid variables with short names like i1 116
ShortVariable Avoid variables with short names like i2 117

fr/paris/lutece/plugins/identitydesk/cache/ServiceProcessusReferentialCache.java

Rule Violation Ligne
CommentRequired Header comments are required 4691
CallSuperInConstructor It is a good practice to call super() in a constructor 5256
CommentRequired Public method and constructor comments are required 5256
CommentRequired Public method and constructor comments are required 5866
CommentRequired Public method and constructor comments are required 6876
CommentRequired Public method and constructor comments are required 7884

fr/paris/lutece/plugins/identitydesk/dto/ExtendedIdentityDto.java

Rule Violation Ligne
CommentRequired Header comments are required 4271
CallSuperInConstructor It is a good practice to call super() in a constructor 4662
CommentRequired Public method and constructor comments are required 4662

fr/paris/lutece/plugins/identitydesk/rbac/AccessIdentityResource.java

Rule Violation Ligne
CommentRequired Header comments are required 3860

fr/paris/lutece/plugins/identitydesk/rbac/AccessIdentityResourceIdService.java

Rule Violation Ligne
CommentRequired Header comments are required 44102
ShortVariable Avoid variables with short names like rt 59
ShortVariable Avoid variables with short names like s 97

fr/paris/lutece/plugins/identitydesk/service/HistoryService.java

Rule Violation Ligne
CommentRequired Header comments are required 1566
ImmutableField Private field '_currentClientCode' could be made final; it is only initialized in the declaration or constructor. 19
CommentRequired Public method and constructor comments are required 2632
NonThreadSafeSingleton Singleton is not thread safe 2729

fr/paris/lutece/plugins/identitydesk/service/IdentityDeskPlugin.java

Rule Violation Ligne
UncommentedEmptyMethodBody Document empty method body 5051

fr/paris/lutece/plugins/identitydesk/service/IdentityDeskService.java

Rule Violation Ligne
CommentRequired Header comments are required 2382
CommentRequired Public method and constructor comments are required 3139
NonThreadSafeSingleton Singleton is not thread safe 3336
CommentRequired Public method and constructor comments are required 4145
CommentRequired Public method and constructor comments are required 4768

fr/paris/lutece/plugins/identitydesk/web/IdentityJspBean.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 341297
GodClass Possible God Class (WMC=85, ATFD=158, TCC=28.506%) 1061297
CyclomaticComplexity The class 'IdentityJspBean' has a total cyclomatic complexity of 85 (highest 9). 1061297
ExcessiveClassLength Avoid really long classes. 1061297
TooManyFields Too many fields 1061297
TooManyMethods This class has too many methods, consider refactoring it. 1071297
ImmutableField Private field '_attributeStatuses' could be made final; it is only initialized in the declaration or constructor. 204
RedundantFieldInitializer Avoid using redundant field initializer for '_returnUrl' 206
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _canCreateIdentity field if you want a default access modifier 208
DefaultPackage Use explicit scoping instead of the default package private level 208
RedundantFieldInitializer Avoid using redundant field initializer for '_canCreateIdentity' 208
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _canWriteIdentity field if you want a default access modifier 209
RedundantFieldInitializer Avoid using redundant field initializer for '_canWriteIdentity' 209
DefaultPackage Use explicit scoping instead of the default package private level 209
ConfusingTernary Avoid if (x != y) ..; else ..; 217
CommentRequired Public method and constructor comments are required 229280
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 234
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 244
AvoidDuplicateLiterals The String literal "Error while retrieving selected identity [customerId = " appears 4 times in this file; the first occurrence is on line 253 253
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 303
CommentRequired Public method and constructor comments are required 345382
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 359
CommentRequired Public method and constructor comments are required 385388
CommentRequired Public method and constructor comments are required 391394
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 405
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 406
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 412
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 433
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 481
ConfusingTernary Avoid if (x != y) ..; else ..; 641654
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 686
CyclomaticComplexity The method 'doModifyIdentity(HttpServletRequest)' has a cyclomatic complexity of 10. 727802
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 749
ConfusingTernary Avoid if (x != y) ..; else ..; 778791
AvoidDuplicateLiterals The String literal "yyyy-MM-dd" appears 4 times in this file; the first occurrence is on line 818 818
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 818
AvoidDuplicateLiterals The String literal "dd/MM/yyyy" appears 4 times in this file; the first occurrence is on line 819 819
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 819
AvoidDuplicateLiterals The String literal "Can't convert the date: " appears 4 times in this file; the first occurrence is on line 823 823
SimplifyBooleanReturns Avoid unnecessary if..then..else statements when returning booleans 858862
NPathComplexity The method 'collectSearchAttributes(HttpServletRequest)' has an NPath complexity of 750 875936
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 896
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 897
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 923
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 957
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 958
UnusedFormalParameter Avoid unused method parameters such as 'request'. 1033
NPathComplexity The method 'getIdentityFromRequest(HttpServletRequest, String, Boolean)' has an NPath complexity of 320 10481101
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 1061
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 1065
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 1066
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1235
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 35, but has at least 53 characters appended. 1251
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 97 characters appended. 1285
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 1285

Priority 4

fr/paris/lutece/plugins/identitydesk/business/LocalIdentityDto.java

Rule Violation Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeDto' 36
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto' 37
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto' 38
UnusedImports Avoid unused imports such as 'org.apache.commons.collections.CollectionUtils' 40

fr/paris/lutece/plugins/identitydesk/service/HistoryService.java

Rule Violation Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityHistorySearchRequest' 8

Fichiers

fr/paris/lutece/plugins/identitydesk/business/LocalAttributeDto.java

Rule Violation Priority Ligne
DataClass The class 'LocalAttributeDto' is suspected to be a Data Class (WOC=25.000%, NOPA=0, NOAM=12, WMC=22) 3 44233
CommentRequired Header comments are required 3 44233
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 44233
FieldNamingConventions The field name 'name' doesn't match '_[a-z][a-zA-Z0-9]*' 1 47
ImmutableField Private field 'name' could be made final; it is only initialized in the declaration or constructor. 3 47
ImmutableField Private field 'description' could be made final; it is only initialized in the declaration or constructor. 3 48
FieldNamingConventions The field name 'description' doesn't match '_[a-z][a-zA-Z0-9]*' 1 48
FieldNamingConventions The field name 'value' doesn't match '_[a-z][a-zA-Z0-9]*' 1 49
FieldNamingConventions The field name 'certifier' doesn't match '_[a-z][a-zA-Z0-9]*' 1 50
FieldNamingConventions The field name 'certificationLevel' doesn't match '_[a-z][a-zA-Z0-9]*' 1 51
FieldNamingConventions The field name 'certificationDate' doesn't match '_[a-z][a-zA-Z0-9]*' 1 52
ImmutableField Private field 'mandatory' could be made final; it is only initialized in the declaration or constructor. 3 53
FieldNamingConventions The field name 'mandatory' doesn't match '_[a-z][a-zA-Z0-9]*' 1 53
FieldNamingConventions The field name 'allowedCertificationList' doesn't match '_[a-z][a-zA-Z0-9]*' 1 54
ImmutableField Private field 'allowedCertificationList' could be made final; it is only initialized in the declaration or constructor. 3 54
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 61
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 62
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 63
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 64
CommentRequired Public method and constructor comments are required 3 8386
CommentRequired Public method and constructor comments are required 3 128131
CommentRequired Public method and constructor comments are required 3 138141
ControlStatementBraces This statement should have braces 3 213
ControlStatementBraces This statement should have braces 3 220
ControlStatementBraces This statement should have braces 3 225

fr/paris/lutece/plugins/identitydesk/business/LocalIdentityDto.java

Rule Violation Priority Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeDto' 4 36
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto' 4 37
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto' 4 38
UnusedImports Avoid unused imports such as 'org.apache.commons.collections.CollectionUtils' 4 40
DataClass The class 'LocalIdentityDto' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=6) 3 4987
UnusedPrivateField Avoid unused private fields such as 'lastUpdateDate'. 3 52
FieldNamingConventions The field name 'tasks' doesn't match '_[a-z][a-zA-Z0-9]*' 1 54
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 58
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 60
CommentRequired Public method and constructor comments are required 3 6368

fr/paris/lutece/plugins/identitydesk/cache/ServiceAttributeKeyReferentialCache.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 4692
FieldNamingConventions The final field name '_referentialService' doesn't match '[a-z][a-zA-Z0-9]*' 1 50
CommentRequired Public method and constructor comments are required 3 5256
CallSuperInConstructor It is a good practice to call super() in a constructor 3 5256
CommentRequired Public method and constructor comments are required 3 5866
GuardLogStatement Logger calls should be surrounded by log level guards. 2 65
CommentRequired Public method and constructor comments are required 3 6876
GuardLogStatement Logger calls should be surrounded by log level guards. 2 75
CommentRequired Public method and constructor comments are required 3 7885

fr/paris/lutece/plugins/identitydesk/cache/ServiceContractCache.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 49142
FieldNamingConventions The final field name '_currentClientCode' doesn't match '[a-z][a-zA-Z0-9]*' 1 53
FieldNamingConventions The final field name '_serviceContractService' doesn't match '[a-z][a-zA-Z0-9]*' 1 55
FieldNamingConventions The final field name '_sortedAttributeKeyList' doesn't match '[a-z][a-zA-Z0-9]*' 1 56
CallSuperInConstructor It is a good practice to call super() in a constructor 3 5862
CommentRequired Public method and constructor comments are required 3 5862
CommentRequired Public method and constructor comments are required 3 6472
GuardLogStatement Logger calls should be surrounded by log level guards. 2 71
CommentRequired Public method and constructor comments are required 3 7482
GuardLogStatement Logger calls should be surrounded by log level guards. 2 81
CommentRequired Public method and constructor comments are required 3 8493
CommentRequired Public method and constructor comments are required 3 95102
ShortVariable Avoid variables with short names like i1 3 116
ShortVariable Avoid variables with short names like i2 3 117

fr/paris/lutece/plugins/identitydesk/cache/ServiceProcessusReferentialCache.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 4691
FieldNamingConventions The final field name '_referentialService' doesn't match '[a-z][a-zA-Z0-9]*' 1 50
CallSuperInConstructor It is a good practice to call super() in a constructor 3 5256
CommentRequired Public method and constructor comments are required 3 5256
CommentRequired Public method and constructor comments are required 3 5866
GuardLogStatement Logger calls should be surrounded by log level guards. 2 65
CommentRequired Public method and constructor comments are required 3 6876
GuardLogStatement Logger calls should be surrounded by log level guards. 2 75
CommentRequired Public method and constructor comments are required 3 7884

fr/paris/lutece/plugins/identitydesk/dto/ExtendedIdentityDto.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 4271
FieldNamingConventions The field name 'tasks' doesn't match '_[a-z][a-zA-Z0-9]*' 1 44
CallSuperInConstructor It is a good practice to call super() in a constructor 3 4662
CommentRequired Public method and constructor comments are required 3 4662

fr/paris/lutece/plugins/identitydesk/rbac/AccessIdentityResource.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 3860

fr/paris/lutece/plugins/identitydesk/rbac/AccessIdentityResourceIdService.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 44102
ShortVariable Avoid variables with short names like rt 3 59
ShortVariable Avoid variables with short names like s 3 97

fr/paris/lutece/plugins/identitydesk/service/HistoryService.java

Rule Violation Priority Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityHistorySearchRequest' 4 8
CommentRequired Header comments are required 3 1566
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 1566
FieldNamingConventions The constant name '_serviceIdentity' doesn't match '[A-Z][A-Z_0-9]*' 1 17
ImmutableField Private field '_currentClientCode' could be made final; it is only initialized in the declaration or constructor. 3 19
CommentRequired Public method and constructor comments are required 3 2632
NonThreadSafeSingleton Singleton is not thread safe 3 2729

fr/paris/lutece/plugins/identitydesk/service/IdentityDeskPlugin.java

Rule Violation Priority Ligne
UncommentedEmptyMethodBody Document empty method body 3 5051

fr/paris/lutece/plugins/identitydesk/service/IdentityDeskService.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 2382
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 2382
FieldNamingConventions The constant name '_serviceIdentity' doesn't match '[A-Z][A-Z_0-9]*' 1 24
FieldNamingConventions The final field name '_currentClientCode' doesn't match '[a-z][a-zA-Z0-9]*' 1 25
CommentRequired Public method and constructor comments are required 3 3139
NonThreadSafeSingleton Singleton is not thread safe 3 3336
CommentRequired Public method and constructor comments are required 3 4145
CommentRequired Public method and constructor comments are required 3 4768
GuardLogStatement Logger calls should be surrounded by log level guards. 2 78

fr/paris/lutece/plugins/identitydesk/web/IdentityJspBean.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 341297
GodClass Possible God Class (WMC=85, ATFD=158, TCC=28.506%) 3 1061297
CyclomaticComplexity The class 'IdentityJspBean' has a total cyclomatic complexity of 85 (highest 9). 3 1061297
ExcessiveClassLength Avoid really long classes. 3 1061297
TooManyFields Too many fields 3 1061297
TooManyMethods This class has too many methods, consider refactoring it. 3 1071297
FieldNamingConventions The constant name '_serviceContractCache' doesn't match '[A-Z][A-Z_0-9]*' 1 193
FieldNamingConventions The constant name '_serviceProcessusReferentialCache' doesn't match '[A-Z][A-Z_0-9]*' 1 194
FieldNamingConventions The constant name '_serviceAttributeKeyReferentialCache' doesn't match '[A-Z][A-Z_0-9]*' 1 196
ImmutableField Private field '_attributeStatuses' could be made final; it is only initialized in the declaration or constructor. 3 204
RedundantFieldInitializer Avoid using redundant field initializer for '_returnUrl' 3 206
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _canCreateIdentity field if you want a default access modifier 3 208
DefaultPackage Use explicit scoping instead of the default package private level 3 208
RedundantFieldInitializer Avoid using redundant field initializer for '_canCreateIdentity' 3 208
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _canWriteIdentity field if you want a default access modifier 3 209
RedundantFieldInitializer Avoid using redundant field initializer for '_canWriteIdentity' 3 209
DefaultPackage Use explicit scoping instead of the default package private level 3 209
FieldNamingConventions The final field name '_identityService' doesn't match '[a-z][a-zA-Z0-9]*' 1 211
FieldNamingConventions The final field name '_accountCreationTaskMinLevel' doesn't match '[a-z][a-zA-Z0-9]*' 1 212
FieldNamingConventions The final field name '_autocompleteCityEndpoint' doesn't match '[a-z][a-zA-Z0-9]*' 1 213
FieldNamingConventions The final field name '_autocompleteCountryEndpoint' doesn't match '[a-z][a-zA-Z0-9]*' 1 214
FieldNamingConventions The final field name '_searchRules' doesn't match '[a-z][a-zA-Z0-9]*' 1 215
ConfusingTernary Avoid if (x != y) ..; else ..; 3 217
FieldNamingConventions The final field name '_searchAttributeKeyStrictList' doesn't match '[a-z][a-zA-Z0-9]*' 1 219
FieldNamingConventions The final field name '_AttributeInfoKeyList' doesn't match '[a-z][a-zA-Z0-9]*' 1 222
CommentRequired Public method and constructor comments are required 3 229280
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 234
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 244
AvoidDuplicateLiterals The String literal "Error while retrieving selected identity [customerId = " appears 4 times in this file; the first occurrence is on line 253 3 253
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 303
CommentRequired Public method and constructor comments are required 3 345382
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 359
CommentRequired Public method and constructor comments are required 3 385388
CommentRequired Public method and constructor comments are required 3 391394
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 405
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 406
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 412
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 433
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 481
ConfusingTernary Avoid if (x != y) ..; else ..; 3 641654
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 686
CyclomaticComplexity The method 'doModifyIdentity(HttpServletRequest)' has a cyclomatic complexity of 10. 3 727802
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 749
ConfusingTernary Avoid if (x != y) ..; else ..; 3 778791
AvoidDuplicateLiterals The String literal "yyyy-MM-dd" appears 4 times in this file; the first occurrence is on line 818 3 818
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 818
AvoidDuplicateLiterals The String literal "dd/MM/yyyy" appears 4 times in this file; the first occurrence is on line 819 3 819
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 819
AvoidDuplicateLiterals The String literal "Can't convert the date: " appears 4 times in this file; the first occurrence is on line 823 3 823
SimplifyBooleanReturns Avoid unnecessary if..then..else statements when returning booleans 3 858862
NPathComplexity The method 'collectSearchAttributes(HttpServletRequest)' has an NPath complexity of 750 3 875936
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 896
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 897
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 3 923
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 957
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 958
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 1033
NPathComplexity The method 'getIdentityFromRequest(HttpServletRequest, String, Boolean)' has an NPath complexity of 320 3 10481101
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 1061
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 1065
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 1066
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1235
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 35, but has at least 53 characters appended. 3 1251
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 97 characters appended. 3 1285
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 3 1285