Fork me on GitHub

Résultats PMD

Le document suivant contient les résultats de PMD 5.3.5.

Fichiers

fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/IdxWSSODatabaseAuthentication.java

Violation Ligne
Document empty constructor 6870
Avoid unnecessary constructors - the compiler will generate these for you 6870
It is a good practice to call super() in a constructor 6870
Document empty method 127128
Deeply nested if..then statements are hard to read 195198
Deeply nested if..then statements are hard to read 208217

fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/business/IWssoUserDAO.java

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

fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/business/IdxWSSODatabaseDAO.java

Violation Ligne
Use explicit scoping instead of the default package private level 8689

fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/business/WssoProfilDAO.java

Violation Ligne
Use explicit scoping instead of the default package private level 7477
Avoid unused local variables such as 'wssoProfil'. 320
Avoid declaring a variable if it is unreferenced before a possible exit point. 320
Avoid unnecessary if..then..else statements when returning booleans 331334

fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/business/WssoProfilFilter.java

Violation Ligne
Avoid unnecessary constructors - the compiler will generate these for you 6971
Document empty constructor 6971

fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/business/WssoUser.java

Violation Ligne
Singleton is not thread safe 6165

fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/business/WssoUserDAO.java

Violation Ligne
Possible God class (WMC=58, ATFD=104, TCC=0.0) 34559
The class 'WssoUserDAO' has a Cyclomatic Complexity of 5 (Highest = 22). 49559
The class 'WssoUserDAO' has a Modified Cyclomatic Complexity of 4 (Highest = 18). 49559
The class 'WssoUserDAO' has a Standard Cyclomatic Complexity of 4 (Highest = 18). 49559
Use explicit scoping instead of the default package private level 7881
The method findWssoUserssByLastNameOrFirtNameOrEmailByProfil() has an NPath complexity of 242 313423
The method 'findWssoUserssByLastNameOrFirtNameOrEmailByProfil' has a Modified Cyclomatic Complexity of 18. 313423
The method 'findWssoUserssByLastNameOrFirtNameOrEmailByProfil' has a Cyclomatic Complexity of 22. 313423
Rather than using a lot of String arguments, consider using a container object for those values. 313314
Avoid really long methods. 313423
The method 'findWssoUserssByLastNameOrFirtNameOrEmailByProfil' has a Standard Cyclomatic Complexity of 18. 313423
StringBuffer constructor is initialized with size 228, but has at least 266 characters appended. 318
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 318
The String literal "AND a.email = ? " appears 4 times in this file; the first occurrence is on line 336 336
The method 'findWssoUsersByLastNameOrFirstNameOrEmailByProfil' has a Standard Cyclomatic Complexity of 18. 429536
The method 'findWssoUsersByLastNameOrFirstNameOrEmailByProfil' has a Cyclomatic Complexity of 22. 429536
The method findWssoUsersByLastNameOrFirstNameOrEmailByProfil() has an NPath complexity of 242 429536
The method 'findWssoUsersByLastNameOrFirstNameOrEmailByProfil' has a Modified Cyclomatic Complexity of 18. 429536
Avoid really long methods. 429536
StringBuffer constructor is initialized with size 136, but has at least 142 characters appended. 434
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 484
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 488
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 492
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 497
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 504
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 508
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 513

fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/business/WssoUserHome.java

Violation Ligne
Rather than using a lot of String arguments, consider using a container object for those values. 164165
Deeply nested if..then statements are hard to read 233236

fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/business/WssoUserRoleDAO.java

Violation Ligne
Use explicit scoping instead of the default package private level 6972

fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/business/WssoUserRoleRemovalListener.java

Violation Ligne
Avoid unnecessary if..then..else statements when returning booleans 6770
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 67

fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/service/ImportWssoDatabaseUserService.java

Violation Ligne
The class 'ImportWssoDatabaseUserService' has a Cyclomatic Complexity of 5 (Highest = 21). 72445
The class 'ImportWssoDatabaseUserService' has a Modified Cyclomatic Complexity of 5 (Highest = 20). 72445
The class 'ImportWssoDatabaseUserService' has a Standard Cyclomatic Complexity of 5 (Highest = 20). 72445
The method readLineOfCSVFile() has an NPath complexity of 20736 110308
Avoid really long methods. 110308
The method 'readLineOfCSVFile' has a Cyclomatic Complexity of 21. 110308
The method 'readLineOfCSVFile' has a Modified Cyclomatic Complexity of 20. 110308
The method 'readLineOfCSVFile' has a Standard Cyclomatic Complexity of 20. 110308
Avoid declaring a variable if it is unreferenced before a possible exit point. 113
Avoid declaring a variable if it is unreferenced before a possible exit point. 317
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 357
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 400
A getX() method which returns a boolean should be named isX() 431434

fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/service/WssoDatabaseService.java

Violation Ligne
When instantiating a SimpleDateFormat object, specify a Locale 137

fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/util/LdapBrowser.java

Violation Ligne
The class 'LdapBrowser' has a Modified Cyclomatic Complexity of 2 (Highest = 10). 59483
The class 'LdapBrowser' has a Standard Cyclomatic Complexity of 2 (Highest = 10). 59483
The class 'LdapBrowser' has a Cyclomatic Complexity of 3 (Highest = 11). 59483
Avoid excessively long variable names like PROPERTY_USER_DN_SEARCH_FILTER_BY_CRITERIA_GIVENNAME 69
Document empty constructor 113115
Avoid unnecessary constructors - the compiler will generate these for you 113115
Avoid really long methods. 125226
The method 'getUserList' has a Cyclomatic Complexity of 10. 125226
Avoid variables with short names like sr 128
The method 'getUserPublicData' has a Standard Cyclomatic Complexity of 10. 233335
The method 'getUserPublicData' has a Modified Cyclomatic Complexity of 10. 233335
The method 'getUserPublicData' has a Cyclomatic Complexity of 11. 233335
Avoid really long methods. 233335
Avoid variables with short names like sr 236
Avoid using Literals in Conditional Statements 302
Avoid prefixing parameters by in, out or inOut. Uses Javadoc to document this behavior. 343
Avoid variables with short names like in 343
StringBuffer constructor is initialized with size 16, but has at least 26 characters appended. 355
Avoid variables with short names like sb 355
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 356
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 357
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 358
Position literals first in String comparisons for EqualsIgnoreCase 435
Consider using varargs for methods or constructors which take an array the last parameter. 467
Avoid appending characters as strings in StringBuffer.append. 479

fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/util/LdapUtil.java

Violation Ligne
Rather than using a lot of String arguments, consider using a container object for those values. 6869
Consider replacing this Hashtable with the newer java.util.Map 71
Rather than using a lot of String arguments, consider using a container object for those values. 105
Consider replacing this Hashtable with the newer java.util.Map 110
Avoid variables with short names like sc 133

fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/web/WssodatabaseJspBean.java

Violation Ligne
A high number of imports can indicate a high degree of coupling within an object. 341540
The class 'WssodatabaseJspBean' has a Cyclomatic Complexity of 4 (Highest = 12). 1071540
Avoid really long classes. 1071540
Private field '_databaseService' could be made final; it is only initialized in the declaration or constructor. 261
Private field '_importWssoDatabaseUserService' could be made final; it is only initialized in the declaration or constructor. 262
Document empty constructor 267269
It is a good practice to call super() in a constructor 267269
Avoid unnecessary constructors - the compiler will generate these for you 267269
Position literals first in String comparisons 307
Position literals first in String comparisons 307
Position literals first in String comparisons 307
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 314
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 320
Avoid declaring a variable if it is unreferenced before a possible exit point. 358
Avoid declaring a variable if it is unreferenced before a possible exit point. 359
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 370
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 587
The method 'getManageProfils' has a Cyclomatic Complexity of 12. 606699
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 730
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 778
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 927
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1035
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1110
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1338
Avoid declaring a variable if it is unreferenced before a possible exit point. 1361
Avoid declaring a variable if it is unreferenced before a possible exit point. 1369
Avoid declaring a variable if it is unreferenced before a possible exit point. 1370
Avoid declaring a variable if it is unreferenced before a possible exit point. 1371
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1439
Avoid declaring a variable if it is unreferenced before a possible exit point. 1470
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1530

fr/paris/lutece/plugins/mylutece/modules/wssodatabase/service/AutoExportWssoUsersFile.java

Violation Ligne
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. 4456
Use block level rather than method level synchronization 5055

fr/paris/lutece/plugins/mylutece/modules/wssodatabase/service/WssoUsersFileGeneratorService.java

Violation Ligne
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. 61207
Avoid excessively long variable names like PROPERTY_XMLFILEFORMAT_ATTR_APPLICATION_WSSO_APP_ID 74
When instantiating a SimpleDateFormat object, specify a Locale 108
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 182
Avoid catching NullPointerException; consider removing the cause of the NPE. 182

fr/paris/lutece/plugins/mylutece/modules/wssodatabase/service/daemon/ExportWssoUsersDaemon.java

Violation Ligne
It is a good practice to call super() in a constructor 5355
Avoid unnecessary constructors - the compiler will generate these for you 5355
Document empty constructor 5355