Fork me on GitHub

PMD Results

The following document contains the results of PMD 5.3.5.

Files

fr/paris/lutece/plugins/mylutece/modules/openiddatabase/authentication/BaseAuthentication.java

Violation Line
A high number of imports can indicate a high degree of coupling within an object. 34–661
Possible God class (WMC=51, ATFD=89, TCC=0.03162055335968379) 34–661
The class 'BaseAuthentication' has a Cyclomatic Complexity of 2 (Highest = 11). 100–661
The class 'BaseAuthentication' has a Standard Cyclomatic Complexity of 2 (Highest = 10). 100–661
The class 'BaseAuthentication' has a Modified Cyclomatic Complexity of 2 (Highest = 10). 100–661
Possible unsafe assignment to a non-final static field in a constructor. 112
The Logger variable declaration does not contain the static and final modifiers 113
Position literals first in String comparisons 185
Document empty method 254–255
Avoid declaring a variable if it is unreferenced before a possible exit point. 339
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks 469
The method 'verifyResponse' has a Modified Cyclomatic Complexity of 10. 496–614
The method 'verifyResponse' has a Cyclomatic Complexity of 11. 496–614
The method 'verifyResponse' has a Standard Cyclomatic Complexity of 10. 496–614
Avoid really long methods. 496–614
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks 500
Avoid appending characters as strings in StringBuffer.append. 520
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks 529
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks 539
Avoid empty if statements 603–604

fr/paris/lutece/plugins/mylutece/modules/openiddatabase/authentication/business/IManageUsers.java

Violation Line
Avoid using implementation types like 'ArrayList'; use the interface instead 74
Avoid using implementation types like 'ArrayList'; use the interface instead 74
Avoid using implementation types like 'ArrayList'; use the interface instead 98
Avoid using implementation types like 'ArrayList'; use the interface instead 98

fr/paris/lutece/plugins/mylutece/modules/openiddatabase/authentication/business/OpenIdDatabaseDAO.java

Violation Line
Use explicit scoping instead of the default package private level 72–75
Avoid using implementation types like 'ArrayList'; use the interface instead 147
Avoid using implementation types like 'ArrayList'; use the interface instead 147
Avoid using implementation types like 'ArrayList'; use the interface instead 201
Avoid using implementation types like 'ArrayList'; use the interface instead 201

fr/paris/lutece/plugins/mylutece/modules/openiddatabase/authentication/business/OpenIdDatabaseHome.java

Violation Line
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. 49–143
Avoid using implementation types like 'ArrayList'; use the interface instead 85
Avoid using implementation types like 'ArrayList'; use the interface instead 85
Avoid using implementation types like 'ArrayList'; use the interface instead 118
Avoid using implementation types like 'ArrayList'; use the interface instead 118

fr/paris/lutece/plugins/mylutece/modules/openiddatabase/authentication/business/OpenIdDatabaseUser.java

Violation Line
Avoid unused imports such as 'fr.paris.lutece.portal.service.mail.MailService' 36
Avoid unused imports such as 'fr.paris.lutece.portal.service.mail.MailService' 36

fr/paris/lutece/plugins/mylutece/modules/openiddatabase/authentication/business/OpenIdDatabaseUserDAO.java

Violation Line
Use explicit scoping instead of the default package private level 71–74

fr/paris/lutece/plugins/mylutece/modules/openiddatabase/authentication/business/OpenIdDatabaseUserHome.java

Violation Line
Avoid unused imports such as 'java.util.HashMap' 40
Avoid unused imports such as 'java.util.HashMap' 40

fr/paris/lutece/plugins/mylutece/modules/openiddatabase/authentication/business/PasswordRecoveryByLinkDAO.java

Violation Line
Use explicit scoping instead of the default package private level 73–76

fr/paris/lutece/plugins/mylutece/modules/openiddatabase/authentication/web/MyLuteceOpenIdDatabaseApp.java

Violation Line
A high number of imports can indicate a high degree of coupling within an object. 34–1019
Possible God class (WMC=99, ATFD=153, TCC=0.18803418803418803) 34–1019
The class 'MyLuteceOpenIdDatabaseApp' has a Cyclomatic Complexity of 5 (Highest = 22). 76–1019
Avoid unused private fields such as '_logger'. 181
The Logger variable declaration does not contain the static and final modifiers 181
Private field '_captchaService' could be made final; it is only initialized in the declaration or constructor. 185
The method 'getPage' has a Cyclomatic Complexity of 11. 224–269
Avoid declaring a variable if it is unreferenced before a possible exit point. 354
Avoid variables with short names like t 373
Avoid variables with short names like t 426
The method 'doCreateAccount' has a Cyclomatic Complexity of 22. 439–516
The method doCreateAccount() has an NPath complexity of 2106 439–516
These nested if statements could be combined 491–494
Avoid variables with short names like t 536
Avoid variables with short names like t 562
Avoid variables with short names like t 586
The method doChangePassword() has an NPath complexity of 1134 599–659
The method 'doChangePassword' has a Cyclomatic Complexity of 16. 599–659
Avoid declaring a variable if it is unreferenced before a possible exit point. 607
Avoid declaring a variable if it is unreferenced before a possible exit point. 609
Avoid declaring a variable if it is unreferenced before a possible exit point. 610
Avoid declaring a variable if it is unreferenced before a possible exit point. 611
The method 'doChangePasswordLink' has a Cyclomatic Complexity of 12. 666–733
The method doChangePasswordLink() has an NPath complexity of 270 666–733
Avoid declaring a variable if it is unreferenced before a possible exit point. 674
Avoid declaring a variable if it is unreferenced before a possible exit point. 677
Avoid declaring a variable if it is unreferenced before a possible exit point. 678
The method 'doSendPassword' has a Cyclomatic Complexity of 12. 761–823
Position literals first in String comparisons 803
Position literals first in String comparisons 803
Position literals first in String comparisons 803
Avoid using Literals in Conditional Statements 861
Avoid unused private methods such as 'getMessageUrl(HttpServletRequest,String)'. 952
The method 'doModifyUserDetails' has a Cyclomatic Complexity of 12. 966–1018

fr/paris/lutece/plugins/mylutece/modules/openiddatabase/authentication/web/OpenIdDatabaseJspBean.java

Violation Line
The class 'OpenIdDatabaseJspBean' has a Cyclomatic Complexity of 4 (Highest = 10). 65–461
Avoid unused private fields such as 'PROPERTY_PAGE_TITLE_MANAGE_GROUPS_USER'. 82
Avoid unused private fields such as 'MESSAGE_ERROR_MANAGE_GROUPS'. 92
Avoid unused private fields such as 'PARAMETER_MYLUTECE_DATABASE_GROUP_KEY'. 98
Avoid unused private fields such as 'MARK_GROUPS_LIST'. 111
Avoid unused private fields such as 'MARK_GROUPS_LIST_FOR_USER'. 112
Avoid unused private fields such as 'TEMPLATE_MANAGE_GROUPS_USER'. 120
The method 'doModifyUser' has a Cyclomatic Complexity of 10. 223–268
Avoid declaring a variable if it is unreferenced before a possible exit point. 358