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/profiles/utils/constants/ProfilesConstants.java

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

Priority 3

fr/paris/lutece/plugins/profiles/business/IProfileDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 52441

fr/paris/lutece/plugins/profiles/business/Profile.java

Rule Violation Line
MissingOverride The method 'getResourceId()' is missing an @Override annotation. 99102
MissingOverride The method 'getResourceTypeCode()' is missing an @Override annotation. 109112

fr/paris/lutece/plugins/profiles/business/ProfileAction.java

Rule Violation Line
MissingOverride The method 'getPermission()' is missing an @Override annotation. 164167
MissingOverride The method 'setLocale(Locale)' is missing an @Override annotation. 186189

fr/paris/lutece/plugins/profiles/business/ProfileDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 55692

fr/paris/lutece/plugins/profiles/business/ProfileFilter.java

Rule Violation Line
LinguisticNaming Linguistics Antipattern - The setter 'setFilter' should not return any type except void linguistically 117134
ConfusingTernary Avoid if (x != y) ..; else ..; 122131

fr/paris/lutece/plugins/profiles/business/ProfileHome.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 53563

fr/paris/lutece/plugins/profiles/business/ProfileRBACRemovalListener.java

Rule Violation Line
MissingOverride The method 'canBeRemoved(String)' is missing an @Override annotation. 6387
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 7681
MissingOverride The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. 98102

fr/paris/lutece/plugins/profiles/business/ProfileWorkgroupRemovalListener.java

Rule Violation Line
MissingOverride The method 'canBeRemoved(String)' is missing an @Override annotation. 6387
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 7681
MissingOverride The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. 98102

fr/paris/lutece/plugins/profiles/business/ProfilesAdminUserFieldListener.java

Rule Violation Line
CyclomaticComplexity The method 'doCreateUserFields(AdminUser, List, Locale)' has a cyclomatic complexity of 10. 64112
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'right' 82
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'role' 93
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'workgroup' 104
CyclomaticComplexity The method 'doModifyUserFields(AdminUser, List, Locale, AdminUser)' has a cyclomatic complexity of 23. 118214
NPathComplexity The method 'doModifyUserFields(AdminUser, List, Locale, AdminUser)' has an NPath complexity of 3854 118214
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'right' 137
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'role' 149
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'workgroup' 160
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'right' 183
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'role' 194
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'workgroup' 205

fr/paris/lutece/plugins/profiles/business/views/IViewDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 50314

fr/paris/lutece/plugins/profiles/business/views/View.java

Rule Violation Line
MissingOverride The method 'getResourceId()' is missing an @Override annotation. 99102
MissingOverride The method 'getResourceTypeCode()' is missing an @Override annotation. 109112

fr/paris/lutece/plugins/profiles/business/views/ViewAction.java

Rule Violation Line
MissingOverride The method 'getPermission()' is missing an @Override annotation. 164167
MissingOverride The method 'setLocale(Locale)' is missing an @Override annotation. 186189

fr/paris/lutece/plugins/profiles/business/views/ViewDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 55679
ConfusingTernary Avoid if (x != y) ..; else ..; 372382
ConfusingTernary Avoid if (x != y) ..; else ..; 413422
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 559560
ConfusingTernary Avoid if (x != y) ..; else ..; 578586
ConfusingTernary Avoid if (x != y) ..; else ..; 624631

fr/paris/lutece/plugins/profiles/business/views/ViewDashboardListener.java

Rule Violation Line
MissingOverride The method 'getDashboardComponents(AdminUser, HttpServletRequest)' is missing an @Override annotation. 6791
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 8285

fr/paris/lutece/plugins/profiles/business/views/ViewFilter.java

Rule Violation Line
LinguisticNaming Linguistics Antipattern - The setter 'setFilter' should not return any type except void linguistically 117134
ConfusingTernary Avoid if (x != y) ..; else ..; 122131

fr/paris/lutece/plugins/profiles/business/views/ViewHome.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 51406

fr/paris/lutece/plugins/profiles/service/IProfilesService.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 60522

fr/paris/lutece/plugins/profiles/service/ProfilesResourceIdService.java

Rule Violation Line
CallSuperInConstructor It is a good practice to call super() in a constructor 7679
MissingOverride The method 'register()' is missing an @Override annotation. 84132
ShortVariable Avoid variables with short names like rt 86
ShortVariable Avoid variables with short names like p 91
MissingOverride The method 'getResourceIdList(Locale)' is missing an @Override annotation. 141146
MissingOverride The method 'getTitle(String, Locale)' is missing an @Override annotation. 157160

fr/paris/lutece/plugins/profiles/service/ProfilesService.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34591
TooManyMethods This class has too many methods, consider refactoring it. 81591
CyclomaticComplexity The method 'doUnassignUserFromProfile(int, String, AdminUser, HttpServletRequest, Locale, Plugin)' has a cyclomatic complexity of 15. 151209
NPathComplexity The method 'doUnassignUserFromProfile(int, String, AdminUser, HttpServletRequest, Locale, Plugin)' has an NPath complexity of 576 151209

fr/paris/lutece/plugins/profiles/service/views/IViewsService.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 58464

fr/paris/lutece/plugins/profiles/service/views/ViewsResourceIdService.java

Rule Violation Line
CallSuperInConstructor It is a good practice to call super() in a constructor 7174
MissingOverride The method 'register()' is missing an @Override annotation. 79112
ShortVariable Avoid variables with short names like rt 81
ShortVariable Avoid variables with short names like p 86
MissingOverride The method 'getResourceIdList(Locale)' is missing an @Override annotation. 121126
MissingOverride The method 'getTitle(String, Locale)' is missing an @Override annotation. 137143
ConfusingTernary Avoid if (x != y) ..; else ..; 142

fr/paris/lutece/plugins/profiles/service/views/ViewsService.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34778
TooManyMethods This class has too many methods, consider refactoring it. 77778
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 135
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 191
CyclomaticComplexity The method 'doMoveDashboard(IDashboardComponent, int, int, boolean, String, Plugin)' has a cyclomatic complexity of 16. 247331
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 302306
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 366
MissingOverride The method 'findDashboardsByFilter(DashboardFilter, String, Plugin)' is missing an @Override annotation. 705708

fr/paris/lutece/plugins/profiles/web/ProfilesJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 341429
ExcessiveClassLength Avoid really long classes. 1021429
CyclomaticComplexity The class 'ProfilesJspBean' has a total cyclomatic complexity of 137 (highest 23). 1021429
TooManyMethods This class has too many methods, consider refactoring it. 1031429
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 137
ImmutableField Private field '_profilesService' could be made final; it is only initialized in the declaration or constructor. 138
ImmutableField Private field '_profileActionService' could be made final; it is only initialized in the declaration or constructor. 139
ImmutableField Private field '_viewsService' could be made final; it is only initialized in the declaration or constructor. 140
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 217
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 244
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 267
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 377
CyclomaticComplexity The method 'getAssignRightsProfile(HttpServletRequest)' has a cyclomatic complexity of 11. 427505
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 429
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'right' 441
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 535553
NcssCount The method 'getAssignWorkgroupsProfile(HttpServletRequest)' has a NCSS line count of 81. 606755
ExcessiveMethodLength Avoid really long methods. 606755
NPathComplexity The method 'getAssignWorkgroupsProfile(HttpServletRequest)' has an NPath complexity of 4704 606755
CyclomaticComplexity The method 'getAssignWorkgroupsProfile(HttpServletRequest)' has a cyclomatic complexity of 16. 606755
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 608
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'workgroup' 620
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 785804
CyclomaticComplexity The method 'getAssignRolesProfile(HttpServletRequest)' has a cyclomatic complexity of 10. 856964
ExcessiveMethodLength Avoid really long methods. 856964
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 858
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'role' 870
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 9941012
NcssCount The method 'getAssignUsersProfile(HttpServletRequest)' has a NCSS line count of 84. 10651220
CyclomaticComplexity The method 'getAssignUsersProfile(HttpServletRequest)' has a cyclomatic complexity of 23. 10651220
NPathComplexity The method 'getAssignUsersProfile(HttpServletRequest)' has an NPath complexity of 27040 10651220
ExcessiveMethodLength Avoid really long methods. 10651220
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1067
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'user' 1082
ConfusingTernary Avoid if (x != y) ..; else ..; 12351263
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 12541258
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1306
ConfusingTernary Avoid if (x != y) ..; else ..; 13551386

fr/paris/lutece/plugins/profiles/web/views/ViewsJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34840
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 114
ImmutableField Private field '_viewsService' could be made final; it is only initialized in the declaration or constructor. 115
ImmutableField Private field '_viewActionService' could be made final; it is only initialized in the declaration or constructor. 116
ImmutableField Private field '_profilesService' could be made final; it is only initialized in the declaration or constructor. 117
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 194
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 221
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 243
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 345
NPathComplexity The method 'getAssignProfilesView(HttpServletRequest)' has an NPath complexity of 896 395527
ExcessiveMethodLength Avoid really long methods. 395527
CyclomaticComplexity The method 'getAssignProfilesView(HttpServletRequest)' has a cyclomatic complexity of 13. 395527
NcssCount The method 'getAssignProfilesView(HttpServletRequest)' has a NCSS line count of 75. 395527
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 397
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'profile' 412
ConfusingTernary Avoid if (x != y) ..; else ..; 542582
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 560577
ConfusingTernary Avoid if (x != y) ..; else ..; 565576
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 627
CyclomaticComplexity The method 'doMoveDashboard(HttpServletRequest)' has a cyclomatic complexity of 10. 710777

Priority 4

fr/paris/lutece/plugins/profiles/business/views/View.java

Rule Violation Line
ShortClassName Avoid short class names like View 45133

Files

fr/paris/lutece/plugins/profiles/business/IProfileDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 52441

fr/paris/lutece/plugins/profiles/business/Profile.java

Rule Violation Priority Line
MissingOverride The method 'getResourceId()' is missing an @Override annotation. 3 99102
MissingOverride The method 'getResourceTypeCode()' is missing an @Override annotation. 3 109112

fr/paris/lutece/plugins/profiles/business/ProfileAction.java

Rule Violation Priority Line
MissingOverride The method 'getPermission()' is missing an @Override annotation. 3 164167
MissingOverride The method 'setLocale(Locale)' is missing an @Override annotation. 3 186189

fr/paris/lutece/plugins/profiles/business/ProfileDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 55692

fr/paris/lutece/plugins/profiles/business/ProfileFilter.java

Rule Violation Priority Line
LinguisticNaming Linguistics Antipattern - The setter 'setFilter' should not return any type except void linguistically 3 117134
ConfusingTernary Avoid if (x != y) ..; else ..; 3 122131

fr/paris/lutece/plugins/profiles/business/ProfileHome.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 53563

fr/paris/lutece/plugins/profiles/business/ProfileRBACRemovalListener.java

Rule Violation Priority Line
MissingOverride The method 'canBeRemoved(String)' is missing an @Override annotation. 3 6387
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 7681
MissingOverride The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. 3 98102

fr/paris/lutece/plugins/profiles/business/ProfileWorkgroupRemovalListener.java

Rule Violation Priority Line
MissingOverride The method 'canBeRemoved(String)' is missing an @Override annotation. 3 6387
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 7681
MissingOverride The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. 3 98102

fr/paris/lutece/plugins/profiles/business/ProfilesAdminUserFieldListener.java

Rule Violation Priority Line
CyclomaticComplexity The method 'doCreateUserFields(AdminUser, List, Locale)' has a cyclomatic complexity of 10. 3 64112
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'right' 3 82
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'role' 3 93
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'workgroup' 3 104
CyclomaticComplexity The method 'doModifyUserFields(AdminUser, List, Locale, AdminUser)' has a cyclomatic complexity of 23. 3 118214
NPathComplexity The method 'doModifyUserFields(AdminUser, List, Locale, AdminUser)' has an NPath complexity of 3854 3 118214
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'right' 3 137
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'role' 3 149
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'workgroup' 3 160
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'right' 3 183
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'role' 3 194
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'workgroup' 3 205

fr/paris/lutece/plugins/profiles/business/views/IViewDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 50314

fr/paris/lutece/plugins/profiles/business/views/View.java

Rule Violation Priority Line
ShortClassName Avoid short class names like View 4 45133
MissingOverride The method 'getResourceId()' is missing an @Override annotation. 3 99102
MissingOverride The method 'getResourceTypeCode()' is missing an @Override annotation. 3 109112

fr/paris/lutece/plugins/profiles/business/views/ViewAction.java

Rule Violation Priority Line
MissingOverride The method 'getPermission()' is missing an @Override annotation. 3 164167
MissingOverride The method 'setLocale(Locale)' is missing an @Override annotation. 3 186189

fr/paris/lutece/plugins/profiles/business/views/ViewDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 55679
ConfusingTernary Avoid if (x != y) ..; else ..; 3 372382
ConfusingTernary Avoid if (x != y) ..; else ..; 3 413422
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 559560
ConfusingTernary Avoid if (x != y) ..; else ..; 3 578586
ConfusingTernary Avoid if (x != y) ..; else ..; 3 624631

fr/paris/lutece/plugins/profiles/business/views/ViewDashboardListener.java

Rule Violation Priority Line
MissingOverride The method 'getDashboardComponents(AdminUser, HttpServletRequest)' is missing an @Override annotation. 3 6791
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 8285

fr/paris/lutece/plugins/profiles/business/views/ViewFilter.java

Rule Violation Priority Line
LinguisticNaming Linguistics Antipattern - The setter 'setFilter' should not return any type except void linguistically 3 117134
ConfusingTernary Avoid if (x != y) ..; else ..; 3 122131

fr/paris/lutece/plugins/profiles/business/views/ViewHome.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 51406

fr/paris/lutece/plugins/profiles/service/IProfilesService.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 60522

fr/paris/lutece/plugins/profiles/service/ProfilesResourceIdService.java

Rule Violation Priority Line
CallSuperInConstructor It is a good practice to call super() in a constructor 3 7679
MissingOverride The method 'register()' is missing an @Override annotation. 3 84132
ShortVariable Avoid variables with short names like rt 3 86
ShortVariable Avoid variables with short names like p 3 91
MissingOverride The method 'getResourceIdList(Locale)' is missing an @Override annotation. 3 141146
MissingOverride The method 'getTitle(String, Locale)' is missing an @Override annotation. 3 157160

fr/paris/lutece/plugins/profiles/service/ProfilesService.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34591
TooManyMethods This class has too many methods, consider refactoring it. 3 81591
CyclomaticComplexity The method 'doUnassignUserFromProfile(int, String, AdminUser, HttpServletRequest, Locale, Plugin)' has a cyclomatic complexity of 15. 3 151209
NPathComplexity The method 'doUnassignUserFromProfile(int, String, AdminUser, HttpServletRequest, Locale, Plugin)' has an NPath complexity of 576 3 151209

fr/paris/lutece/plugins/profiles/service/views/IViewsService.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 58464

fr/paris/lutece/plugins/profiles/service/views/ViewsResourceIdService.java

Rule Violation Priority Line
CallSuperInConstructor It is a good practice to call super() in a constructor 3 7174
MissingOverride The method 'register()' is missing an @Override annotation. 3 79112
ShortVariable Avoid variables with short names like rt 3 81
ShortVariable Avoid variables with short names like p 3 86
MissingOverride The method 'getResourceIdList(Locale)' is missing an @Override annotation. 3 121126
MissingOverride The method 'getTitle(String, Locale)' is missing an @Override annotation. 3 137143
ConfusingTernary Avoid if (x != y) ..; else ..; 3 142

fr/paris/lutece/plugins/profiles/service/views/ViewsService.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34778
TooManyMethods This class has too many methods, consider refactoring it. 3 77778
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 135
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 191
CyclomaticComplexity The method 'doMoveDashboard(IDashboardComponent, int, int, boolean, String, Plugin)' has a cyclomatic complexity of 16. 3 247331
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 302306
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 366
MissingOverride The method 'findDashboardsByFilter(DashboardFilter, String, Plugin)' is missing an @Override annotation. 3 705708

fr/paris/lutece/plugins/profiles/utils/constants/ProfilesConstants.java

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

fr/paris/lutece/plugins/profiles/web/ProfilesJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 341429
ExcessiveClassLength Avoid really long classes. 3 1021429
CyclomaticComplexity The class 'ProfilesJspBean' has a total cyclomatic complexity of 137 (highest 23). 3 1021429
TooManyMethods This class has too many methods, consider refactoring it. 3 1031429
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 137
ImmutableField Private field '_profilesService' could be made final; it is only initialized in the declaration or constructor. 3 138
ImmutableField Private field '_profileActionService' could be made final; it is only initialized in the declaration or constructor. 3 139
ImmutableField Private field '_viewsService' could be made final; it is only initialized in the declaration or constructor. 3 140
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 217
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 244
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 267
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 377
CyclomaticComplexity The method 'getAssignRightsProfile(HttpServletRequest)' has a cyclomatic complexity of 11. 3 427505
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 429
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'right' 3 441
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 535553
NcssCount The method 'getAssignWorkgroupsProfile(HttpServletRequest)' has a NCSS line count of 81. 3 606755
ExcessiveMethodLength Avoid really long methods. 3 606755
NPathComplexity The method 'getAssignWorkgroupsProfile(HttpServletRequest)' has an NPath complexity of 4704 3 606755
CyclomaticComplexity The method 'getAssignWorkgroupsProfile(HttpServletRequest)' has a cyclomatic complexity of 16. 3 606755
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 608
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'workgroup' 3 620
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 785804
CyclomaticComplexity The method 'getAssignRolesProfile(HttpServletRequest)' has a cyclomatic complexity of 10. 3 856964
ExcessiveMethodLength Avoid really long methods. 3 856964
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 858
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'role' 3 870
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 9941012
NcssCount The method 'getAssignUsersProfile(HttpServletRequest)' has a NCSS line count of 84. 3 10651220
CyclomaticComplexity The method 'getAssignUsersProfile(HttpServletRequest)' has a cyclomatic complexity of 23. 3 10651220
NPathComplexity The method 'getAssignUsersProfile(HttpServletRequest)' has an NPath complexity of 27040 3 10651220
ExcessiveMethodLength Avoid really long methods. 3 10651220
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1067
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'user' 3 1082
ConfusingTernary Avoid if (x != y) ..; else ..; 3 12351263
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 12541258
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1306
ConfusingTernary Avoid if (x != y) ..; else ..; 3 13551386

fr/paris/lutece/plugins/profiles/web/views/ViewsJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34840
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 114
ImmutableField Private field '_viewsService' could be made final; it is only initialized in the declaration or constructor. 3 115
ImmutableField Private field '_viewActionService' could be made final; it is only initialized in the declaration or constructor. 3 116
ImmutableField Private field '_profilesService' could be made final; it is only initialized in the declaration or constructor. 3 117
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 194
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 221
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 243
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 345
NPathComplexity The method 'getAssignProfilesView(HttpServletRequest)' has an NPath complexity of 896 3 395527
ExcessiveMethodLength Avoid really long methods. 3 395527
CyclomaticComplexity The method 'getAssignProfilesView(HttpServletRequest)' has a cyclomatic complexity of 13. 3 395527
NcssCount The method 'getAssignProfilesView(HttpServletRequest)' has a NCSS line count of 75. 3 395527
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 397
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'profile' 3 412
ConfusingTernary Avoid if (x != y) ..; else ..; 3 542582
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 560577
ConfusingTernary Avoid if (x != y) ..; else ..; 3 565576
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 627
CyclomaticComplexity The method 'doMoveDashboard(HttpServletRequest)' has a cyclomatic complexity of 10. 3 710777