Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.13.0.

Violations By Priority

Priority 1

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

Rule Violation Line
FieldNamingConventions The field name 'ATTRIBUTE_USER_MAPPING' doesn't match '_[a-z][a-zA-Z0-9]*' 70

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

Rule Violation Line
ClassNamingConventions The utility class name 'AutoExportWssoUsersFile' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 4366

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

Rule Violation Line
AvoidFileStream Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter 176

Priority 3

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

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 6971
CallSuperInConstructor It is a good practice to call super() in a constructor 6971
UncommentedEmptyConstructor Document empty constructor 6971
MissingOverride The method 'getAuthServiceName()' is missing an @Override annotation. 7780
MissingOverride The method 'getAuthType(HttpServletRequest)' is missing an @Override annotation. 87103
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 92100
MissingOverride The method 'login(String, String, HttpServletRequest)' is missing an @Override annotation. 114121
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'luteceUser' 120
MissingOverride The method 'logout(LuteceUser)' is missing an @Override annotation. 127129
UncommentedEmptyMethodBody Document empty method body 128129
MissingOverride The method 'getAnonymousUser()' is missing an @Override annotation. 136140
MissingOverride The method 'isUserInRole(LuteceUser, HttpServletRequest, String)' is missing an @Override annotation. 149170
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 160166
MissingOverride The method 'getHttpAuthenticatedUser(HttpServletRequest)' is missing an @Override annotation. 177215
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 185193
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 207210
MissingOverride The method 'isUsersListAvailable()' is missing an @Override annotation. 221224
MissingOverride The method 'getUsers()' is missing an @Override annotation. 230243
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 235
MissingOverride The method 'getUser(String)' is missing an @Override annotation. 250258
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'user' 257
MissingOverride The method 'getRolesByUser(LuteceUser)' is missing an @Override annotation. 266269
MissingOverride The method 'getIconUrl()' is missing an @Override annotation. 275278
MissingOverride The method 'getName()' is missing an @Override annotation. 284287
MissingOverride The method 'getPluginName()' is missing an @Override annotation. 293296
MissingOverride The method 'isMultiAuthenticationSupported()' is missing an @Override annotation. 302305

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

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 4455

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

Rule Violation Line
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getInstance method if you want a default access modifier 6770
DefaultPackage Use explicit scoping instead of the default package private level 6770
MissingOverride The method 'findUserByGuid(String, Plugin, LuteceAuthentication)' is missing an @Override annotation. 80104
MissingOverride The method 'findUserRolesFromGuid(String, Plugin, LuteceAuthentication)' is missing an @Override annotation. 114129
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 116
MissingOverride The method 'findUsersList(Plugin, LuteceAuthentication)' is missing an @Override annotation. 153180
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 155

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

Rule Violation Line
NonThreadSafeSingleton Singleton is not thread safe 6165

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

Rule Violation Line
DefaultPackage Use explicit scoping instead of the default package private level 7376
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getInstance method if you want a default access modifier 7376
MissingOverride The method 'newPrimaryKey(Plugin)' is missing an @Override annotation. 83101
MissingOverride The method 'insert(WssoUser, Plugin)' is missing an @Override annotation. 109121
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 130152
MissingOverride The method 'delete(WssoUser, Plugin)' is missing an @Override annotation. 159166
MissingOverride The method 'store(WssoUser, Plugin)' is missing an @Override annotation. 173185
MissingOverride The method 'selectWssoUserList(Plugin)' is missing an @Override annotation. 192214
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 194
MissingOverride The method 'selectWssoUsersListForRole(int, Plugin)' is missing an @Override annotation. 222245
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 224
MissingOverride The method 'selectWssoUserListForGuid(String, Plugin)' is missing an @Override annotation. 253276
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 255

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

Rule Violation Line
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getInstance method if you want a default access modifier 6972
DefaultPackage Use explicit scoping instead of the default package private level 6972
MissingOverride The method 'selectRoleListForUser(int, Plugin)' is missing an @Override annotation. 8095
MissingOverride The method 'selectUserListForRole(String, Plugin)' is missing an @Override annotation. 103118
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 105
MissingOverride The method 'deleteRolesForUser(int, Plugin)' is missing an @Override annotation. 125132
MissingOverride The method 'createRoleForUser(int, String, Plugin)' is missing an @Override annotation. 140148

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

Rule Violation Line
MissingOverride The method 'canBeRemoved(String)' is missing an @Override annotation. 5773
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 67
SimplifyBooleanReturns Avoid unnecessary if..then..else statements when returning booleans 6770
MissingOverride The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. 8185

fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/security/WSSOSessionTrackingFilter.java

Rule Violation Line
UncommentedEmptyMethodBody Document empty method body 6768
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 96111
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 100110

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

Rule Violation Line
MissingOverride The method 'init()' is missing an @Override annotation. 4953

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

Rule Violation Line
CyclomaticComplexity The method 'init()' has a cyclomatic complexity of 10. 79143
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 91
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 106128
ConfusingTernary Avoid if (x != y) ..; else ..; 135142
ConfusingTernary Avoid if (x != y) ..; else ..; 158205
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 169201

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

Rule Violation Line
MissingOverride The method 'compare(Object, Object)' is missing an @Override annotation. 84102
CommentRequired Public method and constructor comments are required 84102
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 89
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 89
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 93
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 93
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 97
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 97
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 113115
UncommentedEmptyConstructor Document empty constructor 113115
CyclomaticComplexity The method 'getUserList(String, String, String)' has a cyclomatic complexity of 10. 124225
ExcessiveMethodLength Avoid really long methods. 124225
ShortVariable Avoid variables with short names like sr 127
CyclomaticComplexity The method 'getUserPublicData(String)' has a cyclomatic complexity of 11. 232334
ExcessiveMethodLength Avoid really long methods. 232334
ShortVariable Avoid variables with short names like sr 235
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 301
ShortVariable Avoid variables with short names like in 341
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 26 characters appended. 353
ShortVariable Avoid variables with short names like sb 353
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 354
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 355
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 356
PositionLiteralsFirstInCaseInsensitiveComparisons Position literals first in String comparisons for EqualsIgnoreCase 433
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 471
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 475

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

Rule Violation Line
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 6869
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 71
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'context' 80
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 106
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 111
ShortVariable Avoid variables with short names like sc 134
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'enumeration' 138

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

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 65388
CallSuperInConstructor It is a good practice to call super() in a constructor 117119
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 117119
UncommentedEmptyConstructor Document empty constructor 117119
PositionLiteralsFirstInComparisons Position literals first in String comparisons 163
PositionLiteralsFirstInComparisons Position literals first in String comparisons 163
PositionLiteralsFirstInComparisons Position literals first in String comparisons 163
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 170
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 196
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 197
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 198
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 215
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 380383

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

Rule Violation Line
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. 4466
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 5153
UncommentedEmptyConstructor Document empty constructor 5153
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 6065

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

Rule Violation Line
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. 61216
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 8890
UncommentedEmptyConstructor Document empty constructor 8890
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 116
AvoidCatchingNPE Avoid catching NullPointerException; consider removing the cause of the NPE. 191
IdenticalCatchBranches 'catch' branch identical to 'IOException' branch 191195
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 191

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

Rule Violation Line
CallSuperInConstructor It is a good practice to call super() in a constructor 5355
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 5355
UncommentedEmptyConstructor Document empty constructor 5355
MissingOverride The method 'run()' is missing an @Override annotation. 6065

Priority 4

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

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.lang.UnsupportedOperationException' due to existing implicit import 'java.lang.*' 139

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

Rule Violation Line
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 463

Files

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

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 6971
CallSuperInConstructor It is a good practice to call super() in a constructor 3 6971
UncommentedEmptyConstructor Document empty constructor 3 6971
MissingOverride The method 'getAuthServiceName()' is missing an @Override annotation. 3 7780
MissingOverride The method 'getAuthType(HttpServletRequest)' is missing an @Override annotation. 3 87103
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 92100
MissingOverride The method 'login(String, String, HttpServletRequest)' is missing an @Override annotation. 3 114121
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'luteceUser' 3 120
MissingOverride The method 'logout(LuteceUser)' is missing an @Override annotation. 3 127129
UncommentedEmptyMethodBody Document empty method body 3 128129
MissingOverride The method 'getAnonymousUser()' is missing an @Override annotation. 3 136140
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.lang.UnsupportedOperationException' due to existing implicit import 'java.lang.*' 4 139
MissingOverride The method 'isUserInRole(LuteceUser, HttpServletRequest, String)' is missing an @Override annotation. 3 149170
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 160166
MissingOverride The method 'getHttpAuthenticatedUser(HttpServletRequest)' is missing an @Override annotation. 3 177215
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 185193
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 207210
MissingOverride The method 'isUsersListAvailable()' is missing an @Override annotation. 3 221224
MissingOverride The method 'getUsers()' is missing an @Override annotation. 3 230243
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 235
MissingOverride The method 'getUser(String)' is missing an @Override annotation. 3 250258
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'user' 3 257
MissingOverride The method 'getRolesByUser(LuteceUser)' is missing an @Override annotation. 3 266269
MissingOverride The method 'getIconUrl()' is missing an @Override annotation. 3 275278
MissingOverride The method 'getName()' is missing an @Override annotation. 3 284287
MissingOverride The method 'getPluginName()' is missing an @Override annotation. 3 293296
MissingOverride The method 'isMultiAuthenticationSupported()' is missing an @Override annotation. 3 302305

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

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 4455

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

Rule Violation Priority Line
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getInstance method if you want a default access modifier 3 6770
DefaultPackage Use explicit scoping instead of the default package private level 3 6770
MissingOverride The method 'findUserByGuid(String, Plugin, LuteceAuthentication)' is missing an @Override annotation. 3 80104
MissingOverride The method 'findUserRolesFromGuid(String, Plugin, LuteceAuthentication)' is missing an @Override annotation. 3 114129
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 116
MissingOverride The method 'findUsersList(Plugin, LuteceAuthentication)' is missing an @Override annotation. 3 153180
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 155

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

Rule Violation Priority Line
NonThreadSafeSingleton Singleton is not thread safe 3 6165

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

Rule Violation Priority Line
DefaultPackage Use explicit scoping instead of the default package private level 3 7376
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getInstance method if you want a default access modifier 3 7376
MissingOverride The method 'newPrimaryKey(Plugin)' is missing an @Override annotation. 3 83101
MissingOverride The method 'insert(WssoUser, Plugin)' is missing an @Override annotation. 3 109121
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 3 130152
MissingOverride The method 'delete(WssoUser, Plugin)' is missing an @Override annotation. 3 159166
MissingOverride The method 'store(WssoUser, Plugin)' is missing an @Override annotation. 3 173185
MissingOverride The method 'selectWssoUserList(Plugin)' is missing an @Override annotation. 3 192214
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 194
MissingOverride The method 'selectWssoUsersListForRole(int, Plugin)' is missing an @Override annotation. 3 222245
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 224
MissingOverride The method 'selectWssoUserListForGuid(String, Plugin)' is missing an @Override annotation. 3 253276
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 255

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

Rule Violation Priority Line
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getInstance method if you want a default access modifier 3 6972
DefaultPackage Use explicit scoping instead of the default package private level 3 6972
MissingOverride The method 'selectRoleListForUser(int, Plugin)' is missing an @Override annotation. 3 8095
MissingOverride The method 'selectUserListForRole(String, Plugin)' is missing an @Override annotation. 3 103118
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 105
MissingOverride The method 'deleteRolesForUser(int, Plugin)' is missing an @Override annotation. 3 125132
MissingOverride The method 'createRoleForUser(int, String, Plugin)' is missing an @Override annotation. 3 140148

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

Rule Violation Priority Line
MissingOverride The method 'canBeRemoved(String)' is missing an @Override annotation. 3 5773
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 3 67
SimplifyBooleanReturns Avoid unnecessary if..then..else statements when returning booleans 3 6770
MissingOverride The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. 3 8185

fr/paris/lutece/plugins/mylutece/modules/wssodatabase/authentication/security/WSSOSessionTrackingFilter.java

Rule Violation Priority Line
UncommentedEmptyMethodBody Document empty method body 3 6768
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 96111
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 100110

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

Rule Violation Priority Line
MissingOverride The method 'init()' is missing an @Override annotation. 3 4953

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

Rule Violation Priority Line
FieldNamingConventions The field name 'ATTRIBUTE_USER_MAPPING' doesn't match '_[a-z][a-zA-Z0-9]*' 1 70
CyclomaticComplexity The method 'init()' has a cyclomatic complexity of 10. 3 79143
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 91
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 106128
ConfusingTernary Avoid if (x != y) ..; else ..; 3 135142
ConfusingTernary Avoid if (x != y) ..; else ..; 3 158205
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 169201

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

Rule Violation Priority Line
MissingOverride The method 'compare(Object, Object)' is missing an @Override annotation. 3 84102
CommentRequired Public method and constructor comments are required 3 84102
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 89
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 89
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 93
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 93
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 97
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 97
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 113115
UncommentedEmptyConstructor Document empty constructor 3 113115
CyclomaticComplexity The method 'getUserList(String, String, String)' has a cyclomatic complexity of 10. 3 124225
ExcessiveMethodLength Avoid really long methods. 3 124225
ShortVariable Avoid variables with short names like sr 3 127
CyclomaticComplexity The method 'getUserPublicData(String)' has a cyclomatic complexity of 11. 3 232334
ExcessiveMethodLength Avoid really long methods. 3 232334
ShortVariable Avoid variables with short names like sr 3 235
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 301
ShortVariable Avoid variables with short names like in 3 341
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 26 characters appended. 3 353
ShortVariable Avoid variables with short names like sb 3 353
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 354
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 355
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 356
PositionLiteralsFirstInCaseInsensitiveComparisons Position literals first in String comparisons for EqualsIgnoreCase 3 433
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 4 463
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 471
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 475

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

Rule Violation Priority Line
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 6869
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 3 71
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'context' 3 80
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 106
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 3 111
ShortVariable Avoid variables with short names like sc 3 134
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'enumeration' 3 138

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

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 65388
CallSuperInConstructor It is a good practice to call super() in a constructor 3 117119
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 117119
UncommentedEmptyConstructor Document empty constructor 3 117119
PositionLiteralsFirstInComparisons Position literals first in String comparisons 3 163
PositionLiteralsFirstInComparisons Position literals first in String comparisons 3 163
PositionLiteralsFirstInComparisons Position literals first in String comparisons 3 163
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 170
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 196
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 197
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 198
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 3 215
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 380383

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

Rule Violation Priority Line
ClassNamingConventions The utility class name 'AutoExportWssoUsersFile' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 4366
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 4466
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 5153
UncommentedEmptyConstructor Document empty constructor 3 5153
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 6065

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

Rule Violation Priority Line
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 61216
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 8890
UncommentedEmptyConstructor Document empty constructor 3 8890
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 116
AvoidFileStream Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter 1 176
AvoidCatchingNPE Avoid catching NullPointerException; consider removing the cause of the NPE. 3 191
IdenticalCatchBranches 'catch' branch identical to 'IOException' branch 3 191195
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 191

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

Rule Violation Priority Line
CallSuperInConstructor It is a good practice to call super() in a constructor 3 5355
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 5355
UncommentedEmptyConstructor Document empty constructor 3 5355
MissingOverride The method 'run()' is missing an @Override annotation. 3 6065