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/workflow/service/json/WorkflowJsonService.java

Rule Violation Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 77366
LocalVariableNamingConventions The local variable name 'StateBefore' doesn't match '[a-z][a-zA-Z0-9]*' 268
LocalVariableNamingConventions The local variable name 'PrerequisiteTypeList' doesn't match '[a-z][a-zA-Z0-9]*' 351

fr/paris/lutece/plugins/workflow/service/provider/MarkerProviderService.java

Rule Violation Line
FieldNamingConventions The final field name '_listMarkerProviders' doesn't match '[a-z][a-zA-Z0-9]*' 53

fr/paris/lutece/plugins/workflow/web/task/NoConfigTaskComponent.java

Rule Violation Line
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 6568
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 7477

fr/paris/lutece/plugins/workflow/web/task/NoFormTaskComponent.java

Rule Violation Line
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 5356
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 6265

Priority 2

fr/paris/lutece/plugins/workflow/business/resource/ResourceHistoryDAO.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 400
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 400
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 400
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 400
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 400
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 400
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 412
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 412
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 412
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 412
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 481
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 481
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 481
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 481
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 481

fr/paris/lutece/plugins/workflow/service/WorkflowProvider.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'listActions' 124
AvoidReassigningParameters Avoid reassigning parameters such as 'user' 378
AvoidReassigningParameters Avoid reassigning parameters such as 'user' 399

Priority 3

fr/paris/lutece/plugins/workflow/business/action/ActionDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 57530
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 99122
ConfusingTernary Avoid if (x != y) ..; else ..; 113114
ConfusingTernary Avoid if (x != y) ..; else ..; 144145
CyclomaticComplexity The method 'selectActionsByFilter(ActionFilter)' has a cyclomatic complexity of 16. 212301
NPathComplexity The method 'selectActionsByFilter(ActionFilter)' has an NPath complexity of 32896 212301
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 307317

fr/paris/lutece/plugins/workflow/business/action/ActionStateDAO.java

Rule Violation Line
CommentRequired Header comments are required 1196
UnusedPrivateField Avoid unused private fields such as 'SQL_QUERY_SELECT_ALL'. 13
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 2540

fr/paris/lutece/plugins/workflow/business/icon/IconDAO.java

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 6381

fr/paris/lutece/plugins/workflow/business/prerequisite/PrerequisiteDAO.java

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 86100

fr/paris/lutece/plugins/workflow/business/prerequisite/PrerequisiteDTO.java

Rule Violation Line
CallSuperInConstructor It is a good practice to call super() in a constructor 5663

fr/paris/lutece/plugins/workflow/business/resource/ResourceHistoryDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 58528
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 86105
ShortVariable Avoid variables with short names like sb 459
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 460
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 461
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 506509

fr/paris/lutece/plugins/workflow/business/resource/ResourceWorkflowDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 59829
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 102124
ConfusingTernary Avoid if (x != y) ..; else ..; 112119
ConfusingTernary Avoid if (x != y) ..; else ..; 140147
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 605
NPathComplexity The method 'buildFilterQuerydFooter(DAOUtil, ResourceWorkflowFilter, List, Integer)' has an NPath complexity of 648 654716
CyclomaticComplexity The method 'buildFilterQuerydFooter(DAOUtil, ResourceWorkflowFilter, List, Integer)' has a cyclomatic complexity of 12. 654716
NPathComplexity The method 'buildFilterQuerydHeader(ResourceWorkflowFilter, List, String, String)' has an NPath complexity of 432 731801
CyclomaticComplexity The method 'buildFilterQuerydHeader(ResourceWorkflowFilter, List, String, String)' has a cyclomatic complexity of 11. 731801
ShortVariable Avoid variables with short names like sb 770
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 771
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 772
ShortVariable Avoid variables with short names like sb 786
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 787
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 788
ConfusingTernary Avoid if (x != y) ..; else ..; 818825
AssignmentInOperand Avoid assignments in operands 818

fr/paris/lutece/plugins/workflow/business/state/StateDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 54369
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 78107

fr/paris/lutece/plugins/workflow/business/task/TaskDAO.java

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 7692

fr/paris/lutece/plugins/workflow/business/workflow/WorkflowDAO.java

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 7189

fr/paris/lutece/plugins/workflow/modules/archive/ArchivalType.java

Rule Violation Line
CommentRequired Enum comments are required 3640

fr/paris/lutece/plugins/workflow/modules/archive/business/ArchiveConfigDao.java

Rule Violation Line
CommentRequired Header comments are required 41126
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 5668

fr/paris/lutece/plugins/workflow/modules/archive/business/ArchiveResource.java

Rule Violation Line
CommentRequired Header comments are required 38152
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 100
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 128

fr/paris/lutece/plugins/workflow/modules/archive/business/ArchiveResourceDao.java

Rule Violation Line
CommentRequired Header comments are required 41167
ConfusingTernary Avoid if (x != y) ..; else ..; 5865
ConfusingTernary Avoid if (x != y) ..; else ..; 6774
ConfusingTernary Avoid if (x != y) ..; else ..; 109116
ConfusingTernary Avoid if (x != y) ..; else ..; 118125
AssignmentInOperand Avoid assignments in operands 154
AssignmentInOperand Avoid assignments in operands 159

fr/paris/lutece/plugins/workflow/modules/archive/business/IArchiveResourceDao.java

Rule Violation Line
CommentRequired Header comments are required 3676

fr/paris/lutece/plugins/workflow/modules/archive/daemon/ArchiveDaemon.java

Rule Violation Line
CommentRequired Header comments are required 67142
ImmutableField Private field '_workflowService' could be made final; it is only initialized in the declaration or constructor. 69
ImmutableField Private field '_actionService' could be made final; it is only initialized in the declaration or constructor. 70
ImmutableField Private field '_taskService' could be made final; it is only initialized in the declaration or constructor. 71
ImmutableField Private field '_resourceWorkflowService' could be made final; it is only initialized in the declaration or constructor. 72
ImmutableField Private field '_archiveService' could be made final; it is only initialized in the declaration or constructor. 73
ShortVariable Avoid variables with short names like wf 98
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 114118

fr/paris/lutece/plugins/workflow/modules/archive/service/AbstractArchiveProcessingService.java

Rule Violation Line
CommentRequired Protected method constructor comments are required 5861
CommentRequired Protected method constructor comments are required 6367

fr/paris/lutece/plugins/workflow/modules/archive/service/IArchiveProcessingService.java

Rule Violation Line
CommentRequired Header comments are required 3846

fr/paris/lutece/plugins/workflow/modules/archive/service/TaskArchive.java

Rule Violation Line
CommentRequired Header comments are required 50105
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 63
CommentRequired Public method and constructor comments are required 7985

fr/paris/lutece/plugins/workflow/modules/archive/web/ArchiveTaskComponent.java

Rule Violation Line
CommentRequired Header comments are required 65235
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 110

fr/paris/lutece/plugins/workflow/modules/assignment/business/AssignmentHistory.java

Rule Violation Line
ShortVariable Avoid variables with short names like id 62

fr/paris/lutece/plugins/workflow/modules/assignment/business/AssignmentHistoryDAO.java

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 5971

fr/paris/lutece/plugins/workflow/modules/assignment/business/TaskAssignmentConfigDAO.java

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 5975

fr/paris/lutece/plugins/workflow/modules/assignment/business/WorkgroupConfigDAO.java

Rule Violation Line
ConfusingTernary Avoid if (x != y) ..; else ..; 133140

fr/paris/lutece/plugins/workflow/modules/assignment/service/TaskAssignment.java

Rule Violation Line
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 121136
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 159
ShortVariable Avoid variables with short names like t 162

fr/paris/lutece/plugins/workflow/modules/assignment/web/AssignmentTaskComponent.java

Rule Violation Line
CyclomaticComplexity The method 'doSaveConfig(HttpServletRequest, Locale, ITask)' has a cyclomatic complexity of 13. 115205
NPathComplexity The method 'doSaveConfig(HttpServletRequest, Locale, ITask)' has an NPath complexity of 1152 115205
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 119
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 121
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 172192
ConfusingTernary Avoid if (x != y) ..; else ..; 180188
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 213
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 214
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 279
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 295
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 329

fr/paris/lutece/plugins/workflow/modules/choice/business/ChoiceTaskConfigDAO.java

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 5769

fr/paris/lutece/plugins/workflow/modules/choice/web/ChoiceTaskComponent.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 82
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 94

fr/paris/lutece/plugins/workflow/modules/comment/business/CommentValue.java

Rule Violation Line
ShortVariable Avoid variables with short names like id 66
ShortVariable Avoid variables with short names like sb 115

fr/paris/lutece/plugins/workflow/modules/comment/business/CommentValueDAO.java

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 5668

fr/paris/lutece/plugins/workflow/modules/comment/business/TaskCommentConfigDAO.java

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 5871

fr/paris/lutece/plugins/workflow/modules/comment/service/CommentResourceIdService.java

Rule Violation Line
CallSuperInConstructor It is a good practice to call super() in a constructor 6164
MissingOverride The method 'register()' is missing an @Override annotation. 6983
ShortVariable Avoid variables with short names like rt 71
ShortVariable Avoid variables with short names like p 77
MissingOverride The method 'getResourceIdList(Locale)' is missing an @Override annotation. 9295
MissingOverride The method 'getTitle(String, Locale)' is missing an @Override annotation. 100103

fr/paris/lutece/plugins/workflow/modules/comment/web/CommentJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34209
ImmutableField Private field '_commentValueService' could be made final; it is only initialized in the declaration or constructor. 96
ImmutableField Private field '_resourceHistoryService' could be made final; it is only initialized in the declaration or constructor. 97
ImmutableField Private field '_taskService' could be made final; it is only initialized in the declaration or constructor. 98
ImmutableField Private field '_taskComponentManager' could be made final; it is only initialized in the declaration or constructor. 99

fr/paris/lutece/plugins/workflow/modules/comment/web/CommentTaskComponent.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 99102
CommentRequired Public method and constructor comments are required 104108
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 116
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 117
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 148
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 164
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 199

fr/paris/lutece/plugins/workflow/modules/confirmaction/business/ConfirmActionTaskConfigDAO.java

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 5769

fr/paris/lutece/plugins/workflow/modules/confirmaction/web/ConfirmActionTaskComponent.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 80
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 92

fr/paris/lutece/plugins/workflow/modules/duration/business/PrerequisiteDurationConfig.java

Rule Violation Line
CommentRequired Header comments are required 3873
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _nDuration field if you want a default access modifier 46
DefaultPackage Use explicit scoping instead of the default package private level 46

fr/paris/lutece/plugins/workflow/modules/duration/business/PrerequisiteDurationConfigDAO.java

Rule Violation Line
CommentRequired Header comments are required 42111

fr/paris/lutece/plugins/workflow/modules/duration/service/PrerequisiteDuration.java

Rule Violation Line
CommentRequired Header comments are required 55131
MissingOverride The method 'getPrerequisiteType()' is missing an @Override annotation. 6669
CommentRequired Public method and constructor comments are required 6669
MissingOverride The method 'getTitleI18nKey()' is missing an @Override annotation. 7174
CommentRequired Public method and constructor comments are required 7174
CommentRequired Public method and constructor comments are required 7679
MissingOverride The method 'hasConfiguration()' is missing an @Override annotation. 7679
MissingOverride The method 'getEmptyConfiguration()' is missing an @Override annotation. 8184
CommentRequired Public method and constructor comments are required 8184
CommentRequired Public method and constructor comments are required 8689
MissingOverride The method 'getConfigurationDaoBeanName()' is missing an @Override annotation. 8689
MissingOverride The method 'getConfigHtml(IPrerequisiteConfig, HttpServletRequest, Locale)' is missing an @Override annotation. 9199
CommentRequired Public method and constructor comments are required 9199
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 93

fr/paris/lutece/plugins/workflow/modules/notification/business/TaskNotificationConfigDAO.java

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 5973

fr/paris/lutece/plugins/workflow/modules/notification/service/TaskNotification.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 96
ShortVariable Avoid variables with short names like t 99

fr/paris/lutece/plugins/workflow/modules/notification/web/NotificationTaskComponent.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 80

fr/paris/lutece/plugins/workflow/modules/state/business/ChangeStateTaskConfig.java

Rule Violation Line
CommentRequired Header comments are required 4164

fr/paris/lutece/plugins/workflow/modules/state/business/ChangeStateTaskConfigDao.java

Rule Violation Line
CommentRequired Header comments are required 39106

fr/paris/lutece/plugins/workflow/modules/state/business/ChangeStateTaskInformation.java

Rule Violation Line
CommentRequired Header comments are required 3693

fr/paris/lutece/plugins/workflow/modules/state/business/ChangeStateTaskInformationDAO.java

Rule Violation Line
CommentRequired Header comments are required 3896

fr/paris/lutece/plugins/workflow/modules/state/business/ChangeStateTaskInformationHome.java

Rule Violation Line
CommentRequired Header comments are required 3889

fr/paris/lutece/plugins/workflow/modules/state/business/ChooseStateTaskConfig.java

Rule Violation Line
CommentRequired Header comments are required 41104

fr/paris/lutece/plugins/workflow/modules/state/business/ChooseStateTaskConfigDao.java

Rule Violation Line
CommentRequired Header comments are required 39114

fr/paris/lutece/plugins/workflow/modules/state/business/ChooseStateTaskInformation.java

Rule Violation Line
CommentRequired Header comments are required 3693

fr/paris/lutece/plugins/workflow/modules/state/business/ChooseStateTaskInformationDAO.java

Rule Violation Line
CommentRequired Header comments are required 3896

fr/paris/lutece/plugins/workflow/modules/state/business/ChooseStateTaskInformationHome.java

Rule Violation Line
CommentRequired Header comments are required 3889

fr/paris/lutece/plugins/workflow/modules/state/business/IChangeStateTaskInformationDAO.java

Rule Violation Line
CommentRequired Header comments are required 3667

fr/paris/lutece/plugins/workflow/modules/state/business/IChooseStateTaskInformationDAO.java

Rule Violation Line
CommentRequired Header comments are required 3667

fr/paris/lutece/plugins/workflow/modules/state/daemon/ChangeStateDaemon.java

Rule Violation Line
CommentRequired Header comments are required 62133
ImmutableField Private field '_changeStateTaskService' could be made final; it is only initialized in the declaration or constructor. 65
ImmutableField Private field '_workflowService' could be made final; it is only initialized in the declaration or constructor. 66
ImmutableField Private field '_resourceWorkflowService' could be made final; it is only initialized in the declaration or constructor. 67
ImmutableField Private field '_actionService' could be made final; it is only initialized in the declaration or constructor. 68
ImmutableField Private field '_taskService' could be made final; it is only initialized in the declaration or constructor. 69
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 112

fr/paris/lutece/plugins/workflow/modules/state/daemon/ChooseStateDaemon.java

Rule Violation Line
CommentRequired Header comments are required 62133
ImmutableField Private field '_chooseStateTaskService' could be made final; it is only initialized in the declaration or constructor. 65
ImmutableField Private field '_workflowService' could be made final; it is only initialized in the declaration or constructor. 66
ImmutableField Private field '_resourceWorkflowService' could be made final; it is only initialized in the declaration or constructor. 67
ImmutableField Private field '_actionService' could be made final; it is only initialized in the declaration or constructor. 68
ImmutableField Private field '_taskService' could be made final; it is only initialized in the declaration or constructor. 69
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 112

fr/paris/lutece/plugins/workflow/modules/state/service/AbstractStateTaskService.java

Rule Violation Line
CommentRequired Header comments are required 58136
CommentRequired Public method and constructor comments are required 7592
CommentRequired Public method and constructor comments are required 94103
CommentRequired Public method and constructor comments are required 105133
CommentRequired Protected method constructor comments are required 135

fr/paris/lutece/plugins/workflow/modules/state/service/ChangeStateTask.java

Rule Violation Line
CommentRequired Header comments are required 4778

fr/paris/lutece/plugins/workflow/modules/state/service/ChangeStateTaskService.java

Rule Violation Line
CommentRequired Header comments are required 4675

fr/paris/lutece/plugins/workflow/modules/state/service/ChooseStateTask.java

Rule Violation Line
CommentRequired Header comments are required 4888

fr/paris/lutece/plugins/workflow/modules/state/service/IChangeStateTaskService.java

Rule Violation Line
CommentRequired Header comments are required 4180

fr/paris/lutece/plugins/workflow/modules/state/service/IChooseStateController.java

Rule Violation Line
CommentRequired Header comments are required 43119
UncommentedEmptyMethodBody Document empty method body 108109
UncommentedEmptyMethodBody Document empty method body 117118

fr/paris/lutece/plugins/workflow/modules/state/web/ChangeStateTaskComponent.java

Rule Violation Line
CommentRequired Header comments are required 5294
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 70
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 82
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 82

fr/paris/lutece/plugins/workflow/modules/state/web/ChooseStateTaskComponent.java

Rule Violation Line
CommentRequired Header comments are required 53122
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 77
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 110
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 110

fr/paris/lutece/plugins/workflow/service/ActionResourceIdService.java

Rule Violation Line
CallSuperInConstructor It is a good practice to call super() in a constructor 7376
ShortVariable Avoid variables with short names like rt 84
ShortVariable Avoid variables with short names like p 90
MissingOverride The method 'getResourceIdList(Locale)' is missing an @Override annotation. 110125
MissingOverride The method 'getTitle(String, Locale)' is missing an @Override annotation. 136148
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 159
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 160
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 160
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 161
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 167
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 169
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 170

fr/paris/lutece/plugins/workflow/service/StateResourceIdService.java

Rule Violation Line
CallSuperInConstructor It is a good practice to call super() in a constructor 7275
ShortVariable Avoid variables with short names like rt 83
ShortVariable Avoid variables with short names like p 89
ConfusingTernary Avoid if (x != y) ..; else ..; 139

fr/paris/lutece/plugins/workflow/service/WorkflowGraphExportService.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. 51162
ShortVariable Avoid variables with short names like wf 72
ShortVariable Avoid variables with short names like sb 74
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 109
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 110
ShortVariable Avoid variables with short names like sb 125
ControlStatementBraces This statement should have braces 128

fr/paris/lutece/plugins/workflow/service/WorkflowProvider.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34645
MissingOverride The method 'getActions(int, String, Collection, User)' is missing an @Override annotation. 124129
MissingOverride The method 'getAuthorizedActions(Collection, User)' is missing an @Override annotation. 135138
MissingOverride The method 'getActions(String, Map, User)' is missing an @Override annotation. 144156
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 200
ConfusingTernary Avoid if (x != y) ..; else ..; 211237
ConfusingTernary Avoid if (x != y) ..; else ..; 261272
MissingOverride The method 'getDisplayDocumentHistory(int, String, int, HttpServletRequest, Locale, Map, String, User)' is missing an @Override annotation. 321334
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 356
MissingOverride The method 'canProcessAction(int, String, int, HttpServletRequest, User)' is missing an @Override annotation. 399414
CyclomaticComplexity The method 'isAuthorized(int, String, int, User)' has a cyclomatic complexity of 10. 420470
ConfusingTernary Avoid if (x != y) ..; else ..; 426443
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 536
ConfusingTernary Avoid if (x != y) ..; else ..; 548555
ConfusingTernary Avoid if (x != y) ..; else ..; 591

fr/paris/lutece/plugins/workflow/service/json/TaskDeserializer.java

Rule Violation Line
CommentRequired Header comments are required 5178
ShortVariable Avoid variables with short names like p 55
ShortVariable Avoid variables with short names like oc 57

fr/paris/lutece/plugins/workflow/service/json/TaskSerialiser.java

Rule Violation Line
CommentRequired Header comments are required 4461

fr/paris/lutece/plugins/workflow/service/json/TimestampDeserializer.java

Rule Violation Line
CommentRequired Header comments are required 4658
ImmutableField Private field '_fmt' could be made final; it is only initialized in the declaration or constructor. 48
ShortVariable Avoid variables with short names like dt 54

fr/paris/lutece/plugins/workflow/service/json/TimestampSerializer.java

Rule Violation Line
CommentRequired Header comments are required 4659
ImmutableField Private field '_fmt' could be made final; it is only initialized in the declaration or constructor. 48
ShortVariable Avoid variables with short names like z 54

fr/paris/lutece/plugins/workflow/service/json/WorkflowJsonData.java

Rule Violation Line
DataClass The class 'WorkflowJsonData' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=10, WMC=10) 45142
CommentRequired Header comments are required 45142

fr/paris/lutece/plugins/workflow/service/json/WorkflowJsonService.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34366
CommentRequired Header comments are required 77366
TooManyMethods This class has too many methods, consider refactoring it. 78366
ImmutableField Private field '_objectMapper' could be made final; it is only initialized in the declaration or constructor. 83
ImmutableField Private field '_workflowService' could be made final; it is only initialized in the declaration or constructor. 85
ImmutableField Private field '_stateService' could be made final; it is only initialized in the declaration or constructor. 86
ImmutableField Private field '_actionService' could be made final; it is only initialized in the declaration or constructor. 87
ImmutableField Private field '_taskService' could be made final; it is only initialized in the declaration or constructor. 88
ImmutableField Private field '_taskFactory' could be made final; it is only initialized in the declaration or constructor. 89
ImmutableField Private field '_prerequisiteManagementService' could be made final; it is only initialized in the declaration or constructor. 90
CommentRequired Public method and constructor comments are required 106109
NPathComplexity The method 'jsonExportWorkflow(int)' has an NPath complexity of 768 117199
CommentRequired Public method and constructor comments are required 202217
CommentRequired Public method and constructor comments are required 219232
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 236
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 268
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 279
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 351

fr/paris/lutece/plugins/workflow/service/prerequisite/AutomaticActionDaemon.java

Rule Violation Line
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 77 characters appended. 106
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 107
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 107
ControlStatementBraces This statement should have braces 109

fr/paris/lutece/plugins/workflow/service/provider/MarkerProviderService.java

Rule Violation Line
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 117

fr/paris/lutece/plugins/workflow/service/provider/ProviderManagerUtil.java

Rule Violation Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 73
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 132

fr/paris/lutece/plugins/workflow/service/task/TaskFactory.java

Rule Violation Line
ShortVariable Avoid variables with short names like e 121

fr/paris/lutece/plugins/workflow/service/taskinfo/TaskInfoManager.java

Rule Violation Line
ConfusingTernary Avoid if (x != y) ..; else ..; 138145

fr/paris/lutece/plugins/workflow/utils/WorkflowUtils.java

Rule Violation Line
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 194
AssignmentInOperand Avoid assignments in operands 194

fr/paris/lutece/plugins/workflow/web/IconJspBean.java

Rule Violation Line
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 122
ImmutableField Private field '_iconService' could be made final; it is only initialized in the declaration or constructor. 125
ImmutableField Private field '_actionService' could be made final; it is only initialized in the declaration or constructor. 126
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 137
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 216
ConfusingTernary Avoid if (x != y) ..; else ..; 255262
NPathComplexity The method 'getIconData(HttpServletRequest, Icon)' has an NPath complexity of 784 337406
CyclomaticComplexity The method 'getIconData(HttpServletRequest, Icon)' has a cyclomatic complexity of 18. 337406
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 344
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 345
ConfusingTernary Avoid if (x != y) ..; else ..; 392400

fr/paris/lutece/plugins/workflow/web/WorkflowDashboardComponent.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 109
ShortVariable Avoid variables with short names like t 116

fr/paris/lutece/plugins/workflow/web/WorkflowJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 342968
ExcessivePublicCount This class has a bunch of public methods and attributes 342968
CyclomaticComplexity The class 'WorkflowJspBean' has a total cyclomatic complexity of 323 (highest 15). 1292968
TooManyFields Too many fields 1292968
ExcessiveClassLength Avoid really long classes. 1292968
TooManyMethods This class has too many methods, consider refactoring it. 1302968
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 293
ImmutableField Private field '_workflowService' could be made final; it is only initialized in the declaration or constructor. 302
ImmutableField Private field '_stateService' could be made final; it is only initialized in the declaration or constructor. 303
ImmutableField Private field '_actionService' could be made final; it is only initialized in the declaration or constructor. 304
ImmutableField Private field '_iconService' could be made final; it is only initialized in the declaration or constructor. 305
ImmutableField Private field '_taskService' could be made final; it is only initialized in the declaration or constructor. 306
ImmutableField Private field '_taskFactory' could be made final; it is only initialized in the declaration or constructor. 307
ImmutableField Private field '_taskComponentManager' could be made final; it is only initialized in the declaration or constructor. 308
ImmutableField Private field '_prerequisiteManagementService' could be made final; it is only initialized in the declaration or constructor. 309
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 356
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 389
ExcessiveMethodLength Avoid really long methods. 444552
NcssCount The method 'getModifyWorkflow(HttpServletRequest)' has a NCSS line count of 63. 444552
CyclomaticComplexity The method 'getModifyWorkflow(HttpServletRequest)' has a cyclomatic complexity of 12. 444552
NPathComplexity The method 'getModifyWorkflow(HttpServletRequest)' has an NPath complexity of 432 444552
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 446
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 448
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 449
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 515
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 528
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 581584
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 588591
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 595598
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 644
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 715
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 754
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 810
CyclomaticComplexity The method 'doCreateState(HttpServletRequest)' has a cyclomatic complexity of 10. 831890
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 923
CyclomaticComplexity The method 'doModifyState(HttpServletRequest)' has a cyclomatic complexity of 11. 944999
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 968
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1115
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1116
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1117
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1179
ExcessiveMethodLength Avoid really long methods. 12721381
CyclomaticComplexity The method 'getActionData(HttpServletRequest, Action)' has a cyclomatic complexity of 15. 12721381
NcssCount The method 'getActionData(HttpServletRequest, Action)' has a NCSS line count of 66. 12721381
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1284
CyclomaticComplexity The method 'getModifyAction(HttpServletRequest)' has a cyclomatic complexity of 10. 13921479
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1451
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1669
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1706
ShortVariable Avoid variables with short names like it 1917
CyclomaticComplexity The method 'doChangeOrderState(HttpServletRequest)' has a cyclomatic complexity of 10. 20662137
CyclomaticComplexity The method 'doChangeOrderAction(HttpServletRequest)' has a cyclomatic complexity of 10. 21462214
CyclomaticComplexity The method 'doChangeOrderTask(HttpServletRequest)' has a cyclomatic complexity of 11. 22232292
CommentRequired Public method and constructor comments are required 25392546
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 2728
CyclomaticComplexity The method 'doRemoveTaskFromReflexiveAction(HttpServletRequest)' has a cyclomatic complexity of 11. 28502888
ShortVariable Avoid variables with short names like os 2921
CommentRequired Public method and constructor comments are required 29352947
CommentRequired Public method and constructor comments are required 29492967
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 2964

fr/paris/lutece/plugins/workflow/web/prerequisite/PrerequisiteJspBean.java

Rule Violation Line
ImmutableField Private field '_prerequisiteManagementService' could be made final; it is only initialized in the declaration or constructor. 88
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 129
ConfusingTernary Avoid if (x != y) ..; else ..; 137147
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 193203
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 262
ConfusingTernary Avoid if (x != y) ..; else ..; 270280

Priority 4

fr/paris/lutece/plugins/workflow/business/prerequisite/PrerequisiteDTO.java

Rule Violation Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 9194

fr/paris/lutece/plugins/workflow/modules/choice/web/ChoiceTaskComponent.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.message.AdminMessage' 47
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.message.AdminMessageService' 48

fr/paris/lutece/plugins/workflow/utils/WorkflowUtils.java

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

Files

fr/paris/lutece/plugins/workflow/business/action/ActionDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 57530
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 99122
ConfusingTernary Avoid if (x != y) ..; else ..; 3 113114
ConfusingTernary Avoid if (x != y) ..; else ..; 3 144145
CyclomaticComplexity The method 'selectActionsByFilter(ActionFilter)' has a cyclomatic complexity of 16. 3 212301
NPathComplexity The method 'selectActionsByFilter(ActionFilter)' has an NPath complexity of 32896 3 212301
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 307317

fr/paris/lutece/plugins/workflow/business/action/ActionStateDAO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 1196
UnusedPrivateField Avoid unused private fields such as 'SQL_QUERY_SELECT_ALL'. 3 13
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 2540

fr/paris/lutece/plugins/workflow/business/icon/IconDAO.java

Rule Violation Priority Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 6381

fr/paris/lutece/plugins/workflow/business/prerequisite/PrerequisiteDAO.java

Rule Violation Priority Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 86100

fr/paris/lutece/plugins/workflow/business/prerequisite/PrerequisiteDTO.java

Rule Violation Priority Line
CallSuperInConstructor It is a good practice to call super() in a constructor 3 5663
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 9194

fr/paris/lutece/plugins/workflow/business/resource/ResourceHistoryDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 58528
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 86105
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 2 400
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 2 400
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 2 400
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 2 400
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 2 400
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 2 400
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 2 412
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 2 412
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 2 412
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 2 412
ShortVariable Avoid variables with short names like sb 3 459
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 460
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 461
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 2 481
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 2 481
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 2 481
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 2 481
AvoidReassigningParameters Avoid reassigning parameters such as 'nPos' 2 481
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 506509

fr/paris/lutece/plugins/workflow/business/resource/ResourceWorkflowDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 59829
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 102124
ConfusingTernary Avoid if (x != y) ..; else ..; 3 112119
ConfusingTernary Avoid if (x != y) ..; else ..; 3 140147
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 605
NPathComplexity The method 'buildFilterQuerydFooter(DAOUtil, ResourceWorkflowFilter, List, Integer)' has an NPath complexity of 648 3 654716
CyclomaticComplexity The method 'buildFilterQuerydFooter(DAOUtil, ResourceWorkflowFilter, List, Integer)' has a cyclomatic complexity of 12. 3 654716
NPathComplexity The method 'buildFilterQuerydHeader(ResourceWorkflowFilter, List, String, String)' has an NPath complexity of 432 3 731801
CyclomaticComplexity The method 'buildFilterQuerydHeader(ResourceWorkflowFilter, List, String, String)' has a cyclomatic complexity of 11. 3 731801
ShortVariable Avoid variables with short names like sb 3 770
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 771
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 772
ShortVariable Avoid variables with short names like sb 3 786
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 787
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 788
ConfusingTernary Avoid if (x != y) ..; else ..; 3 818825
AssignmentInOperand Avoid assignments in operands 3 818

fr/paris/lutece/plugins/workflow/business/state/StateDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 54369
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 78107

fr/paris/lutece/plugins/workflow/business/task/TaskDAO.java

Rule Violation Priority Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 7692

fr/paris/lutece/plugins/workflow/business/workflow/WorkflowDAO.java

Rule Violation Priority Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 7189

fr/paris/lutece/plugins/workflow/modules/archive/ArchivalType.java

Rule Violation Priority Line
CommentRequired Enum comments are required 3 3640

fr/paris/lutece/plugins/workflow/modules/archive/business/ArchiveConfigDao.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 41126
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 5668

fr/paris/lutece/plugins/workflow/modules/archive/business/ArchiveResource.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 38152
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 100
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 128

fr/paris/lutece/plugins/workflow/modules/archive/business/ArchiveResourceDao.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 41167
ConfusingTernary Avoid if (x != y) ..; else ..; 3 5865
ConfusingTernary Avoid if (x != y) ..; else ..; 3 6774
ConfusingTernary Avoid if (x != y) ..; else ..; 3 109116
ConfusingTernary Avoid if (x != y) ..; else ..; 3 118125
AssignmentInOperand Avoid assignments in operands 3 154
AssignmentInOperand Avoid assignments in operands 3 159

fr/paris/lutece/plugins/workflow/modules/archive/business/IArchiveResourceDao.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3676

fr/paris/lutece/plugins/workflow/modules/archive/daemon/ArchiveDaemon.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 67142
ImmutableField Private field '_workflowService' could be made final; it is only initialized in the declaration or constructor. 3 69
ImmutableField Private field '_actionService' could be made final; it is only initialized in the declaration or constructor. 3 70
ImmutableField Private field '_taskService' could be made final; it is only initialized in the declaration or constructor. 3 71
ImmutableField Private field '_resourceWorkflowService' could be made final; it is only initialized in the declaration or constructor. 3 72
ImmutableField Private field '_archiveService' could be made final; it is only initialized in the declaration or constructor. 3 73
ShortVariable Avoid variables with short names like wf 3 98
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 114118

fr/paris/lutece/plugins/workflow/modules/archive/service/AbstractArchiveProcessingService.java

Rule Violation Priority Line
CommentRequired Protected method constructor comments are required 3 5861
CommentRequired Protected method constructor comments are required 3 6367

fr/paris/lutece/plugins/workflow/modules/archive/service/IArchiveProcessingService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3846

fr/paris/lutece/plugins/workflow/modules/archive/service/TaskArchive.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 50105
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 63
CommentRequired Public method and constructor comments are required 3 7985

fr/paris/lutece/plugins/workflow/modules/archive/web/ArchiveTaskComponent.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 65235
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 110

fr/paris/lutece/plugins/workflow/modules/assignment/business/AssignmentHistory.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like id 3 62

fr/paris/lutece/plugins/workflow/modules/assignment/business/AssignmentHistoryDAO.java

Rule Violation Priority Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 5971

fr/paris/lutece/plugins/workflow/modules/assignment/business/TaskAssignmentConfigDAO.java

Rule Violation Priority Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 5975

fr/paris/lutece/plugins/workflow/modules/assignment/business/WorkgroupConfigDAO.java

Rule Violation Priority Line
ConfusingTernary Avoid if (x != y) ..; else ..; 3 133140

fr/paris/lutece/plugins/workflow/modules/assignment/service/TaskAssignment.java

Rule Violation Priority Line
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 121136
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 159
ShortVariable Avoid variables with short names like t 3 162

fr/paris/lutece/plugins/workflow/modules/assignment/web/AssignmentTaskComponent.java

Rule Violation Priority Line
CyclomaticComplexity The method 'doSaveConfig(HttpServletRequest, Locale, ITask)' has a cyclomatic complexity of 13. 3 115205
NPathComplexity The method 'doSaveConfig(HttpServletRequest, Locale, ITask)' has an NPath complexity of 1152 3 115205
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 119
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 121
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 172192
ConfusingTernary Avoid if (x != y) ..; else ..; 3 180188
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 213
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 214
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 279
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 295
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 329

fr/paris/lutece/plugins/workflow/modules/choice/business/ChoiceTaskConfigDAO.java

Rule Violation Priority Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 5769

fr/paris/lutece/plugins/workflow/modules/choice/web/ChoiceTaskComponent.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.message.AdminMessage' 4 47
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.message.AdminMessageService' 4 48
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 82
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 94

fr/paris/lutece/plugins/workflow/modules/comment/business/CommentValue.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like id 3 66
ShortVariable Avoid variables with short names like sb 3 115

fr/paris/lutece/plugins/workflow/modules/comment/business/CommentValueDAO.java

Rule Violation Priority Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 5668

fr/paris/lutece/plugins/workflow/modules/comment/business/TaskCommentConfigDAO.java

Rule Violation Priority Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 5871

fr/paris/lutece/plugins/workflow/modules/comment/service/CommentResourceIdService.java

Rule Violation Priority Line
CallSuperInConstructor It is a good practice to call super() in a constructor 3 6164
MissingOverride The method 'register()' is missing an @Override annotation. 3 6983
ShortVariable Avoid variables with short names like rt 3 71
ShortVariable Avoid variables with short names like p 3 77
MissingOverride The method 'getResourceIdList(Locale)' is missing an @Override annotation. 3 9295
MissingOverride The method 'getTitle(String, Locale)' is missing an @Override annotation. 3 100103

fr/paris/lutece/plugins/workflow/modules/comment/web/CommentJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34209
ImmutableField Private field '_commentValueService' could be made final; it is only initialized in the declaration or constructor. 3 96
ImmutableField Private field '_resourceHistoryService' could be made final; it is only initialized in the declaration or constructor. 3 97
ImmutableField Private field '_taskService' could be made final; it is only initialized in the declaration or constructor. 3 98
ImmutableField Private field '_taskComponentManager' could be made final; it is only initialized in the declaration or constructor. 3 99

fr/paris/lutece/plugins/workflow/modules/comment/web/CommentTaskComponent.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 99102
CommentRequired Public method and constructor comments are required 3 104108
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 116
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 117
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 148
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 164
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 199

fr/paris/lutece/plugins/workflow/modules/confirmaction/business/ConfirmActionTaskConfigDAO.java

Rule Violation Priority Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 5769

fr/paris/lutece/plugins/workflow/modules/confirmaction/web/ConfirmActionTaskComponent.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 80
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 92

fr/paris/lutece/plugins/workflow/modules/duration/business/PrerequisiteDurationConfig.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3873
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _nDuration field if you want a default access modifier 3 46
DefaultPackage Use explicit scoping instead of the default package private level 3 46

fr/paris/lutece/plugins/workflow/modules/duration/business/PrerequisiteDurationConfigDAO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 42111

fr/paris/lutece/plugins/workflow/modules/duration/service/PrerequisiteDuration.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 55131
MissingOverride The method 'getPrerequisiteType()' is missing an @Override annotation. 3 6669
CommentRequired Public method and constructor comments are required 3 6669
MissingOverride The method 'getTitleI18nKey()' is missing an @Override annotation. 3 7174
CommentRequired Public method and constructor comments are required 3 7174
CommentRequired Public method and constructor comments are required 3 7679
MissingOverride The method 'hasConfiguration()' is missing an @Override annotation. 3 7679
MissingOverride The method 'getEmptyConfiguration()' is missing an @Override annotation. 3 8184
CommentRequired Public method and constructor comments are required 3 8184
CommentRequired Public method and constructor comments are required 3 8689
MissingOverride The method 'getConfigurationDaoBeanName()' is missing an @Override annotation. 3 8689
MissingOverride The method 'getConfigHtml(IPrerequisiteConfig, HttpServletRequest, Locale)' is missing an @Override annotation. 3 9199
CommentRequired Public method and constructor comments are required 3 9199
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 93

fr/paris/lutece/plugins/workflow/modules/notification/business/TaskNotificationConfigDAO.java

Rule Violation Priority Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 5973

fr/paris/lutece/plugins/workflow/modules/notification/service/TaskNotification.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 96
ShortVariable Avoid variables with short names like t 3 99

fr/paris/lutece/plugins/workflow/modules/notification/web/NotificationTaskComponent.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 80

fr/paris/lutece/plugins/workflow/modules/state/business/ChangeStateTaskConfig.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4164

fr/paris/lutece/plugins/workflow/modules/state/business/ChangeStateTaskConfigDao.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 39106

fr/paris/lutece/plugins/workflow/modules/state/business/ChangeStateTaskInformation.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3693

fr/paris/lutece/plugins/workflow/modules/state/business/ChangeStateTaskInformationDAO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3896

fr/paris/lutece/plugins/workflow/modules/state/business/ChangeStateTaskInformationHome.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3889

fr/paris/lutece/plugins/workflow/modules/state/business/ChooseStateTaskConfig.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 41104

fr/paris/lutece/plugins/workflow/modules/state/business/ChooseStateTaskConfigDao.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 39114

fr/paris/lutece/plugins/workflow/modules/state/business/ChooseStateTaskInformation.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3693

fr/paris/lutece/plugins/workflow/modules/state/business/ChooseStateTaskInformationDAO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3896

fr/paris/lutece/plugins/workflow/modules/state/business/ChooseStateTaskInformationHome.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3889

fr/paris/lutece/plugins/workflow/modules/state/business/IChangeStateTaskInformationDAO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3667

fr/paris/lutece/plugins/workflow/modules/state/business/IChooseStateTaskInformationDAO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3667

fr/paris/lutece/plugins/workflow/modules/state/daemon/ChangeStateDaemon.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 62133
ImmutableField Private field '_changeStateTaskService' could be made final; it is only initialized in the declaration or constructor. 3 65
ImmutableField Private field '_workflowService' could be made final; it is only initialized in the declaration or constructor. 3 66
ImmutableField Private field '_resourceWorkflowService' could be made final; it is only initialized in the declaration or constructor. 3 67
ImmutableField Private field '_actionService' could be made final; it is only initialized in the declaration or constructor. 3 68
ImmutableField Private field '_taskService' could be made final; it is only initialized in the declaration or constructor. 3 69
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 112

fr/paris/lutece/plugins/workflow/modules/state/daemon/ChooseStateDaemon.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 62133
ImmutableField Private field '_chooseStateTaskService' could be made final; it is only initialized in the declaration or constructor. 3 65
ImmutableField Private field '_workflowService' could be made final; it is only initialized in the declaration or constructor. 3 66
ImmutableField Private field '_resourceWorkflowService' could be made final; it is only initialized in the declaration or constructor. 3 67
ImmutableField Private field '_actionService' could be made final; it is only initialized in the declaration or constructor. 3 68
ImmutableField Private field '_taskService' could be made final; it is only initialized in the declaration or constructor. 3 69
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 112

fr/paris/lutece/plugins/workflow/modules/state/service/AbstractStateTaskService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 58136
CommentRequired Public method and constructor comments are required 3 7592
CommentRequired Public method and constructor comments are required 3 94103
CommentRequired Public method and constructor comments are required 3 105133
CommentRequired Protected method constructor comments are required 3 135

fr/paris/lutece/plugins/workflow/modules/state/service/ChangeStateTask.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4778

fr/paris/lutece/plugins/workflow/modules/state/service/ChangeStateTaskService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4675

fr/paris/lutece/plugins/workflow/modules/state/service/ChooseStateTask.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4888

fr/paris/lutece/plugins/workflow/modules/state/service/IChangeStateTaskService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4180

fr/paris/lutece/plugins/workflow/modules/state/service/IChooseStateController.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 43119
UncommentedEmptyMethodBody Document empty method body 3 108109
UncommentedEmptyMethodBody Document empty method body 3 117118

fr/paris/lutece/plugins/workflow/modules/state/web/ChangeStateTaskComponent.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 5294
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 70
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 82
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 82

fr/paris/lutece/plugins/workflow/modules/state/web/ChooseStateTaskComponent.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 53122
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 77
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 110
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 110

fr/paris/lutece/plugins/workflow/service/ActionResourceIdService.java

Rule Violation Priority Line
CallSuperInConstructor It is a good practice to call super() in a constructor 3 7376
ShortVariable Avoid variables with short names like rt 3 84
ShortVariable Avoid variables with short names like p 3 90
MissingOverride The method 'getResourceIdList(Locale)' is missing an @Override annotation. 3 110125
MissingOverride The method 'getTitle(String, Locale)' is missing an @Override annotation. 3 136148
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 159
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 160
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 160
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 161
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 167
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 169
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 170

fr/paris/lutece/plugins/workflow/service/StateResourceIdService.java

Rule Violation Priority Line
CallSuperInConstructor It is a good practice to call super() in a constructor 3 7275
ShortVariable Avoid variables with short names like rt 3 83
ShortVariable Avoid variables with short names like p 3 89
ConfusingTernary Avoid if (x != y) ..; else ..; 3 139

fr/paris/lutece/plugins/workflow/service/WorkflowGraphExportService.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 51162
ShortVariable Avoid variables with short names like wf 3 72
ShortVariable Avoid variables with short names like sb 3 74
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 109
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 110
ShortVariable Avoid variables with short names like sb 3 125
ControlStatementBraces This statement should have braces 3 128

fr/paris/lutece/plugins/workflow/service/WorkflowProvider.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34645
AvoidReassigningParameters Avoid reassigning parameters such as 'listActions' 2 124
MissingOverride The method 'getActions(int, String, Collection, User)' is missing an @Override annotation. 3 124129
MissingOverride The method 'getAuthorizedActions(Collection, User)' is missing an @Override annotation. 3 135138
MissingOverride The method 'getActions(String, Map, User)' is missing an @Override annotation. 3 144156
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 200
ConfusingTernary Avoid if (x != y) ..; else ..; 3 211237
ConfusingTernary Avoid if (x != y) ..; else ..; 3 261272
MissingOverride The method 'getDisplayDocumentHistory(int, String, int, HttpServletRequest, Locale, Map, String, User)' is missing an @Override annotation. 3 321334
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 356
AvoidReassigningParameters Avoid reassigning parameters such as 'user' 2 378
AvoidReassigningParameters Avoid reassigning parameters such as 'user' 2 399
MissingOverride The method 'canProcessAction(int, String, int, HttpServletRequest, User)' is missing an @Override annotation. 3 399414
CyclomaticComplexity The method 'isAuthorized(int, String, int, User)' has a cyclomatic complexity of 10. 3 420470
ConfusingTernary Avoid if (x != y) ..; else ..; 3 426443
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 536
ConfusingTernary Avoid if (x != y) ..; else ..; 3 548555
ConfusingTernary Avoid if (x != y) ..; else ..; 3 591

fr/paris/lutece/plugins/workflow/service/json/TaskDeserializer.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 5178
ShortVariable Avoid variables with short names like p 3 55
ShortVariable Avoid variables with short names like oc 3 57

fr/paris/lutece/plugins/workflow/service/json/TaskSerialiser.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4461

fr/paris/lutece/plugins/workflow/service/json/TimestampDeserializer.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4658
ImmutableField Private field '_fmt' could be made final; it is only initialized in the declaration or constructor. 3 48
ShortVariable Avoid variables with short names like dt 3 54

fr/paris/lutece/plugins/workflow/service/json/TimestampSerializer.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4659
ImmutableField Private field '_fmt' could be made final; it is only initialized in the declaration or constructor. 3 48
ShortVariable Avoid variables with short names like z 3 54

fr/paris/lutece/plugins/workflow/service/json/WorkflowJsonData.java

Rule Violation Priority Line
DataClass The class 'WorkflowJsonData' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=10, WMC=10) 3 45142
CommentRequired Header comments are required 3 45142

fr/paris/lutece/plugins/workflow/service/json/WorkflowJsonService.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34366
CommentRequired Header comments are required 3 77366
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 77366
TooManyMethods This class has too many methods, consider refactoring it. 3 78366
ImmutableField Private field '_objectMapper' could be made final; it is only initialized in the declaration or constructor. 3 83
ImmutableField Private field '_workflowService' could be made final; it is only initialized in the declaration or constructor. 3 85
ImmutableField Private field '_stateService' could be made final; it is only initialized in the declaration or constructor. 3 86
ImmutableField Private field '_actionService' could be made final; it is only initialized in the declaration or constructor. 3 87
ImmutableField Private field '_taskService' could be made final; it is only initialized in the declaration or constructor. 3 88
ImmutableField Private field '_taskFactory' could be made final; it is only initialized in the declaration or constructor. 3 89
ImmutableField Private field '_prerequisiteManagementService' could be made final; it is only initialized in the declaration or constructor. 3 90
CommentRequired Public method and constructor comments are required 3 106109
NPathComplexity The method 'jsonExportWorkflow(int)' has an NPath complexity of 768 3 117199
CommentRequired Public method and constructor comments are required 3 202217
CommentRequired Public method and constructor comments are required 3 219232
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 236
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 268
LocalVariableNamingConventions The local variable name 'StateBefore' doesn't match '[a-z][a-zA-Z0-9]*' 1 268
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 279
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 351
LocalVariableNamingConventions The local variable name 'PrerequisiteTypeList' doesn't match '[a-z][a-zA-Z0-9]*' 1 351

fr/paris/lutece/plugins/workflow/service/prerequisite/AutomaticActionDaemon.java

Rule Violation Priority Line
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 77 characters appended. 3 106
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 107
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 3 107
ControlStatementBraces This statement should have braces 3 109

fr/paris/lutece/plugins/workflow/service/provider/MarkerProviderService.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_listMarkerProviders' doesn't match '[a-z][a-zA-Z0-9]*' 1 53
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 117

fr/paris/lutece/plugins/workflow/service/provider/ProviderManagerUtil.java

Rule Violation Priority Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 73
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 132

fr/paris/lutece/plugins/workflow/service/task/TaskFactory.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like e 3 121

fr/paris/lutece/plugins/workflow/service/taskinfo/TaskInfoManager.java

Rule Violation Priority Line
ConfusingTernary Avoid if (x != y) ..; else ..; 3 138145

fr/paris/lutece/plugins/workflow/utils/WorkflowUtils.java

Rule Violation Priority Line
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 4 145
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 194
AssignmentInOperand Avoid assignments in operands 3 194
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 4 276

fr/paris/lutece/plugins/workflow/web/IconJspBean.java

Rule Violation Priority Line
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 3 122
ImmutableField Private field '_iconService' could be made final; it is only initialized in the declaration or constructor. 3 125
ImmutableField Private field '_actionService' could be made final; it is only initialized in the declaration or constructor. 3 126
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 137
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 216
ConfusingTernary Avoid if (x != y) ..; else ..; 3 255262
NPathComplexity The method 'getIconData(HttpServletRequest, Icon)' has an NPath complexity of 784 3 337406
CyclomaticComplexity The method 'getIconData(HttpServletRequest, Icon)' has a cyclomatic complexity of 18. 3 337406
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 344
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 345
ConfusingTernary Avoid if (x != y) ..; else ..; 3 392400

fr/paris/lutece/plugins/workflow/web/WorkflowDashboardComponent.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 109
ShortVariable Avoid variables with short names like t 3 116

fr/paris/lutece/plugins/workflow/web/WorkflowJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 342968
ExcessivePublicCount This class has a bunch of public methods and attributes 3 342968
CyclomaticComplexity The class 'WorkflowJspBean' has a total cyclomatic complexity of 323 (highest 15). 3 1292968
TooManyFields Too many fields 3 1292968
ExcessiveClassLength Avoid really long classes. 3 1292968
TooManyMethods This class has too many methods, consider refactoring it. 3 1302968
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 3 293
ImmutableField Private field '_workflowService' could be made final; it is only initialized in the declaration or constructor. 3 302
ImmutableField Private field '_stateService' could be made final; it is only initialized in the declaration or constructor. 3 303
ImmutableField Private field '_actionService' could be made final; it is only initialized in the declaration or constructor. 3 304
ImmutableField Private field '_iconService' could be made final; it is only initialized in the declaration or constructor. 3 305
ImmutableField Private field '_taskService' could be made final; it is only initialized in the declaration or constructor. 3 306
ImmutableField Private field '_taskFactory' could be made final; it is only initialized in the declaration or constructor. 3 307
ImmutableField Private field '_taskComponentManager' could be made final; it is only initialized in the declaration or constructor. 3 308
ImmutableField Private field '_prerequisiteManagementService' could be made final; it is only initialized in the declaration or constructor. 3 309
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 356
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 389
ExcessiveMethodLength Avoid really long methods. 3 444552
NcssCount The method 'getModifyWorkflow(HttpServletRequest)' has a NCSS line count of 63. 3 444552
CyclomaticComplexity The method 'getModifyWorkflow(HttpServletRequest)' has a cyclomatic complexity of 12. 3 444552
NPathComplexity The method 'getModifyWorkflow(HttpServletRequest)' has an NPath complexity of 432 3 444552
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 446
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 448
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 449
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 515
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 528
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 581584
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 588591
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 595598
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 644
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 715
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 754
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 810
CyclomaticComplexity The method 'doCreateState(HttpServletRequest)' has a cyclomatic complexity of 10. 3 831890
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 923
CyclomaticComplexity The method 'doModifyState(HttpServletRequest)' has a cyclomatic complexity of 11. 3 944999
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 968
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1115
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1116
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1117
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1179
ExcessiveMethodLength Avoid really long methods. 3 12721381
CyclomaticComplexity The method 'getActionData(HttpServletRequest, Action)' has a cyclomatic complexity of 15. 3 12721381
NcssCount The method 'getActionData(HttpServletRequest, Action)' has a NCSS line count of 66. 3 12721381
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1284
CyclomaticComplexity The method 'getModifyAction(HttpServletRequest)' has a cyclomatic complexity of 10. 3 13921479
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1451
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1669
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1706
ShortVariable Avoid variables with short names like it 3 1917
CyclomaticComplexity The method 'doChangeOrderState(HttpServletRequest)' has a cyclomatic complexity of 10. 3 20662137
CyclomaticComplexity The method 'doChangeOrderAction(HttpServletRequest)' has a cyclomatic complexity of 10. 3 21462214
CyclomaticComplexity The method 'doChangeOrderTask(HttpServletRequest)' has a cyclomatic complexity of 11. 3 22232292
CommentRequired Public method and constructor comments are required 3 25392546
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 2728
CyclomaticComplexity The method 'doRemoveTaskFromReflexiveAction(HttpServletRequest)' has a cyclomatic complexity of 11. 3 28502888
ShortVariable Avoid variables with short names like os 3 2921
CommentRequired Public method and constructor comments are required 3 29352947
CommentRequired Public method and constructor comments are required 3 29492967
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 2964

fr/paris/lutece/plugins/workflow/web/prerequisite/PrerequisiteJspBean.java

Rule Violation Priority Line
ImmutableField Private field '_prerequisiteManagementService' could be made final; it is only initialized in the declaration or constructor. 3 88
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 129
ConfusingTernary Avoid if (x != y) ..; else ..; 3 137147
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 193203
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 262
ConfusingTernary Avoid if (x != y) ..; else ..; 3 270280

fr/paris/lutece/plugins/workflow/web/task/NoConfigTaskComponent.java

Rule Violation Priority Line
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 6568
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 7477

fr/paris/lutece/plugins/workflow/web/task/NoFormTaskComponent.java

Rule Violation Priority Line
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 5356
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 6265