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/business/workflowcycledetector/StateTransition.java

Rule Violation Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 40142
FieldNamingConventions The final field name '_stateBefore' doesn't match '[a-z][a-zA-Z0-9]*' 42
FieldNamingConventions The final field name '_stateAfter' doesn't match '[a-z][a-zA-Z0-9]*' 43

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/utils/WorkflowCycleUtils.java

Rule Violation Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 51235

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 44129
UnusedPrivateField Avoid unused private fields such as 'SQL_QUERY_SELECT_ALL'. 46
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 5873

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
CyclomaticComplexity The method 'buildFilterQuerydFooter(DAOUtil, ResourceWorkflowFilter, List, Integer)' has a cyclomatic complexity of 12. 654716
NPathComplexity The method 'buildFilterQuerydFooter(DAOUtil, ResourceWorkflowFilter, List, Integer)' has an NPath complexity of 648 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
AssignmentInOperand Avoid assignments in operands 818
ConfusingTernary Avoid if (x != y) ..; else ..; 818825

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 7793

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/business/workflowcycledetector/StateTransition.java

Rule Violation Line
CommentRequired Header comments are required 40142
RedundantFieldInitializer Avoid using redundant field initializer for '_action' 45

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 66236
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 111

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
MissingOverride The method 'hasConfiguration()' is missing an @Override annotation. 7679
CommentRequired Public method and constructor comments are required 7679
CommentRequired Public method and constructor comments are required 8184
MissingOverride The method 'getEmptyConfiguration()' is missing an @Override annotation. 8184
MissingOverride The method 'getConfigurationDaoBeanName()' is missing an @Override annotation. 8689
CommentRequired Public method and constructor comments are required 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
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 82
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 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
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 160
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 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/WorkflowActionRegistry.java

Rule Violation Line
CommentRequired Header comments are required 937
CommentRequired Public method and constructor comments are required 1316
CommentRequired Public method and constructor comments are required 1821
CommentRequired Public method and constructor comments are required 2326
CommentRequired Header comments are required 2831
CommentRequired Public method and constructor comments are required 3336

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

Rule Violation Line
DataClass The class 'WorkflowAppResourceIdService' is suspected to be a Data Class (WOC=0.000%, NOPA=4, NOAM=0, WMC=1) 1876
CallSuperInConstructor It is a good practice to call super() in a constructor 3134
CommentRequired Public method and constructor comments are required 3134
ShortVariable Avoid variables with short names like rt 39
ShortVariable Avoid variables with short names like p 45
ShortVariable Avoid variables with short names like rl 66

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. 52151
ShortVariable Avoid variables with short names like wf 74
CyclomaticComplexity The method 'generate(Workflow, String)' has a cyclomatic complexity of 16. 74129
NPathComplexity The method 'generate(Workflow, String)' has an NPath complexity of 600 74129
ShortVariable Avoid variables with short names like sb 76
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 123
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 124
ShortVariable Avoid variables with short names like sb 139
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 139
ControlStatementBraces This statement should have braces 142

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/WorkflowRBACAction.java

Rule Violation Line
CommentRequired Enum comments are required 846
CommentRequired Enum comments are required 21

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

Rule Violation Line
CommentRequired Header comments are required 21134
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. 22134
ShortVariable Avoid variables with short names like id 23
ShortVariable Avoid variables with short names like id 32
CommentRequired Public method and constructor comments are required 3745
CommentRequired Public method and constructor comments are required 4757
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 49
UnusedLocalVariable Avoid unused local variables such as 'actionsByScope'. 49
CommentRequired Public method and constructor comments are required 5974
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 63
CommentRequired Public method and constructor comments are required 7679
CommentRequired Public method and constructor comments are required 8184
CommentRequired Public method and constructor comments are required 8689

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

Rule Violation Line
DataClass The class 'WorkflowResourceIdService' is suspected to be a Data Class (WOC=0.000%, NOPA=8, NOAM=0, WMC=1) 23113
CommentRequired Public method and constructor comments are required 4346
CallSuperInConstructor It is a good practice to call super() in a constructor 4346
ShortVariable Avoid variables with short names like rt 51
ShortVariable Avoid variables with short names like p 57
ShortVariable Avoid variables with short names like id 109
ShortVariable Avoid variables with short names like wf 110
ConfusingTernary Avoid if (x != y) ..; else ..; 111

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. 107
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 108
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 108
ControlStatementBraces This statement should have braces 110

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/WorkflowCycleUtils.java

Rule Violation Line
CommentRequired Header comments are required 51235
LinguisticNaming Linguistics Antipattern - The method 'hasCycle' indicates linguistically it returns a boolean, but it returns 'ErrorMessage' 95121
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 97
ControlStatementBraces This statement should have braces 220

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

Rule Violation Line
AssignmentInOperand Avoid assignments in operands 194
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 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
ExcessivePublicCount This class has a bunch of public methods and attributes 343199
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 343199
CyclomaticComplexity The class 'WorkflowJspBean' has a total cyclomatic complexity of 344 (highest 15). 1383199
TooManyFields Too many fields 1383199
ExcessiveClassLength Avoid really long classes. 1383199
GodClass Possible God Class (WMC=344, ATFD=580, TCC=30.114%) 1383199
TooManyMethods This class has too many methods, consider refactoring it. 1393199
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 315
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsAscSort' 325
ImmutableField Private field '_workflowService' could be made final; it is only initialized in the declaration or constructor. 326
ImmutableField Private field '_stateService' could be made final; it is only initialized in the declaration or constructor. 327
ImmutableField Private field '_actionService' could be made final; it is only initialized in the declaration or constructor. 328
ImmutableField Private field '_iconService' could be made final; it is only initialized in the declaration or constructor. 329
ImmutableField Private field '_taskService' could be made final; it is only initialized in the declaration or constructor. 330
ImmutableField Private field '_taskFactory' could be made final; it is only initialized in the declaration or constructor. 331
ImmutableField Private field '_taskComponentManager' could be made final; it is only initialized in the declaration or constructor. 332
ImmutableField Private field '_prerequisiteManagementService' could be made final; it is only initialized in the declaration or constructor. 333
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 394
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 431
CyclomaticComplexity The method 'getModifyWorkflow(HttpServletRequest)' has a cyclomatic complexity of 14. 487616
ExcessiveMethodLength Avoid really long methods. 487616
NPathComplexity The method 'getModifyWorkflow(HttpServletRequest)' has an NPath complexity of 1728 487616
NcssCount The method 'getModifyWorkflow(HttpServletRequest)' has a NCSS line count of 74. 487616
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 489
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 491
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 492
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 577
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 592
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 645648
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 654657
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 661664
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 787
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 826
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 884
CyclomaticComplexity The method 'doCreateState(HttpServletRequest)' has a cyclomatic complexity of 10. 905966
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1001
CyclomaticComplexity The method 'doModifyState(HttpServletRequest)' has a cyclomatic complexity of 11. 10221079
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1048
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1195
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1196
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1197
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1261
CyclomaticComplexity The method 'getActionData(HttpServletRequest, Action)' has a cyclomatic complexity of 15. 13531462
NcssCount The method 'getActionData(HttpServletRequest, Action)' has a NCSS line count of 66. 13531462
ExcessiveMethodLength Avoid really long methods. 13531462
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1365
CyclomaticComplexity The method 'getModifyAction(HttpServletRequest)' has a cyclomatic complexity of 10. 14731562
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1534
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1757
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1794
ShortVariable Avoid variables with short names like it 2033
CyclomaticComplexity The method 'doChangeOrderState(HttpServletRequest)' has a cyclomatic complexity of 10. 21822255
CyclomaticComplexity The method 'doChangeOrderAction(HttpServletRequest)' has a cyclomatic complexity of 10. 22642334
CyclomaticComplexity The method 'doChangeOrderTask(HttpServletRequest)' has a cyclomatic complexity of 11. 23432412
CommentRequired Public method and constructor comments are required 27202727
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 2915
CyclomaticComplexity The method 'doRemoveTaskFromReflexiveAction(HttpServletRequest)' has a cyclomatic complexity of 11. 30393078
ShortVariable Avoid variables with short names like os 3114
CommentRequired Public method and constructor comments are required 31283140
CommentRequired Public method and constructor comments are required 31423162
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3159

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

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

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_DELETE' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 684
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_DELETE' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 714
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_STATES' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 880
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_STATES' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 930
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_STATES' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 993
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_STATES' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 1044
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_DELETE_STATES' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 1154
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 1259
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 1311
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 1489
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 1608
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_DELETE_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 1678
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 1716
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 1811
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_STATES' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 2202
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 2284
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_STATES' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 2533
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_STATES' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 2564
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 2627
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 2660
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_STATES' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 2820
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 2847
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 2903
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 2967
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 3041
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowAppResourceIdService.RESOURCE_TYPE_KEY' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowAppResourceIdService.*' 3170
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.RESOURCE_TYPE_KEY' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 3189
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.RESOURCE_TYPE_KEY' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 3190

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 44129
UnusedPrivateField Avoid unused private fields such as 'SQL_QUERY_SELECT_ALL'. 3 46
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 5873

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
CyclomaticComplexity The method 'buildFilterQuerydFooter(DAOUtil, ResourceWorkflowFilter, List, Integer)' has a cyclomatic complexity of 12. 3 654716
NPathComplexity The method 'buildFilterQuerydFooter(DAOUtil, ResourceWorkflowFilter, List, Integer)' has an NPath complexity of 648 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
AssignmentInOperand Avoid assignments in operands 3 818
ConfusingTernary Avoid if (x != y) ..; else ..; 3 818825

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 7793

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/business/workflowcycledetector/StateTransition.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 40142
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 40142
FieldNamingConventions The final field name '_stateBefore' doesn't match '[a-z][a-zA-Z0-9]*' 1 42
FieldNamingConventions The final field name '_stateAfter' doesn't match '[a-z][a-zA-Z0-9]*' 1 43
RedundantFieldInitializer Avoid using redundant field initializer for '_action' 3 45

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 66236
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 111

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
MissingOverride The method 'hasConfiguration()' is missing an @Override annotation. 3 7679
CommentRequired Public method and constructor comments are required 3 7679
CommentRequired Public method and constructor comments are required 3 8184
MissingOverride The method 'getEmptyConfiguration()' is missing an @Override annotation. 3 8184
MissingOverride The method 'getConfigurationDaoBeanName()' is missing an @Override annotation. 3 8689
CommentRequired Public method and constructor comments are required 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
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 82
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 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
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 160
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 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/WorkflowActionRegistry.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 937
CommentRequired Public method and constructor comments are required 3 1316
CommentRequired Public method and constructor comments are required 3 1821
CommentRequired Public method and constructor comments are required 3 2326
CommentRequired Header comments are required 3 2831
CommentRequired Public method and constructor comments are required 3 3336

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

Rule Violation Priority Line
DataClass The class 'WorkflowAppResourceIdService' is suspected to be a Data Class (WOC=0.000%, NOPA=4, NOAM=0, WMC=1) 3 1876
CallSuperInConstructor It is a good practice to call super() in a constructor 3 3134
CommentRequired Public method and constructor comments are required 3 3134
ShortVariable Avoid variables with short names like rt 3 39
ShortVariable Avoid variables with short names like p 3 45
ShortVariable Avoid variables with short names like rl 3 66

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 52151
ShortVariable Avoid variables with short names like wf 3 74
CyclomaticComplexity The method 'generate(Workflow, String)' has a cyclomatic complexity of 16. 3 74129
NPathComplexity The method 'generate(Workflow, String)' has an NPath complexity of 600 3 74129
ShortVariable Avoid variables with short names like sb 3 76
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 123
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 124
ShortVariable Avoid variables with short names like sb 3 139
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 139
ControlStatementBraces This statement should have braces 3 142

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
MissingOverride The method 'getActions(int, String, Collection, User)' is missing an @Override annotation. 3 124129
AvoidReassigningParameters Avoid reassigning parameters such as 'listActions' 2 124
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/WorkflowRBACAction.java

Rule Violation Priority Line
CommentRequired Enum comments are required 3 846
CommentRequired Enum comments are required 3 21

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 21134
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 22134
ShortVariable Avoid variables with short names like id 3 23
ShortVariable Avoid variables with short names like id 3 32
CommentRequired Public method and constructor comments are required 3 3745
CommentRequired Public method and constructor comments are required 3 4757
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 49
UnusedLocalVariable Avoid unused local variables such as 'actionsByScope'. 3 49
CommentRequired Public method and constructor comments are required 3 5974
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 63
CommentRequired Public method and constructor comments are required 3 7679
CommentRequired Public method and constructor comments are required 3 8184
CommentRequired Public method and constructor comments are required 3 8689

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

Rule Violation Priority Line
DataClass The class 'WorkflowResourceIdService' is suspected to be a Data Class (WOC=0.000%, NOPA=8, NOAM=0, WMC=1) 3 23113
CommentRequired Public method and constructor comments are required 3 4346
CallSuperInConstructor It is a good practice to call super() in a constructor 3 4346
ShortVariable Avoid variables with short names like rt 3 51
ShortVariable Avoid variables with short names like p 3 57
ShortVariable Avoid variables with short names like id 3 109
ShortVariable Avoid variables with short names like wf 3 110
ConfusingTernary Avoid if (x != y) ..; else ..; 3 111

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 107
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 108
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 3 108
ControlStatementBraces This statement should have braces 3 110

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

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/WorkflowCycleUtils.java

Rule Violation Priority Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 51235
CommentRequired Header comments are required 3 51235
LinguisticNaming Linguistics Antipattern - The method 'hasCycle' indicates linguistically it returns a boolean, but it returns 'ErrorMessage' 3 95121
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 97
ControlStatementBraces This statement should have braces 3 220

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
AssignmentInOperand Avoid assignments in operands 3 194
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 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
ExcessivePublicCount This class has a bunch of public methods and attributes 3 343199
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 343199
CyclomaticComplexity The class 'WorkflowJspBean' has a total cyclomatic complexity of 344 (highest 15). 3 1383199
TooManyFields Too many fields 3 1383199
ExcessiveClassLength Avoid really long classes. 3 1383199
GodClass Possible God Class (WMC=344, ATFD=580, TCC=30.114%) 3 1383199
TooManyMethods This class has too many methods, consider refactoring it. 3 1393199
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 3 315
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsAscSort' 3 325
ImmutableField Private field '_workflowService' could be made final; it is only initialized in the declaration or constructor. 3 326
ImmutableField Private field '_stateService' could be made final; it is only initialized in the declaration or constructor. 3 327
ImmutableField Private field '_actionService' could be made final; it is only initialized in the declaration or constructor. 3 328
ImmutableField Private field '_iconService' could be made final; it is only initialized in the declaration or constructor. 3 329
ImmutableField Private field '_taskService' could be made final; it is only initialized in the declaration or constructor. 3 330
ImmutableField Private field '_taskFactory' could be made final; it is only initialized in the declaration or constructor. 3 331
ImmutableField Private field '_taskComponentManager' could be made final; it is only initialized in the declaration or constructor. 3 332
ImmutableField Private field '_prerequisiteManagementService' could be made final; it is only initialized in the declaration or constructor. 3 333
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 394
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 431
CyclomaticComplexity The method 'getModifyWorkflow(HttpServletRequest)' has a cyclomatic complexity of 14. 3 487616
ExcessiveMethodLength Avoid really long methods. 3 487616
NPathComplexity The method 'getModifyWorkflow(HttpServletRequest)' has an NPath complexity of 1728 3 487616
NcssCount The method 'getModifyWorkflow(HttpServletRequest)' has a NCSS line count of 74. 3 487616
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 489
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 491
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 492
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 577
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 592
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 645648
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 654657
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 661664
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_DELETE' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 684
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_DELETE' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 714
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 787
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 826
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_STATES' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 880
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 884
CyclomaticComplexity The method 'doCreateState(HttpServletRequest)' has a cyclomatic complexity of 10. 3 905966
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_STATES' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 930
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_STATES' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 993
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1001
CyclomaticComplexity The method 'doModifyState(HttpServletRequest)' has a cyclomatic complexity of 11. 3 10221079
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_STATES' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 1044
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1048
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_DELETE_STATES' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 1154
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1195
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1196
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1197
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 1259
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1261
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 1311
CyclomaticComplexity The method 'getActionData(HttpServletRequest, Action)' has a cyclomatic complexity of 15. 3 13531462
NcssCount The method 'getActionData(HttpServletRequest, Action)' has a NCSS line count of 66. 3 13531462
ExcessiveMethodLength Avoid really long methods. 3 13531462
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1365
CyclomaticComplexity The method 'getModifyAction(HttpServletRequest)' has a cyclomatic complexity of 10. 3 14731562
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 1489
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1534
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 1608
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_DELETE_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 1678
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 1716
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1757
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1794
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 1811
ShortVariable Avoid variables with short names like it 3 2033
CyclomaticComplexity The method 'doChangeOrderState(HttpServletRequest)' has a cyclomatic complexity of 10. 3 21822255
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_STATES' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 2202
CyclomaticComplexity The method 'doChangeOrderAction(HttpServletRequest)' has a cyclomatic complexity of 10. 3 22642334
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 2284
CyclomaticComplexity The method 'doChangeOrderTask(HttpServletRequest)' has a cyclomatic complexity of 11. 3 23432412
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_STATES' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 2533
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_STATES' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 2564
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 2627
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 2660
CommentRequired Public method and constructor comments are required 3 27202727
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_STATES' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 2820
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 2847
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 2903
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 2915
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 2967
CyclomaticComplexity The method 'doRemoveTaskFromReflexiveAction(HttpServletRequest)' has a cyclomatic complexity of 11. 3 30393078
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.PERM_WORKFLOW_EDIT_ACTIONS' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 3041
ShortVariable Avoid variables with short names like os 3 3114
CommentRequired Public method and constructor comments are required 3 31283140
CommentRequired Public method and constructor comments are required 3 31423162
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 3159
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowAppResourceIdService.RESOURCE_TYPE_KEY' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowAppResourceIdService.*' 4 3170
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.RESOURCE_TYPE_KEY' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 3189
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'WorkflowResourceIdService.RESOURCE_TYPE_KEY' due to existing static import 'fr.paris.lutece.plugins.workflow.service.WorkflowResourceIdService.*' 4 3190

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