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/accountgenerator/business/IdentityAccount.java

Rule Violation Ligne
FieldNamingConventions The field name 'guid' doesn't match '_[a-z][a-zA-Z0-9]*' 40
FieldNamingConventions The field name 'cuid' doesn't match '_[a-z][a-zA-Z0-9]*' 41
FieldNamingConventions The field name 'creationDate' doesn't match '_[a-z][a-zA-Z0-9]*' 42
FieldNamingConventions The field name 'expirationDate' doesn't match '_[a-z][a-zA-Z0-9]*' 43

fr/paris/lutece/plugins/accountgenerator/business/IdentityAccountHome.java

Rule Violation Ligne
FieldNamingConventions The constant name '_dao' doesn't match '[A-Z][A-Z_0-9]*' 46
FieldNamingConventions The constant name '_plugin' doesn't match '[A-Z][A-Z_0-9]*' 47

fr/paris/lutece/plugins/accountgenerator/daemon/PurgeExpiratedIdentityAccountsDaemons.java

Rule Violation Ligne
LocalVariableNamingConventions The local variable name 'S' doesn't match '[a-z][a-zA-Z0-9]*' 57
LocalVariableNamingConventions The local variable name 'H' doesn't match '[a-z][a-zA-Z0-9]*' 58
LocalVariableNamingConventions The local variable name 'M' doesn't match '[a-z][a-zA-Z0-9]*' 59

fr/paris/lutece/plugins/accountgenerator/dto/CitiesCodesListResponse.java

Rule Violation Ligne
FieldNamingConventions The field name 'result' doesn't match '_[a-z][a-zA-Z0-9]*' 40
FieldNamingConventions The field name 'status' doesn't match '_[a-z][a-zA-Z0-9]*' 41

fr/paris/lutece/plugins/accountgenerator/dto/PurgeExipratedIdentityAccountsResult.java

Rule Violation Ligne
FieldNamingConventions The field name 'nbDeletedAccounts' doesn't match '_[a-z][a-zA-Z0-9]*' 38
FieldNamingConventions The field name 'nbDeletedIdentities' doesn't match '_[a-z][a-zA-Z0-9]*' 39

fr/paris/lutece/plugins/accountgenerator/service/GeocodesCache.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 53118
FieldNamingConventions The constant name 'geocodesCitiesCodesEndpoint' doesn't match '[A-Z][A-Z_0-9]*' 57
FieldNamingConventions The constant name 'citiesCodesDateFormat' doesn't match '[A-Z][A-Z_0-9]*' 58
FieldNamingConventions The constant name 'client' doesn't match '[A-Z][A-Z_0-9]*' 59
FieldNamingConventions The constant name '_mapper' doesn't match '[A-Z][A-Z_0-9]*' 60
FieldNamingConventions The static field name 'instance' doesn't match '_[a-z][a-zA-Z0-9]*' 62

fr/paris/lutece/plugins/accountgenerator/service/IdentityAccountGeneratorService.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 74368
FieldNamingConventions The static field name 'instance' doesn't match '_[a-z][a-zA-Z0-9]*' 77
FieldNamingConventions The constant name '_identityService' doesn't match '[A-Z][A-Z_0-9]*' 89
FieldNamingConventions The constant name '_accountManagementService' doesn't match '[A-Z][A-Z_0-9]*' 90
FieldNamingConventions The constant name '_geocodesCache' doesn't match '[A-Z][A-Z_0-9]*' 91
FieldNamingConventions The constant name 'accountManagementClientId' doesn't match '[A-Z][A-Z_0-9]*' 94
FieldNamingConventions The constant name 'accountManagementSecretId' doesn't match '[A-Z][A-Z_0-9]*' 95
FieldNamingConventions The constant name 'identityStoreClientCode' doesn't match '[A-Z][A-Z_0-9]*' 96
FieldNamingConventions The constant name 'identityStoreClientName' doesn't match '[A-Z][A-Z_0-9]*' 97
FieldNamingConventions The constant name 'commonPassword' doesn't match '[A-Z][A-Z_0-9]*' 100
FieldNamingConventions The constant name 'commonMailSuffix' doesn't match '[A-Z][A-Z_0-9]*' 101
FieldNamingConventions The constant name 'mailCertifier' doesn't match '[A-Z][A-Z_0-9]*' 102
FieldNamingConventions The constant name 'loginCertifier' doesn't match '[A-Z][A-Z_0-9]*' 103
FieldNamingConventions The constant name 'firstNameCertifier' doesn't match '[A-Z][A-Z_0-9]*' 104
FieldNamingConventions The constant name 'familyNameCertifier' doesn't match '[A-Z][A-Z_0-9]*' 105
FieldNamingConventions The constant name 'birthplaceCodeCertifier' doesn't match '[A-Z][A-Z_0-9]*' 106
FieldNamingConventions The constant name 'birthCountryCodeCertifier' doesn't match '[A-Z][A-Z_0-9]*' 107
FieldNamingConventions The constant name 'birthCountryCodeValue' doesn't match '[A-Z][A-Z_0-9]*' 108
FieldNamingConventions The constant name 'genderCertifier' doesn't match '[A-Z][A-Z_0-9]*' 109
FieldNamingConventions The constant name 'birthdateCertifier' doesn't match '[A-Z][A-Z_0-9]*' 110
FieldNamingConventions The constant name 'birthdateMaxGenerationDay' doesn't match '[A-Z][A-Z_0-9]*' 111
FieldNamingConventions The constant name 'birthdateMaxGenerationMonth' doesn't match '[A-Z][A-Z_0-9]*' 112
FieldNamingConventions The constant name 'birthdateMaxGenerationYear' doesn't match '[A-Z][A-Z_0-9]*' 113
FieldNamingConventions The constant name 'genders' doesn't match '[A-Z][A-Z_0-9]*' 116
FieldNamingConventions The constant name 'alphabet' doesn't match '[A-Z][A-Z_0-9]*' 117
FieldNamingConventions The constant name 'random' doesn't match '[A-Z][A-Z_0-9]*' 119
FieldNamingConventions The constant name 'dateTimeFormatter' doesn't match '[A-Z][A-Z_0-9]*' 121

fr/paris/lutece/plugins/accountgenerator/service/IdentityAccountPurgeService.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 55147
FieldNamingConventions The static field name 'instance' doesn't match '_[a-z][a-zA-Z0-9]*' 58
FieldNamingConventions The constant name 'accountManagementClientId' doesn't match '[A-Z][A-Z_0-9]*' 70
FieldNamingConventions The constant name 'accountManagementSecretId' doesn't match '[A-Z][A-Z_0-9]*' 71
FieldNamingConventions The constant name 'identityStoreClientCode' doesn't match '[A-Z][A-Z_0-9]*' 72
FieldNamingConventions The constant name 'identityStoreClientName' doesn't match '[A-Z][A-Z_0-9]*' 73
FieldNamingConventions The constant name '_identityService' doesn't match '[A-Z][A-Z_0-9]*' 76
FieldNamingConventions The constant name '_accountManagementService' doesn't match '[A-Z][A-Z_0-9]*' 77

fr/paris/lutece/plugins/accountgenerator/web/request/AccountGeneratorCreateRequest.java

Rule Violation Ligne
FieldNamingConventions The constant name 'generationLimit' doesn't match '[A-Z][A-Z_0-9]*' 51
FieldNamingConventions The static field name 'JSON_EXAMPLE' doesn't match '_[a-z][a-zA-Z0-9]*' 52
FieldNamingConventions The final field name '_accountGenerationRequest' doesn't match '[a-z][a-zA-Z0-9]*' 55

Priority 2

fr/paris/lutece/plugins/accountgenerator/service/IdentityAccountPurgeService.java

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

Priority 3

fr/paris/lutece/plugins/accountgenerator/AccountGeneratorPlugin.java

Rule Violation Ligne
UncommentedEmptyMethodBody Document empty method body 5051

fr/paris/lutece/plugins/accountgenerator/business/IIdentityAccountDao.java

Rule Violation Ligne
CommentRequired Header comments are required 4049
CommentRequired Public method and constructor comments are required 44
CommentRequired Public method and constructor comments are required 46
CommentRequired Public method and constructor comments are required 48

fr/paris/lutece/plugins/accountgenerator/business/IdentityAccount.java

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

fr/paris/lutece/plugins/accountgenerator/business/IdentityAccountDao.java

Rule Violation Ligne
CommentRequired Header comments are required 4397
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 52
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 68
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 82

fr/paris/lutece/plugins/accountgenerator/business/IdentityAccountHome.java

Rule Violation Ligne
CommentRequired Header comments are required 4369
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. 4469
CommentRequired Public method and constructor comments are required 4955
CommentRequired Public method and constructor comments are required 5763
CommentRequired Public method and constructor comments are required 6568

fr/paris/lutece/plugins/accountgenerator/daemon/PurgeExpiratedIdentityAccountsDaemons.java

Rule Violation Ligne
CommentRequired Header comments are required 4465
ShortVariable Avoid variables with short names like S 57
ShortVariable Avoid variables with short names like H 58
ShortVariable Avoid variables with short names like M 59

fr/paris/lutece/plugins/accountgenerator/dto/CitiesCodesListResponse.java

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

fr/paris/lutece/plugins/accountgenerator/dto/PurgeExipratedIdentityAccountsResult.java

Rule Violation Ligne
CommentRequired Header comments are required 3676
RedundantFieldInitializer Avoid using redundant field initializer for 'nbDeletedAccounts' 38
RedundantFieldInitializer Avoid using redundant field initializer for 'nbDeletedIdentities' 39
CommentRequired Public method and constructor comments are required 4144
CommentRequired Public method and constructor comments are required 4649

fr/paris/lutece/plugins/accountgenerator/service/GeocodesCache.java

Rule Violation Ligne
CommentRequired Header comments are required 53118
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 58
AvoidFieldNameMatchingMethodName Field instance has the same name as a method 62
CommentRequired Public method and constructor comments are required 6471
NonThreadSafeSingleton Singleton is not thread safe 6669
CallSuperInConstructor It is a good practice to call super() in a constructor 7380
CommentRequired Public method and constructor comments are required 82111
UnsynchronizedStaticFormatter Static Formatter objects should be accessed in a synchronized manner 84
ShortVariable Avoid variables with short names like o 88
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 107

fr/paris/lutece/plugins/accountgenerator/service/IdentityAccountGeneratorService.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34368
CommentRequired Header comments are required 74368
AvoidFieldNameMatchingMethodName Field instance has the same name as a method 77
CommentRequired Public method and constructor comments are required 7986
NonThreadSafeSingleton Singleton is not thread safe 8184
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 89
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 90
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 91
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 94
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 95
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 96
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 97
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 100
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 101
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 102
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 103
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 104
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 105
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 106
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 107
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 108
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 109
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 110
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 111
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 112
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 113
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 116
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 117118
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 119
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 120
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 121
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 124
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 125
CyclomaticComplexity The method 'createIdentityAccountBatch(AccountGenerationDto)' has a cyclomatic complexity of 14. 148264
ExcessiveMethodLength Avoid really long methods. 148264
ConfusingTernary Avoid if (x != y) ..; else ..; 204247
CommentRequired Public method and constructor comments are required 266302
CommentRequired Public method and constructor comments are required 333337
CommentRequired Public method and constructor comments are required 339342
CommentRequired Public method and constructor comments are required 344354
ShortVariable Avoid variables with short names like c 358
CommentRequired Public method and constructor comments are required 364367

fr/paris/lutece/plugins/accountgenerator/service/IdentityAccountPurgeService.java

Rule Violation Ligne
CommentRequired Header comments are required 55147
AvoidFieldNameMatchingMethodName Field instance has the same name as a method 58
CommentRequired Public method and constructor comments are required 6067
NonThreadSafeSingleton Singleton is not thread safe 6265
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 70
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 71
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 72
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 73
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 76
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 77
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 80
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 81
CommentRequired Public method and constructor comments are required 95145
CyclomaticComplexity The method 'purge()' has a cyclomatic complexity of 10. 95145
ConfusingTernary Avoid if (x != y) ..; else ..; 104124
AvoidDuplicateLiterals The String literal " : " appears 4 times in this file; the first occurrence is on line 109 109

fr/paris/lutece/plugins/accountgenerator/web/request/AccountGeneratorCreateRequest.java

Rule Violation Ligne
CommentRequired Header comments are required 49120
CommentRequired Public method and constructor comments are required 5762
UncommentedEmptyMethodBody Document empty method body 6567
UncommentedEmptyMethodBody Document empty method body 7880
UncommentedEmptyMethodBody Document empty method body 8385
UncommentedEmptyMethodBody Document empty method body 8890
UncommentedEmptyMethodBody Document empty method body 9395

fr/paris/lutece/plugins/accountgenerator/web/rs/AccountGeneratorRestService.java

Rule Violation Ligne
CommentRequired Header comments are required 5269
CommentRequired Public method and constructor comments are required 5968
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 5961

Fichiers

fr/paris/lutece/plugins/accountgenerator/AccountGeneratorPlugin.java

Rule Violation Priority Ligne
UncommentedEmptyMethodBody Document empty method body 3 5051

fr/paris/lutece/plugins/accountgenerator/business/IIdentityAccountDao.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 4049
CommentRequired Public method and constructor comments are required 3 44
CommentRequired Public method and constructor comments are required 3 46
CommentRequired Public method and constructor comments are required 3 48

fr/paris/lutece/plugins/accountgenerator/business/IdentityAccount.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 3884
DataClass The class 'IdentityAccount' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=8, WMC=8) 3 3884
FieldNamingConventions The field name 'guid' doesn't match '_[a-z][a-zA-Z0-9]*' 1 40
FieldNamingConventions The field name 'cuid' doesn't match '_[a-z][a-zA-Z0-9]*' 1 41
FieldNamingConventions The field name 'creationDate' doesn't match '_[a-z][a-zA-Z0-9]*' 1 42
FieldNamingConventions The field name 'expirationDate' doesn't match '_[a-z][a-zA-Z0-9]*' 1 43

fr/paris/lutece/plugins/accountgenerator/business/IdentityAccountDao.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 4397
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 3 52
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 3 68
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 3 82

fr/paris/lutece/plugins/accountgenerator/business/IdentityAccountHome.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 4369
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 4469
FieldNamingConventions The constant name '_dao' doesn't match '[A-Z][A-Z_0-9]*' 1 46
FieldNamingConventions The constant name '_plugin' doesn't match '[A-Z][A-Z_0-9]*' 1 47
CommentRequired Public method and constructor comments are required 3 4955
CommentRequired Public method and constructor comments are required 3 5763
CommentRequired Public method and constructor comments are required 3 6568

fr/paris/lutece/plugins/accountgenerator/daemon/PurgeExpiratedIdentityAccountsDaemons.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 4465
LocalVariableNamingConventions The local variable name 'S' doesn't match '[a-z][a-zA-Z0-9]*' 1 57
ShortVariable Avoid variables with short names like S 3 57
ShortVariable Avoid variables with short names like H 3 58
LocalVariableNamingConventions The local variable name 'H' doesn't match '[a-z][a-zA-Z0-9]*' 1 58
ShortVariable Avoid variables with short names like M 3 59
LocalVariableNamingConventions The local variable name 'M' doesn't match '[a-z][a-zA-Z0-9]*' 1 59

fr/paris/lutece/plugins/accountgenerator/dto/CitiesCodesListResponse.java

Rule Violation Priority Ligne
DataClass The class 'CitiesCodesListResponse' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=4) 3 3862
CommentRequired Header comments are required 3 3862
FieldNamingConventions The field name 'result' doesn't match '_[a-z][a-zA-Z0-9]*' 1 40
FieldNamingConventions The field name 'status' doesn't match '_[a-z][a-zA-Z0-9]*' 1 41

fr/paris/lutece/plugins/accountgenerator/dto/PurgeExipratedIdentityAccountsResult.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 3676
RedundantFieldInitializer Avoid using redundant field initializer for 'nbDeletedAccounts' 3 38
FieldNamingConventions The field name 'nbDeletedAccounts' doesn't match '_[a-z][a-zA-Z0-9]*' 1 38
FieldNamingConventions The field name 'nbDeletedIdentities' doesn't match '_[a-z][a-zA-Z0-9]*' 1 39
RedundantFieldInitializer Avoid using redundant field initializer for 'nbDeletedIdentities' 3 39
CommentRequired Public method and constructor comments are required 3 4144
CommentRequired Public method and constructor comments are required 3 4649

fr/paris/lutece/plugins/accountgenerator/service/GeocodesCache.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 53118
CommentRequired Header comments are required 3 53118
FieldNamingConventions The constant name 'geocodesCitiesCodesEndpoint' doesn't match '[A-Z][A-Z_0-9]*' 1 57
FieldNamingConventions The constant name 'citiesCodesDateFormat' doesn't match '[A-Z][A-Z_0-9]*' 1 58
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 58
FieldNamingConventions The constant name 'client' doesn't match '[A-Z][A-Z_0-9]*' 1 59
FieldNamingConventions The constant name '_mapper' doesn't match '[A-Z][A-Z_0-9]*' 1 60
AvoidFieldNameMatchingMethodName Field instance has the same name as a method 3 62
FieldNamingConventions The static field name 'instance' doesn't match '_[a-z][a-zA-Z0-9]*' 1 62
CommentRequired Public method and constructor comments are required 3 6471
NonThreadSafeSingleton Singleton is not thread safe 3 6669
CallSuperInConstructor It is a good practice to call super() in a constructor 3 7380
CommentRequired Public method and constructor comments are required 3 82111
UnsynchronizedStaticFormatter Static Formatter objects should be accessed in a synchronized manner 3 84
ShortVariable Avoid variables with short names like o 3 88
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 107

fr/paris/lutece/plugins/accountgenerator/service/IdentityAccountGeneratorService.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34368
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 74368
CommentRequired Header comments are required 3 74368
AvoidFieldNameMatchingMethodName Field instance has the same name as a method 3 77
FieldNamingConventions The static field name 'instance' doesn't match '_[a-z][a-zA-Z0-9]*' 1 77
CommentRequired Public method and constructor comments are required 3 7986
NonThreadSafeSingleton Singleton is not thread safe 3 8184
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 89
FieldNamingConventions The constant name '_identityService' doesn't match '[A-Z][A-Z_0-9]*' 1 89
FieldNamingConventions The constant name '_accountManagementService' doesn't match '[A-Z][A-Z_0-9]*' 1 90
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 90
FieldNamingConventions The constant name '_geocodesCache' doesn't match '[A-Z][A-Z_0-9]*' 1 91
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 91
FieldNamingConventions The constant name 'accountManagementClientId' doesn't match '[A-Z][A-Z_0-9]*' 1 94
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 94
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 95
FieldNamingConventions The constant name 'accountManagementSecretId' doesn't match '[A-Z][A-Z_0-9]*' 1 95
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 96
FieldNamingConventions The constant name 'identityStoreClientCode' doesn't match '[A-Z][A-Z_0-9]*' 1 96
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 97
FieldNamingConventions The constant name 'identityStoreClientName' doesn't match '[A-Z][A-Z_0-9]*' 1 97
FieldNamingConventions The constant name 'commonPassword' doesn't match '[A-Z][A-Z_0-9]*' 1 100
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 100
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 101
FieldNamingConventions The constant name 'commonMailSuffix' doesn't match '[A-Z][A-Z_0-9]*' 1 101
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 102
FieldNamingConventions The constant name 'mailCertifier' doesn't match '[A-Z][A-Z_0-9]*' 1 102
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 103
FieldNamingConventions The constant name 'loginCertifier' doesn't match '[A-Z][A-Z_0-9]*' 1 103
FieldNamingConventions The constant name 'firstNameCertifier' doesn't match '[A-Z][A-Z_0-9]*' 1 104
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 104
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 105
FieldNamingConventions The constant name 'familyNameCertifier' doesn't match '[A-Z][A-Z_0-9]*' 1 105
FieldNamingConventions The constant name 'birthplaceCodeCertifier' doesn't match '[A-Z][A-Z_0-9]*' 1 106
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 106
FieldNamingConventions The constant name 'birthCountryCodeCertifier' doesn't match '[A-Z][A-Z_0-9]*' 1 107
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 107
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 108
FieldNamingConventions The constant name 'birthCountryCodeValue' doesn't match '[A-Z][A-Z_0-9]*' 1 108
FieldNamingConventions The constant name 'genderCertifier' doesn't match '[A-Z][A-Z_0-9]*' 1 109
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 109
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 110
FieldNamingConventions The constant name 'birthdateCertifier' doesn't match '[A-Z][A-Z_0-9]*' 1 110
FieldNamingConventions The constant name 'birthdateMaxGenerationDay' doesn't match '[A-Z][A-Z_0-9]*' 1 111
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 111
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 112
FieldNamingConventions The constant name 'birthdateMaxGenerationMonth' doesn't match '[A-Z][A-Z_0-9]*' 1 112
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 113
FieldNamingConventions The constant name 'birthdateMaxGenerationYear' doesn't match '[A-Z][A-Z_0-9]*' 1 113
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 116
FieldNamingConventions The constant name 'genders' doesn't match '[A-Z][A-Z_0-9]*' 1 116
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 117118
FieldNamingConventions The constant name 'alphabet' doesn't match '[A-Z][A-Z_0-9]*' 1 117
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 119
FieldNamingConventions The constant name 'random' doesn't match '[A-Z][A-Z_0-9]*' 1 119
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 120
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 121
FieldNamingConventions The constant name 'dateTimeFormatter' doesn't match '[A-Z][A-Z_0-9]*' 1 121
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 124
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 125
CyclomaticComplexity The method 'createIdentityAccountBatch(AccountGenerationDto)' has a cyclomatic complexity of 14. 3 148264
ExcessiveMethodLength Avoid really long methods. 3 148264
ConfusingTernary Avoid if (x != y) ..; else ..; 3 204247
CommentRequired Public method and constructor comments are required 3 266302
CommentRequired Public method and constructor comments are required 3 333337
CommentRequired Public method and constructor comments are required 3 339342
CommentRequired Public method and constructor comments are required 3 344354
ShortVariable Avoid variables with short names like c 3 358
CommentRequired Public method and constructor comments are required 3 364367

fr/paris/lutece/plugins/accountgenerator/service/IdentityAccountPurgeService.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 55147
CommentRequired Header comments are required 3 55147
FieldNamingConventions The static field name 'instance' doesn't match '_[a-z][a-zA-Z0-9]*' 1 58
AvoidFieldNameMatchingMethodName Field instance has the same name as a method 3 58
CommentRequired Public method and constructor comments are required 3 6067
NonThreadSafeSingleton Singleton is not thread safe 3 6265
FieldNamingConventions The constant name 'accountManagementClientId' doesn't match '[A-Z][A-Z_0-9]*' 1 70
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 70
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 71
FieldNamingConventions The constant name 'accountManagementSecretId' doesn't match '[A-Z][A-Z_0-9]*' 1 71
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 72
FieldNamingConventions The constant name 'identityStoreClientCode' doesn't match '[A-Z][A-Z_0-9]*' 1 72
FieldNamingConventions The constant name 'identityStoreClientName' doesn't match '[A-Z][A-Z_0-9]*' 1 73
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 73
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 76
FieldNamingConventions The constant name '_identityService' doesn't match '[A-Z][A-Z_0-9]*' 1 76
FieldNamingConventions The constant name '_accountManagementService' doesn't match '[A-Z][A-Z_0-9]*' 1 77
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 77
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 80
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 81
CommentRequired Public method and constructor comments are required 3 95145
CyclomaticComplexity The method 'purge()' has a cyclomatic complexity of 10. 3 95145
ConfusingTernary Avoid if (x != y) ..; else ..; 3 104124
GuardLogStatement Logger calls should be surrounded by log level guards. 2 109
AvoidDuplicateLiterals The String literal " : " appears 4 times in this file; the first occurrence is on line 109 3 109
GuardLogStatement Logger calls should be surrounded by log level guards. 2 132

fr/paris/lutece/plugins/accountgenerator/web/request/AccountGeneratorCreateRequest.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 49120
FieldNamingConventions The constant name 'generationLimit' doesn't match '[A-Z][A-Z_0-9]*' 1 51
FieldNamingConventions The static field name 'JSON_EXAMPLE' doesn't match '_[a-z][a-zA-Z0-9]*' 1 52
FieldNamingConventions The final field name '_accountGenerationRequest' doesn't match '[a-z][a-zA-Z0-9]*' 1 55
CommentRequired Public method and constructor comments are required 3 5762
UncommentedEmptyMethodBody Document empty method body 3 6567
UncommentedEmptyMethodBody Document empty method body 3 7880
UncommentedEmptyMethodBody Document empty method body 3 8385
UncommentedEmptyMethodBody Document empty method body 3 8890
UncommentedEmptyMethodBody Document empty method body 3 9395

fr/paris/lutece/plugins/accountgenerator/web/rs/AccountGeneratorRestService.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 5269
CommentRequired Public method and constructor comments are required 3 5968
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 5961