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/forms/business/CompositeDisplayType.java

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

fr/paris/lutece/plugins/forms/business/ControlType.java

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

fr/paris/lutece/plugins/forms/business/FormQuestionResponseDAO.java

Rule Violation Line
FieldNamingConventions The constant name '_formQuestionEntryResponseDAO' doesn't match '[A-Z][A-Z_0-9]*' 73

fr/paris/lutece/plugins/forms/business/IControlGroupDAO.java

Rule Violation Line
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 106

fr/paris/lutece/plugins/forms/business/LogicalOperator.java

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

fr/paris/lutece/plugins/forms/business/MultiviewConfig.java

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

fr/paris/lutece/plugins/forms/business/export/FormExportConfigHome.java

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

fr/paris/lutece/plugins/forms/business/form/FormItemSortConfig.java

Rule Violation Line
FieldNamingConventions The final field name '_nColumnToSortPosition' doesn't match '[a-z][a-zA-Z0-9]*' 42
FieldNamingConventions The final field name '_strSortAttributeName' doesn't match '[a-z][a-zA-Z0-9]*' 43
FieldNamingConventions The final field name '_bAscSort' doesn't match '[a-z][a-zA-Z0-9]*' 44

fr/paris/lutece/plugins/forms/business/form/FormResponseItem.java

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

fr/paris/lutece/plugins/forms/business/form/LuceneQueryBuilder.java

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

fr/paris/lutece/plugins/forms/business/form/column/FormColumnCellComparator.java

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

fr/paris/lutece/plugins/forms/business/form/filter/configuration/AbstractFormFilterConfiguration.java

Rule Violation Line
FieldNamingConventions The final field name '_nPosition' doesn't match '[a-z][a-zA-Z0-9]*' 48
FieldNamingConventions The final field name '_strFormFilterLabel' doesn't match '[a-z][a-zA-Z0-9]*' 49
FieldNamingConventions The final field name '_strFormFilterName' doesn't match '[a-z][a-zA-Z0-9]*' 50

fr/paris/lutece/plugins/forms/business/form/filter/configuration/FormFilterEntryConfiguration.java

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

fr/paris/lutece/plugins/forms/business/form/list/FormListFacade.java

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

fr/paris/lutece/plugins/forms/business/form/panel/FormPanelFactory.java

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

fr/paris/lutece/plugins/forms/business/form/panel/configuration/FormPanelConfiguration.java

Rule Violation Line
FieldNamingConventions The final field name '_nPosition' doesn't match '[a-z][a-zA-Z0-9]*' 48
FieldNamingConventions The final field name '_strTechnicalCode' doesn't match '[a-z][a-zA-Z0-9]*' 49
FieldNamingConventions The final field name '_strTitle' doesn't match '[a-z][a-zA-Z0-9]*' 50
FieldNamingConventions The final field name '_listFormPanelInitializerName' doesn't match '[a-z][a-zA-Z0-9]*' 51

fr/paris/lutece/plugins/forms/business/form/panel/initializer/querypart/FormPanelInitializerQueryBuilder.java

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

fr/paris/lutece/plugins/forms/dashboard/PublicDashboardForms.java

Rule Violation Line
FieldNamingConventions The field name 'strIdComponent' doesn't match '_[a-z][a-zA-Z0-9]*' 54
FormalParameterNamingConventions The method parameter name 'user_id' doesn't match '[a-z][a-zA-Z0-9]*' 75
FormalParameterNamingConventions The method parameter name 'published_questions_only' doesn't match '[a-z][a-zA-Z0-9]*' 89
FormalParameterNamingConventions The method parameter name 'published_formresponse_only' doesn't match '[a-z][a-zA-Z0-9]*' 89

fr/paris/lutece/plugins/forms/export/AbstractFileGenerator.java

Rule Violation Line
FieldNamingConventions The final field name '_formPanel' doesn't match '[a-z][a-zA-Z0-9]*' 67
FieldNamingConventions The final field name '_listFormColumn' doesn't match '[a-z][a-zA-Z0-9]*' 68
FieldNamingConventions The final field name '_listFormFilter' doesn't match '[a-z][a-zA-Z0-9]*' 69
FieldNamingConventions The final field name '_sortConfig' doesn't match '[a-z][a-zA-Z0-9]*' 70
FieldNamingConventions The final field name '_fileName' doesn't match '[a-z][a-zA-Z0-9]*' 71
FieldNamingConventions The final field name '_fileDescription' doesn't match '[a-z][a-zA-Z0-9]*' 72

fr/paris/lutece/plugins/forms/export/ExportServiceManager.java

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

fr/paris/lutece/plugins/forms/export/csv/CSVDataLine.java

Rule Violation Line
FieldNamingConventions The final field name '_mapDataToExport' doesn't match '[a-z][a-zA-Z0-9]*' 67
FieldNamingConventions The final field name '_commonDataToExport' doesn't match '[a-z][a-zA-Z0-9]*' 68

fr/paris/lutece/plugins/forms/export/csv/CSVExport.java

Rule Violation Line
FieldNamingConventions The final field name '_strFormatExportName' doesn't match '[a-z][a-zA-Z0-9]*' 54
FieldNamingConventions The final field name '_strFormatExportDisplayName' doesn't match '[a-z][a-zA-Z0-9]*' 55
FieldNamingConventions The final field name '_strFormatExportDescription' doesn't match '[a-z][a-zA-Z0-9]*' 56

fr/paris/lutece/plugins/forms/export/csv/CSVHeader.java

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

fr/paris/lutece/plugins/forms/export/csv/FormResponseCsvExport.java

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

fr/paris/lutece/plugins/forms/export/pdf/AbstractPdfFileGenerator.java

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

fr/paris/lutece/plugins/forms/export/pdf/PDFExport.java

Rule Violation Line
FieldNamingConventions The final field name '_strFormatExportName' doesn't match '[a-z][a-zA-Z0-9]*' 54
FieldNamingConventions The final field name '_strFormatExportDisplayName' doesn't match '[a-z][a-zA-Z0-9]*' 55
FieldNamingConventions The final field name '_strFormatExportDescription' doesn't match '[a-z][a-zA-Z0-9]*' 56

fr/paris/lutece/plugins/forms/export/pdffull/PdfFullExport.java

Rule Violation Line
FieldNamingConventions The final field name '_strFormatExportName' doesn't match '[a-z][a-zA-Z0-9]*' 49
FieldNamingConventions The final field name '_strFormatExportDisplayName' doesn't match '[a-z][a-zA-Z0-9]*' 50
FieldNamingConventions The final field name '_strFormatExportDescription' doesn't match '[a-z][a-zA-Z0-9]*' 51

fr/paris/lutece/plugins/forms/service/EntryServiceManager.java

Rule Violation Line
FieldNamingConventions The final field name '_listEntryDisplayService' doesn't match '[a-z][a-zA-Z0-9]*' 51
FieldNamingConventions The final field name '_listEntryDataService' doesn't match '[a-z][a-zA-Z0-9]*' 53
FieldNamingConventions The final field name '_listValidator' doesn't match '[a-z][a-zA-Z0-9]*' 55

fr/paris/lutece/plugins/forms/service/FormResponseService.java

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

fr/paris/lutece/plugins/forms/service/FormsMultiviewAuthorizationService.java

Rule Violation Line
FieldNamingConventions The final field name '_formListFacade' doesn't match '[a-z][a-zA-Z0-9]*' 73
FieldNamingConventions The final field name '_formColumnFactory' doesn't match '[a-z][a-zA-Z0-9]*' 74

fr/paris/lutece/plugins/forms/service/MultiviewFormService.java

Rule Violation Line
FieldNamingConventions The constant name '_singleton' doesn't match '[A-Z][A-Z_0-9]*' 163

fr/paris/lutece/plugins/forms/service/json/AbstractFormJsonService.java

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

fr/paris/lutece/plugins/forms/service/json/FormJsonService.java

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

fr/paris/lutece/plugins/forms/service/lock/LuceneLockManagerDB.java

Rule Violation Line
FieldNamingConventions The final field name '_lockDao' doesn't match '[a-z][a-zA-Z0-9]*' 51
FieldNamingConventions The constant name '_plugin' doesn't match '[A-Z][A-Z_0-9]*' 52

fr/paris/lutece/plugins/forms/util/FormEntryNameConstants.java

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

fr/paris/lutece/plugins/forms/util/FormMultiviewFormResponseDateCreationNameConstants.java

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

fr/paris/lutece/plugins/forms/util/FormMultiviewFormsNameConstants.java

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

fr/paris/lutece/plugins/forms/util/FormMultiviewWorkflowStateNameConstants.java

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

fr/paris/lutece/plugins/forms/util/FormsConstants.java

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

fr/paris/lutece/plugins/forms/util/FormsResponseUtils.java

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

fr/paris/lutece/plugins/forms/util/FormsUtils.java

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

fr/paris/lutece/plugins/forms/util/ReferenceListFactory.java

Rule Violation Line
FieldNamingConventions The final field name '_collectionItem' doesn't match '[a-z][a-zA-Z0-9]*' 55
FieldNamingConventions The final field name '_strCodeAttr' doesn't match '[a-z][a-zA-Z0-9]*' 56
FieldNamingConventions The final field name '_strNameAttribute' doesn't match '[a-z][a-zA-Z0-9]*' 57

fr/paris/lutece/plugins/forms/validation/AbstractValidator.java

Rule Violation Line
FieldNamingConventions The final field name '_strValidatorName' doesn't match '[a-z][a-zA-Z0-9]*' 49
FieldNamingConventions The final field name '_strDisplayName' doesn't match '[a-z][a-zA-Z0-9]*' 50

fr/paris/lutece/plugins/forms/validation/ControlListenerManager.java

Rule Violation Line
ClassNamingConventions The utility class name 'ControlListenerManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 4496
LocalVariableNamingConventions The local variable name 'ControlRemovalListener' doesn't match '[a-z][a-zA-Z0-9]*' 62
LocalVariableNamingConventions The local variable name 'ControlListener' doesn't match '[a-z][a-zA-Z0-9]*' 76
LocalVariableNamingConventions The local variable name 'ControlListener' doesn't match '[a-z][a-zA-Z0-9]*' 90

fr/paris/lutece/plugins/forms/web/CompositeGroupDisplay.java

Rule Violation Line
FieldNamingConventions The final field name '_listChildren' doesn't match '[a-z][a-zA-Z0-9]*' 97
FieldNamingConventions The final field name '_formDisplay' doesn't match '[a-z][a-zA-Z0-9]*' 99
FieldNamingConventions The final field name '_model' doesn't match '[a-z][a-zA-Z0-9]*' 101

fr/paris/lutece/plugins/forms/web/CompositeQuestionDisplay.java

Rule Violation Line
FieldNamingConventions The final field name '_formDisplay' doesn't match '[a-z][a-zA-Z0-9]*' 112
FieldNamingConventions The final field name '_model' doesn't match '[a-z][a-zA-Z0-9]*' 114

fr/paris/lutece/plugins/forms/web/FormResponseManager.java

Rule Violation Line
FieldNamingConventions The final field name '_listValidatedStep' doesn't match '[a-z][a-zA-Z0-9]*' 56
FieldNamingConventions The final field name '_formResponse' doesn't match '[a-z][a-zA-Z0-9]*' 57

fr/paris/lutece/plugins/forms/web/FormXPage.java

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

fr/paris/lutece/plugins/forms/web/StepDisplayTree.java

Rule Violation Line
FieldNamingConventions The final field name '_listChildren' doesn't match '[a-z][a-zA-Z0-9]*' 92
FieldNamingConventions The final field name '_listICompositeDisplay' doesn't match '[a-z][a-zA-Z0-9]*' 93
FieldNamingConventions The final field name '_formResponse' doesn't match '[a-z][a-zA-Z0-9]*' 96
FieldNamingConventions The final field name '_mapStepResponses' doesn't match '[a-z][a-zA-Z0-9]*' 97
FieldNamingConventions The final field name '_model' doesn't match '[a-z][a-zA-Z0-9]*' 99

fr/paris/lutece/plugins/forms/web/admin/FormControlJspBean.java

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

fr/paris/lutece/plugins/forms/web/admin/FormJspBean.java

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

fr/paris/lutece/plugins/forms/web/admin/FormQuestionJspBean.java

Rule Violation Line
FieldNamingConventions The constant name '_formService' doesn't match '[A-Z][A-Z_0-9]*' 133

fr/paris/lutece/plugins/forms/web/admin/FormStepJspBean.java

Rule Violation Line
FieldNamingConventions The constant name '_stepService' doesn't match '[A-Z][A-Z_0-9]*' 155
FieldNamingConventions The final field name '_nDefaultItemsPerPage' doesn't match '[a-z][a-zA-Z0-9]*' 161

fr/paris/lutece/plugins/forms/web/admin/MultiviewFormResponseDetailsJspBean.java

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

fr/paris/lutece/plugins/forms/web/admin/MultiviewFormWorkflowRedirectionEnum.java

Rule Violation Line
FieldNamingConventions The constant name '_mapValueNames' doesn't match '[A-Z][A-Z_0-9]*' 49

fr/paris/lutece/plugins/forms/web/breadcrumb/BreadcrumbManager.java

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

fr/paris/lutece/plugins/forms/web/breadcrumb/HorizontalBreadcrumb.java

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

fr/paris/lutece/plugins/forms/web/breadcrumb/VerticalBreadcrumb.java

Rule Violation Line
FieldNamingConventions The final field name '_strBreadcrumbBeanName' doesn't match '[a-z][a-zA-Z0-9]*' 56
FieldNamingConventions The final field name '_strBreadcrumbDisplayBeanName' doesn't match '[a-z][a-zA-Z0-9]*' 57

fr/paris/lutece/plugins/forms/web/entrytype/DisplayType.java

Rule Violation Line
FieldNamingConventions The final field name '_mode' doesn't match '[a-z][a-zA-Z0-9]*' 63
FieldNamingConventions The final field name '_bIsFront' doesn't match '[a-z][a-zA-Z0-9]*' 64

fr/paris/lutece/plugins/forms/web/exception/CodeAlreadyExistsException.java

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

fr/paris/lutece/plugins/forms/web/file/FormsFileImageService.java

Rule Violation Line
FieldNamingConventions The constant name '_singleton' doesn't match '[A-Z][A-Z_0-9]*' 172

fr/paris/lutece/plugins/forms/web/form/FormDisplayFactory.java

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

fr/paris/lutece/plugins/forms/web/form/filter/display/impl/FormFilterDisplayFormResponseDate.java

Rule Violation Line
ReturnEmptyArrayRatherThanNull Return an empty array rather than null. 170191

fr/paris/lutece/plugins/forms/web/form/multiview/util/FormColumnLineTemplate.java

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

fr/paris/lutece/plugins/forms/web/form/response/view/FormResponseViewModelProcessorFactory.java

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

fr/paris/lutece/plugins/forms/web/http/SynchronousHttpServletRequestWrapper.java

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

Priority 2

fr/paris/lutece/plugins/forms/business/Control.java

Rule Violation Line
ProperCloneImplementation Object clone() should be implemented with super.clone() 201

fr/paris/lutece/plugins/forms/business/FormDAO.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'strSqlQuery' 243

fr/paris/lutece/plugins/forms/business/Question.java

Rule Violation Line
ProperCloneImplementation Object clone() should be implemented with super.clone() 331

fr/paris/lutece/plugins/forms/export/csv/CSVUtil.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'strValue' 103

fr/paris/lutece/plugins/forms/service/MultiviewFormService.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'nIdForm' 172
AvoidReassigningParameters Avoid reassigning parameters such as 'nIdForm' 228

fr/paris/lutece/plugins/forms/service/download/FormsFileDownloadService.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'additionnalData' 68
AvoidReassigningParameters Avoid reassigning parameters such as 'additionnalData' 86

fr/paris/lutece/plugins/forms/util/LuceneUtils.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'nIterationNumber' 55

fr/paris/lutece/plugins/forms/web/admin/FormControlJspBean.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'controlGroup' 339
AvoidReassigningParameters Avoid reassigning parameters such as 'controlGroup' 339
AvoidReassigningParameters Avoid reassigning parameters such as 'controlGroup' 339

Priority 3

fr/paris/lutece/plugins/forms/business/ConditionControl.java

Rule Violation Line
CommentRequired Header comments are required 3678
UncommentedEmptyConstructor Document empty constructor 4445
CommentRequired Public method and constructor comments are required 4445
CommentRequired Public method and constructor comments are required 4752
CommentRequired Public method and constructor comments are required 5456
CommentRequired Public method and constructor comments are required 5860
CommentRequired Public method and constructor comments are required 6264
CommentRequired Public method and constructor comments are required 6668

fr/paris/lutece/plugins/forms/business/Control.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 187189
CommentRequired Public method and constructor comments are required 191193
CloneThrowsCloneNotSupportedException clone() method should throw CloneNotSupportedException 201224

fr/paris/lutece/plugins/forms/business/ControlDAO.java

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

fr/paris/lutece/plugins/forms/business/ControlGroupDAO.java

Rule Violation Line
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 100
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 155
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 223225
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 245

fr/paris/lutece/plugins/forms/business/ControlHome.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 8085

fr/paris/lutece/plugins/forms/business/ControlMapping.java

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

fr/paris/lutece/plugins/forms/business/Form.java

Rule Violation Line
ExcessivePublicCount This class has a bunch of public methods and attributes 34813
GodClass Possible God Class (WMC=79, ATFD=10, TCC=1.798%) 55813
TooManyFields Too many fields 55813
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the Form constructor if you want a default access modifier 149178
SimplifyBooleanReturns Avoid unnecessary if..then..else statements when returning booleans 808810

fr/paris/lutece/plugins/forms/business/FormDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 55393
ConfusingTernary Avoid if (x != y) ..; else ..; 98105
ConfusingTernary Avoid if (x != y) ..; else ..; 182189

fr/paris/lutece/plugins/forms/business/FormDisplayDAO.java

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

fr/paris/lutece/plugins/forms/business/FormQuestionResponseDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 55724
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 428431

fr/paris/lutece/plugins/forms/business/FormQuestionResponseHome.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 47300
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 143147

fr/paris/lutece/plugins/forms/business/FormResponseDAO.java

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

fr/paris/lutece/plugins/forms/business/FormResponseHome.java

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

fr/paris/lutece/plugins/forms/business/FormResponseStepHome.java

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

fr/paris/lutece/plugins/forms/business/GroupDAO.java

Rule Violation Line
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 222
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 223

fr/paris/lutece/plugins/forms/business/IControlDAO.java

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

fr/paris/lutece/plugins/forms/business/IFormCategoryDAO.java

Rule Violation Line
CommentRequired Header comments are required 4068

fr/paris/lutece/plugins/forms/business/IFormQuestionResponseDAO.java

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

fr/paris/lutece/plugins/forms/business/IFormResponseDAO.java

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

fr/paris/lutece/plugins/forms/business/IQuestionDAO.java

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

fr/paris/lutece/plugins/forms/business/IStepDAO.java

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

fr/paris/lutece/plugins/forms/business/ITransitionDAO.java

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

fr/paris/lutece/plugins/forms/business/LogicalOperator.java

Rule Violation Line
CommentRequired Enum comments are required 3651
CommentRequired Public method and constructor comments are required 4749

fr/paris/lutece/plugins/forms/business/MultiviewConfig.java

Rule Violation Line
CommentRequired Header comments are required 39173
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _bDisplayFormsTitleColumn field if you want a default access modifier 43
DefaultPackage Use explicit scoping instead of the default package private level 43
DefaultPackage Use explicit scoping instead of the default package private level 44
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _bDisplayFormsAssigneeColumn field if you want a default access modifier 44
DefaultPackage Use explicit scoping instead of the default package private level 45
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _strCsvSeparator field if you want a default access modifier 45
DefaultPackage Use explicit scoping instead of the default package private level 46
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _intNumberOfFormResponsesPerPdf field if you want a default access modifier 46
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _nIdFileTemplatePdf field if you want a default access modifier 47
DefaultPackage Use explicit scoping instead of the default package private level 47
ConfusingTernary Avoid if (x != y) ..; else ..; 66
NonThreadSafeSingleton Singleton is not thread safe 7679
CommentRequired Public method and constructor comments are required 138141
CommentRequired Public method and constructor comments are required 143146
CommentRequired Public method and constructor comments are required 148150
CommentRequired Public method and constructor comments are required 152154

fr/paris/lutece/plugins/forms/business/Question.java

Rule Violation Line
TooManyFields Too many fields 48532
CommentRequired Public method and constructor comments are required 507509
CommentRequired Public method and constructor comments are required 511513
ShortVariable Avoid variables with short names like o 516

fr/paris/lutece/plugins/forms/business/QuestionDAO.java

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

fr/paris/lutece/plugins/forms/business/StepDAO.java

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

fr/paris/lutece/plugins/forms/business/TransitionDAO.java

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

fr/paris/lutece/plugins/forms/business/action/GlobalFormsActionIdService.java

Rule Violation Line
CommentRequired Header comments are required 4792
ShortVariable Avoid variables with short names like rt 56
ShortVariable Avoid variables with short names like p 62
ConfusingTernary Avoid if (x != y) ..; else ..; 89

fr/paris/lutece/plugins/forms/business/export/FormExportConfig.java

Rule Violation Line
CommentRequired Header comments are required 36129

fr/paris/lutece/plugins/forms/business/export/FormExportConfigDao.java

Rule Violation Line
CommentRequired Header comments are required 43144

fr/paris/lutece/plugins/forms/business/export/FormExportConfigHome.java

Rule Violation Line
CommentRequired Header comments are required 42108

fr/paris/lutece/plugins/forms/business/export/IFormExportConfigDao.java

Rule Violation Line
CommentRequired Header comments are required 4091

fr/paris/lutece/plugins/forms/business/form/FormParameters.java

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

fr/paris/lutece/plugins/forms/business/form/column/FormColumnCell.java

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

fr/paris/lutece/plugins/forms/business/form/column/FormColumnComparator.java

Rule Violation Line
CommentRequired Header comments are required 3953

fr/paris/lutece/plugins/forms/business/form/column/impl/FormColumnEntry.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 103106

fr/paris/lutece/plugins/forms/business/form/column/querypart/impl/AbstractFormColumnQueryPart.java

Rule Violation Line
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 58
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 84
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 107

fr/paris/lutece/plugins/forms/business/form/column/querypart/impl/FormColumnEntryCartographyQueryPart.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 63
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 7683

fr/paris/lutece/plugins/forms/business/form/column/querypart/impl/FormColumnEntryGeolocationQueryPart.java

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

fr/paris/lutece/plugins/forms/business/form/column/querypart/impl/FormColumnEntryQueryPart.java

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

fr/paris/lutece/plugins/forms/business/form/column/querypart/impl/FormColumnFormResponseDateCreationQueryPart.java

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

fr/paris/lutece/plugins/forms/business/form/column/querypart/impl/FormColumnFormResponseDateUpdateQueryPart.java

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

fr/paris/lutece/plugins/forms/business/form/column/querypart/impl/FormColumnFormsQueryPart.java

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

fr/paris/lutece/plugins/forms/business/form/column/querypart/impl/FormColumnWorkflowStateQueryPart.java

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

fr/paris/lutece/plugins/forms/business/form/filter/FormFilter.java

Rule Violation Line
DataClass The class 'FormFilter' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=4) 4279

fr/paris/lutece/plugins/forms/business/form/filter/FormFilterForms.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 4662
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 49

fr/paris/lutece/plugins/forms/business/form/filter/configuration/AbstractFormFilterConfiguration.java

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

fr/paris/lutece/plugins/forms/business/form/filter/configuration/FormFilterDateConfiguration.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 4750

fr/paris/lutece/plugins/forms/business/form/filter/configuration/FormFilterEntryConfiguration.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 5054

fr/paris/lutece/plugins/forms/business/form/filter/configuration/FormFilterFormResponseIdConfiguration.java

Rule Violation Line
CommentRequired Header comments are required 4568
CommentRequired Public method and constructor comments are required 4851

fr/paris/lutece/plugins/forms/business/form/filter/configuration/FormFilterFormsConfiguration.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 4851

fr/paris/lutece/plugins/forms/business/form/filter/configuration/FormFilterWorkflowConfiguration.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 4851

fr/paris/lutece/plugins/forms/business/form/filter/querypart/impl/AbstractFormFilterLuceneQueryPart.java

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

fr/paris/lutece/plugins/forms/business/form/filter/querypart/impl/FormFilterEntryLuceneQueryPart.java

Rule Violation Line
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _formSearchEngine field if you want a default access modifier 69
DefaultPackage Use explicit scoping instead of the default package private level 69
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 74
ConfusingTernary Avoid if (x != y) ..; else ..; 126133

fr/paris/lutece/plugins/forms/business/form/filter/querypart/impl/FormFilterFormResponseDateLuceneQueryPart.java

Rule Violation Line
ConfusingTernary Avoid if (x != y) ..; else ..; 5690
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 69

fr/paris/lutece/plugins/forms/business/form/filter/querypart/impl/FormFilterFormsLuceneQueryPart.java

Rule Violation Line
ConfusingTernary Avoid if (x != y) ..; else ..; 5774
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 61

fr/paris/lutece/plugins/forms/business/form/filter/querypart/impl/FormFilterIdFormResponseLuceneQueryPart.java

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

fr/paris/lutece/plugins/forms/business/form/lock/ILockDAO.java

Rule Violation Line
CommentRequired Header comments are required 3871
UnnecessaryModifier Unnecessary modifier 'public' on method 'acquire': the method is declared in an interface type 47
UnnecessaryModifier Unnecessary modifier 'public' on method 'release': the method is declared in an interface type 55
UnnecessaryModifier Unnecessary modifier 'public' on method 'refresh': the method is declared in an interface type 63
UnnecessaryModifier Unnecessary modifier 'public' on method 'closeAll': the method is declared in an interface type 69

fr/paris/lutece/plugins/forms/business/form/lock/Lock.java

Rule Violation Line
CommentRequired Header comments are required 39164
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 39164
DataClass The class 'Lock' is suspected to be a Data Class (WOC=8.333%, NOPA=0, NOAM=11, WMC=12) 39164

fr/paris/lutece/plugins/forms/business/form/lock/LockDAO.java

Rule Violation Line
CommentRequired Header comments are required 45129

fr/paris/lutece/plugins/forms/business/form/panel/configuration/IFormPanelConfiguration.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'RESOURCE_TYPE': the field is declared in an interface type 48

fr/paris/lutece/plugins/forms/business/form/panel/initializer/querypart/impl/FormPanelFormResponseIdFilterInitializerQueryPart.java

Rule Violation Line
CommentRequired Header comments are required 4458

fr/paris/lutece/plugins/forms/business/form/search/FormResponseSearchItem.java

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

fr/paris/lutece/plugins/forms/business/form/search/IIndexerActionDAO.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'selectList': the method is declared in an interface type 121

fr/paris/lutece/plugins/forms/business/form/search/IndexerActionDAO.java

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

fr/paris/lutece/plugins/forms/business/portlet/FormsListPortlet.java

Rule Violation Line
CommentRequired Header comments are required 51179
CallSuperInConstructor It is a good practice to call super() in a constructor 6871
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 85

fr/paris/lutece/plugins/forms/business/portlet/FormsListPortletDAO.java

Rule Violation Line
CommentRequired Header comments are required 44120

fr/paris/lutece/plugins/forms/business/portlet/FormsListPortletHome.java

Rule Violation Line
RedundantFieldInitializer Avoid using redundant field initializer for '_instance' 47
NonThreadSafeSingleton Singleton is not thread safe 5659
MissingOverride The method 'getPortletTypeId()' is missing an @Override annotation. 6973
MissingOverride The method 'getDAO()' is missing an @Override annotation. 8083

fr/paris/lutece/plugins/forms/business/portlet/IFormsListPortletDAO.java

Rule Violation Line
CommentRequired Header comments are required 3841

fr/paris/lutece/plugins/forms/dashboard/PublicDashboardForms.java

Rule Violation Line
CommentRequired Header comments are required 49123
ImmutableField Private field 'strIdComponent' could be made final; it is only initialized in the declaration or constructor. 54
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 77
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 77
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 117

fr/paris/lutece/plugins/forms/exception/LockException.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 313
CommentRequired Header comments are required 313
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 811

fr/paris/lutece/plugins/forms/exception/MaxFormResponseException.java

Rule Violation Line
CommentRequired Header comments are required 3674

fr/paris/lutece/plugins/forms/export/AbstractFileGenerator.java

Rule Violation Line
CommentRequired Header comments are required 57122
RedundantFieldInitializer Avoid using redundant field initializer for '_configList' 74
CommentRequired Protected method constructor comments are required 99113
CommentRequired Protected method constructor comments are required 115120
ConfusingTernary Avoid if (x != y) ..; else ..; 117
ConfusingTernary Avoid if (x != y) ..; else ..; 118

fr/paris/lutece/plugins/forms/export/ExportServiceManager.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 132152
CommentRequired Public method and constructor comments are required 154178
CommentRequired Public method and constructor comments are required 180213

fr/paris/lutece/plugins/forms/export/csv/CSVDataLine.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'RESPONSE_SEPARATOR'. 63
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 84
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 85
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 86
CommentRequired Public method and constructor comments are required 93118
ConfusingTernary Avoid if (x != y) ..; else ..; 97
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 110113
ConfusingTernary Avoid if (x != y) ..; else ..; 127

fr/paris/lutece/plugins/forms/export/csv/CSVFileGenerator.java

Rule Violation Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 133

fr/paris/lutece/plugins/forms/export/csv/CSVHeader.java

Rule Violation Line
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _mapQuestionAndIterationColumn field if you want a default access modifier 52
DefaultPackage Use explicit scoping instead of the default package private level 52
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 52
SingularField Perhaps '_numberOfQuestionColumns' could be replaced by a local variable. 54
ImmutableField Private field '_numberOfQuestionColumns' could be made final; it is only initialized in the declaration or constructor. 54
UnusedPrivateField Avoid unused private fields such as '_numberOfQuestionColumns'. 54
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 118133

fr/paris/lutece/plugins/forms/export/csv/CSVUtil.java

Rule Violation Line
DefaultPackage Use explicit scoping instead of the default package private level 103109
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the safeString method if you want a default access modifier 103109

fr/paris/lutece/plugins/forms/export/csv/FormResponseCsvExport.java

Rule Violation Line
ImmutableField Private field '_csvSeparator' could be made final; it is only initialized in the declaration or constructor. 62
CommentRequired Public method and constructor comments are required 6467
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 76
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 77
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 78
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 79
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 80
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 81
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 82
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 8590
CommentRequired Public method and constructor comments are required 99111
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 122
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 152
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 185

fr/paris/lutece/plugins/forms/export/pdf/AbstractPdfFileGenerator.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34439
CommentRequired Header comments are required 95439
GodClass Possible God Class (WMC=51, ATFD=47, TCC=1.515%) 95439
CommentRequired Protected method constructor comments are required 111115
CommentRequired Protected method constructor comments are required 117125
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 117
CommentRequired Protected method constructor comments are required 127138
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 127
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 272281
NPathComplexity The method 'getResponseValue(FormQuestionResponse, int)' has an NPath complexity of 2166 343419
CyclomaticComplexity The method 'getResponseValue(FormQuestionResponse, int)' has a cyclomatic complexity of 19. 343419
CollapsibleIfStatements These nested if statements could be combined 382398
ConfusingTernary Avoid if (x != y) ..; else ..; 409
CommentRequired Protected method constructor comments are required 421437

fr/paris/lutece/plugins/forms/export/pdf/FormResponsePdfExport.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34251
CommentRequired Header comments are required 73251
CommentRequired Public method and constructor comments are required 78104
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 191
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 191195
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 194

fr/paris/lutece/plugins/forms/export/pdf/PdfCell.java

Rule Violation Line
DataClass The class 'PdfCell' is suspected to be a Data Class (WOC=7.692%, NOPA=0, NOAM=12, WMC=13) 38127
CommentRequired Header comments are required 38127
CommentRequired Public method and constructor comments are required 123126

fr/paris/lutece/plugins/forms/export/pdf/PdfFileGenerator.java

Rule Violation Line
CommentRequired Header comments are required 61187
RedundantFieldInitializer Avoid using redundant field initializer for '_hasMultipleFiles' 65
CommentRequired Protected method constructor comments are required 6771
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 127
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 152
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 160
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 171
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 181

fr/paris/lutece/plugins/forms/export/pdf/PdfUtil.java

Rule Violation Line
CommentRequired Header comments are required 47163
ShortVariable Avoid variables with short names like y 64
CommentRequired Public method and constructor comments are required 150162

fr/paris/lutece/plugins/forms/export/pdffull/PdfFullExport.java

Rule Violation Line
CommentRequired Header comments are required 4795

fr/paris/lutece/plugins/forms/export/pdffull/PdfFullFileGenerator.java

Rule Violation Line
CommentRequired Header comments are required 67228
RedundantFieldInitializer Avoid using redundant field initializer for '_hasMultipleFiles' 69
CommentRequired Protected method constructor comments are required 7175
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 137
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 152
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 160
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 184

fr/paris/lutece/plugins/forms/service/AbstractFormDisplayService.java

Rule Violation Line
CommentRequired Header comments are required 50251
RedundantFieldInitializer Avoid using redundant field initializer for '_formDatabaseService' 55
CommentRequired Protected method constructor comments are required 250

fr/paris/lutece/plugins/forms/service/FormCategoryService.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 4858

fr/paris/lutece/plugins/forms/service/FormDatabaseService.java

Rule Violation Line
CommentRequired Header comments are required 57234
TooManyMethods This class has too many methods, consider refactoring it. 58234

fr/paris/lutece/plugins/forms/service/FormDisplayService.java

Rule Violation Line
MissingOverride The method 'deleteDisplayAndDescendants(int)' is missing an @Override annotation. 66119
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 9294

fr/paris/lutece/plugins/forms/service/FormPanelConfigIdService.java

Rule Violation Line
CommentRequired Header comments are required 49116

fr/paris/lutece/plugins/forms/service/FormResponseService.java

Rule Violation Line
ImmutableField Private field '_formService' could be made final; it is only initialized in the declaration or constructor. 58
CommentRequired Public method and constructor comments are required 6775
NonThreadSafeSingleton Singleton is not thread safe 6972
CommentRequired Public method and constructor comments are required 7781
CommentRequired Public method and constructor comments are required 8387
CommentRequired Public method and constructor comments are required 101129
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 122

fr/paris/lutece/plugins/forms/service/FormService.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34681
GodClass Possible God Class (WMC=64, ATFD=84, TCC=0.308%) 100681
TooManyMethods This class has too many methods, consider refactoring it. 101681
CyclomaticComplexity The method 'saveForm(Form, FormResponse)' has a cyclomatic complexity of 12. 118158
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 151
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 515
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 549
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 584
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 622

fr/paris/lutece/plugins/forms/service/FormsMultiviewAuthorizationService.java

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

fr/paris/lutece/plugins/forms/service/FormsResourceIdService.java

Rule Violation Line
DataClass The class 'FormsResourceIdService' is suspected to be a Data Class (WOC=0.000%, NOPA=13, NOAM=0, WMC=1) 52183

fr/paris/lutece/plugins/forms/service/IFormDatabaseService.java

Rule Violation Line
CommentRequired Header comments are required 48273
TooManyMethods This class has too many methods, consider refactoring it. 49273
CommentRequired Public method and constructor comments are required 272

fr/paris/lutece/plugins/forms/service/IFormDisplayService.java

Rule Violation Line
CommentRequired Header comments are required 42128
CommentRequired Public method and constructor comments are required 93

fr/paris/lutece/plugins/forms/service/MultiviewFormService.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34384
CommentRequired Public method and constructor comments are required 124129
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 174
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 188
CyclomaticComplexity The method 'getFormFiltersList(Integer, List, Locale, User)' has a cyclomatic complexity of 10. 228273
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 230
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 254
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'question' 289
ConfusingTernary Avoid if (x != y) ..; else ..; 291305

fr/paris/lutece/plugins/forms/service/StepService.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 114
CommentRequired Public method and constructor comments are required 174177
CommentRequired Public method and constructor comments are required 179186

fr/paris/lutece/plugins/forms/service/cache/FormsCacheService.java

Rule Violation Line
CommentRequired Header comments are required 43162
CommentRequired Public method and constructor comments are required 6164
CommentRequired Public method and constructor comments are required 6669
CommentRequired Public method and constructor comments are required 7174
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 8690
CommentRequired Public method and constructor comments are required 9296
CommentRequired Public method and constructor comments are required 98101
CommentRequired Public method and constructor comments are required 103106
CommentRequired Public method and constructor comments are required 108112
CommentRequired Public method and constructor comments are required 114117
CommentRequired Public method and constructor comments are required 119122
CommentRequired Public method and constructor comments are required 124127
CommentRequired Public method and constructor comments are required 129132

fr/paris/lutece/plugins/forms/service/download/FormsFileDownloadService.java

Rule Violation Line
CommentRequired Header comments are required 46131
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 72
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 90
ShortVariable Avoid variables with short names like sb 111
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 112
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 113
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 114
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 115

fr/paris/lutece/plugins/forms/service/download/FormsFileRBACService.java

Rule Violation Line
CommentRequired Header comments are required 4981
ShortVariable Avoid variables with short names like bo 57

fr/paris/lutece/plugins/forms/service/entrytype/EntryTypeAutomaticFileReading.java

Rule Violation Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 312

fr/paris/lutece/plugins/forms/service/entrytype/EntryTypeCamera.java

Rule Violation Line
CommentRequired Header comments are required 4199

fr/paris/lutece/plugins/forms/service/entrytype/EntryTypeCheckBox.java

Rule Violation Line
CyclomaticComplexity The method 'isResponseChanged(List, List)' has a cyclomatic complexity of 11. 107151
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 114

fr/paris/lutece/plugins/forms/service/entrytype/EntryTypeGalleryImage.java

Rule Violation Line
CyclomaticComplexity The method 'getResponseValueForExport(Entry, HttpServletRequest, Response, Locale)' has a cyclomatic complexity of 10. 136171
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 153162

fr/paris/lutece/plugins/forms/service/entrytype/EntryTypeMyLuteceUserAttribute.java

Rule Violation Line
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 211

fr/paris/lutece/plugins/forms/service/entrytype/EntryTypeSlot.java

Rule Violation Line
CommentRequired Header comments are required 42117

fr/paris/lutece/plugins/forms/service/json/AbstractFormJsonService.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34451
GodClass Possible God Class (WMC=53, ATFD=65, TCC=10.458%) 80451
CommentRequired Header comments are required 80451
TooManyMethods This class has too many methods, consider refactoring it. 81451
CommentRequired Protected method constructor comments are required 8795
CommentRequired Public method and constructor comments are required 170195
CommentRequired Protected method constructor comments are required 197219
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 200
CommentRequired Protected method constructor comments are required 221260
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 225
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 227
CommentRequired Protected method constructor comments are required 262276
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 264
CommentRequired Protected method constructor comments are required 278301
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 280
CommentRequired Protected method constructor comments are required 303336
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 306
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 316
CommentRequired Protected method constructor comments are required 450

fr/paris/lutece/plugins/forms/service/json/FormJsonData.java

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

fr/paris/lutece/plugins/forms/service/json/FormJsonService.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34245
CommentRequired Public method and constructor comments are required 9295
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 216

fr/paris/lutece/plugins/forms/service/json/StepJsonData.java

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

fr/paris/lutece/plugins/forms/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/forms/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/forms/service/listener/FormResponseEventListener.java

Rule Violation Line
CommentRequired Header comments are required 47143

fr/paris/lutece/plugins/forms/service/lock/LockResult.java

Rule Violation Line
CommentRequired Header comments are required 3898

fr/paris/lutece/plugins/forms/service/lock/LuceneLockManager.java

Rule Violation Line
CommentRequired Header comments are required 539

fr/paris/lutece/plugins/forms/service/lock/LuceneLockManagerDB.java

Rule Violation Line
MissingStaticMethodInNonInstantiatableClass Class cannot be instantiated and does not provide any static methods or fields 49131
CommentRequired Header comments are required 49131

fr/paris/lutece/plugins/forms/service/provider/GenericFormsProvider.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34358
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 84358
CommentRequired Header comments are required 84358
CyclomaticComplexity The method 'getValuesModel(FormResponse, HttpServletRequest)' has a cyclomatic complexity of 20. 128233
NcssCount The method 'getValuesModel(FormResponse, HttpServletRequest)' has a NCSS line count of 62. 128233
ExcessiveMethodLength Avoid really long methods. 128233
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 130
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 142175
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 150156
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 157172
CollapsibleIfStatements These nested if statements could be combined 159171
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 245

fr/paris/lutece/plugins/forms/service/resource/FormResponseExtendableResourceService.java

Rule Violation Line
CommentRequired Header comments are required 4686

fr/paris/lutece/plugins/forms/service/search/FormSearchConfig.java

Rule Violation Line
CommentRequired Header comments are required 3661

fr/paris/lutece/plugins/forms/service/search/FormsSearchIndexerDaemon.java

Rule Violation Line
ImmutableField Private field '_formSearchIndexer' could be made final; it is only initialized in the declaration or constructor. 55

fr/paris/lutece/plugins/forms/service/search/IFormSearchEngine.java

Rule Violation Line
CommentRequired Header comments are required 4478

fr/paris/lutece/plugins/forms/service/search/ILucenDocumentExternalFieldProvider.java

Rule Violation Line
CommentRequired Header comments are required 4051
UnnecessaryModifier Unnecessary modifier 'public' on method 'provideFields': the method is declared in an interface type 50

fr/paris/lutece/plugins/forms/service/search/LuceneFormSearchEngine.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34254
CommentRequired Header comments are required 72254
ShortVariable Avoid variables with short names like ir 88
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 128
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 128
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 129
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 135140
ShortVariable Avoid variables with short names like si 138
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 142
ShortVariable Avoid variables with short names like ir 188
ConfusingTernary Avoid if (x != y) ..; else ..; 194201

fr/paris/lutece/plugins/forms/service/search/LuceneFormSearchFactory.java

Rule Violation Line
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 70
CyclomaticComplexity The method 'getIndexWriter(Boolean, boolean)' has a cyclomatic complexity of 11. 94140
ConfusingTernary Avoid if (x != y) ..; else ..; 163169

fr/paris/lutece/plugins/forms/service/search/LuceneFormSearchIndexer.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34889
GodClass Possible God Class (WMC=95, ATFD=149, TCC=8.696%) 97889
CyclomaticComplexity The class 'LuceneFormSearchIndexer' has a total cyclomatic complexity of 95 (highest 17). 97889
TooManyMethods This class has too many methods, consider refactoring it. 98889
UseUnderscoresInNumericLiterals Number 3600000L should separate every third digit with an underscore 104
ImmutableField Private field '_lockManager' could be made final; it is only initialized in the declaration or constructor. 111
MissingOverride The method 'fullIndexing()' is missing an @Override annotation. 147187
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 71 characters appended. 150
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 170
MissingOverride The method 'incrementalIndexing()' is missing an @Override annotation. 192216
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 116 characters appended. 194
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 203
CyclomaticComplexity The method 'removeConcurrentAction(List, List, List, Plugin)' has a cyclomatic complexity of 10. 259313
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 318395
CyclomaticComplexity The method 'processIndexing()' has a cyclomatic complexity of 12. 318395
MissingOverride The method 'isIndexerInitialized()' is missing an @Override annotation. 400411
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 406
ConfusingTernary Avoid if (x != y) ..; else ..; 426435
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 441
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 484
CyclomaticComplexity The method 'getDocument(FormResponse, Form, State)' has a cyclomatic complexity of 17. 667810
NcssCount The method 'getDocument(FormResponse, Form, State)' has a NCSS line count of 76. 667810
ExcessiveMethodLength Avoid really long methods. 667810
ConfusingTernary Avoid if (x != y) ..; else ..; 747802
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 759
ShortVariable Avoid variables with short names like sb 822
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 840

fr/paris/lutece/plugins/forms/service/upload/FormsAsynchronousUploadHandler.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 6063

fr/paris/lutece/plugins/forms/util/FormsConstants.java

Rule Violation Line
AvoidDuplicateLiterals The String literal "id_parent" appears 4 times in this file; the first occurrence is on line 57 57

fr/paris/lutece/plugins/forms/util/FormsResponseUtils.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34578
CommentRequired Header comments are required 95578
GodClass Possible God Class (WMC=68, ATFD=106, TCC=0.526%) 95578
TooManyMethods This class has too many methods, consider refactoring it. 96578
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 98
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 132
ConfusingTernary Avoid if (x != y) ..; else ..; 210
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 242245
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 265
NPathComplexity The method 'fillResponseManagerWithResponses(HttpServletRequest, boolean, FormResponseManager, List, boolean)' has an NPath complexity of 1098 326413
CyclomaticComplexity The method 'fillResponseManagerWithResponses(HttpServletRequest, boolean, FormResponseManager, List, boolean)' has a cyclomatic complexity of 17. 326413
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 335348
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 415419
CommentRequired Public method and constructor comments are required 415419
CommentRequired Public method and constructor comments are required 503506
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 572

fr/paris/lutece/plugins/forms/util/FormsUtils.java

Rule Violation Line
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 18 characters appended. 60

fr/paris/lutece/plugins/forms/util/LuceneUtils.java

Rule Violation Line
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 58

fr/paris/lutece/plugins/forms/util/ReferenceItemComparator.java

Rule Violation Line
ConfusingTernary Avoid if (x != y) ..; else ..; 6185
ConfusingTernary Avoid if (x != y) ..; else ..; 6373
ConfusingTernary Avoid if (x != y) ..; else ..; 7784

fr/paris/lutece/plugins/forms/validation/AbstractDateValidator.java

Rule Violation Line
CommentRequired Header comments are required 53130
CommentRequired Public method and constructor comments are required 6265
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 70
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 97
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 107
CommentRequired Protected method constructor comments are required 123
CommentRequired Protected method constructor comments are required 125
CommentRequired Protected method constructor comments are required 127
CommentRequired Protected method constructor comments are required 129

fr/paris/lutece/plugins/forms/validation/AbstractDayDistanceValidator.java

Rule Violation Line
CommentRequired Header comments are required 48110
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 74
CommentRequired Public method and constructor comments are required 106
CommentRequired Protected method constructor comments are required 108
CommentRequired Protected method constructor comments are required 109

fr/paris/lutece/plugins/forms/validation/AbstractListQuestionValidator.java

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

fr/paris/lutece/plugins/forms/validation/AbstractNumberValidator.java

Rule Violation Line
CommentRequired Header comments are required 48110
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 74
CommentRequired Public method and constructor comments are required 106
CommentRequired Protected method constructor comments are required 108
CommentRequired Protected method constructor comments are required 109

fr/paris/lutece/plugins/forms/validation/AbstractPatternValidator.java

Rule Violation Line
CommentRequired Header comments are required 56128
ImmutableField Private field '_plugin' could be made final; it is only initialized in the declaration or constructor. 63
CommentRequired Public method and constructor comments are required 6568
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 73
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 94
CommentRequired Protected method constructor comments are required 127

fr/paris/lutece/plugins/forms/validation/AbstractValidator.java

Rule Violation Line
CommentRequired Header comments are required 46170

fr/paris/lutece/plugins/forms/validation/DateInferiorValidator.java

Rule Violation Line
CommentRequired Header comments are required 3970
CommentRequired Public method and constructor comments are required 4245

fr/paris/lutece/plugins/forms/validation/DateSuperiorValidator.java

Rule Violation Line
CommentRequired Header comments are required 3970
CommentRequired Public method and constructor comments are required 4245

fr/paris/lutece/plugins/forms/validation/DayDelayMinimumValidator.java

Rule Violation Line
CommentRequired Header comments are required 4177

fr/paris/lutece/plugins/forms/validation/ICustomImportableControl.java

Rule Violation Line
CommentRequired Header comments are required 720

fr/paris/lutece/plugins/forms/validation/ListExactResponseValidator.java

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

fr/paris/lutece/plugins/forms/validation/ListMaxResponseValidator.java

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

fr/paris/lutece/plugins/forms/validation/ListMinResponseValidator.java

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

fr/paris/lutece/plugins/forms/validation/ListQuestionListener.java

Rule Violation Line
CommentRequired Header comments are required 4394
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 7174

fr/paris/lutece/plugins/forms/validation/ListValueValidator.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 94
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 105108
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 144

fr/paris/lutece/plugins/forms/validation/NumberInferiorValidator.java

Rule Violation Line
CommentRequired Header comments are required 3971

fr/paris/lutece/plugins/forms/validation/NumberSuperiorValidator.java

Rule Violation Line
CommentRequired Header comments are required 4074

fr/paris/lutece/plugins/forms/validation/UniqueValidator.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 80
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 105

fr/paris/lutece/plugins/forms/web/CompositeGroupDisplay.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 71597
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 101
UnusedFormalParameter Avoid unused constructor parameters such as 'nIterationNumber'. 113
NPathComplexity The method 'findTemplateFor(DisplayType)' has an NPath complexity of 384 274312
CyclomaticComplexity The method 'findTemplateFor(DisplayType)' has a cyclomatic complexity of 10. 274312
ConfusingTernary Avoid if (x != y) ..; else ..; 481

fr/paris/lutece/plugins/forms/web/CompositeQuestionDisplay.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34723
TooManyMethods This class has too many methods, consider refactoring it. 88723
NPathComplexity The method 'getCompositeHtml(HttpServletRequest, List, Locale, DisplayType)' has an NPath complexity of 2148 200299
NcssCount The method 'getCompositeHtml(HttpServletRequest, List, Locale, DisplayType)' has a NCSS line count of 64. 200299
CyclomaticComplexity The method 'getCompositeHtml(HttpServletRequest, List, Locale, DisplayType)' has a cyclomatic complexity of 19. 200299
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 203
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 203
ControlStatementBraces This statement should have braces 234
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 253255
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 262273
ConfusingTernary Avoid if (x != y) ..; else ..; 284
ConfusingTernary Avoid if (x != y) ..; else ..; 295
CyclomaticComplexity The method 'findTemplateFor(DisplayType)' has a cyclomatic complexity of 10. 457497
NPathComplexity The method 'findTemplateFor(DisplayType)' has an NPath complexity of 384 457497
NPathComplexity The method 'setQuestionVisibility(List, DisplayType)' has an NPath complexity of 576 532576
CyclomaticComplexity The method 'setQuestionVisibility(List, DisplayType)' has a cyclomatic complexity of 11. 532576
ConfusingTernary Avoid if (x != y) ..; else ..; 637

fr/paris/lutece/plugins/forms/web/FormResponseData.java

Rule Violation Line
CommentRequired Header comments are required 38112

fr/paris/lutece/plugins/forms/web/FormResponseManager.java

Rule Violation Line
GodClass Possible God Class (WMC=49, ATFD=34, TCC=26.667%) 54429
TooManyMethods This class has too many methods, consider refactoring it. 55429
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsResponseLoadedFromBackup' 58
RedundantFieldInitializer Avoid using redundant field initializer for '_isBackupResponseAlreadyInitiated' 59
ConfusingTernary Avoid if (x != y) ..; else ..; 152
CommentRequired Public method and constructor comments are required 157161
CommentRequired Public method and constructor comments are required 171173
CommentRequired Public method and constructor comments are required 182184

fr/paris/lutece/plugins/forms/web/FormResponseXPage.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34377
CommentRequired Public method and constructor comments are required 132152
CommentRequired Public method and constructor comments are required 155196
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 159
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 198
CommentRequired Public method and constructor comments are required 199250
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 208
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 227
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 260
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 264
ConfusingTernary Avoid if (x != y) ..; else ..; 342349

fr/paris/lutece/plugins/forms/web/FormXPage.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 341470
ExcessiveClassLength Avoid really long classes. 981470
TooManyMethods This class has too many methods, consider refactoring it. 991470
ImmutableField Private field '_captchaSecurityService' could be made final; it is only initialized in the declaration or constructor. 154
RedundantFieldInitializer Avoid using redundant field initializer for 'IsRequestComingFromAction' 161
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 215
CyclomaticComplexity The method 'checkMyLuteceAuthentification(Form, HttpServletRequest)' has a cyclomatic complexity of 11. 229258
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 271
NPathComplexity The method 'getStepView(HttpServletRequest)' has an NPath complexity of 184608 272395
NcssCount The method 'getStepView(HttpServletRequest)' has a NCSS line count of 63. 272395
ExcessiveMethodLength Avoid really long methods. 272395
CyclomaticComplexity The method 'getStepView(HttpServletRequest)' has a cyclomatic complexity of 29. 272395
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 272395
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 308310
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 311
AvoidDuplicateLiterals The String literal "action_" appears 4 times in this file; the first occurrence is on line 326 326
LinguisticNaming Linguistics Antipattern - The getter 'getFormStepModel' should not return void linguistically 448466
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 478
CyclomaticComplexity The method 'doReturnStep(HttpServletRequest)' has a cyclomatic complexity of 10. 479524
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 479524
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 482
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 519
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 536
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 537578
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 541
EmptyCatchBlock Avoid empty catch blocks 566569
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 590
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 591623
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 690
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 691728
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 742
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 743780
ConfusingTernary Avoid if (x != y) ..; else ..; 854868
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 944
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 9451000
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 953
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 960
ConfusingTernary Avoid if (x != y) ..; else ..; 990
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 1023
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 10241083
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 1098
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 10991135
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1130
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 1148
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 11491183
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 1196
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 11971232
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 1245
CyclomaticComplexity The method 'doSynchronousUploadDocument(HttpServletRequest)' has a cyclomatic complexity of 10. 12461334
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 12461334
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1265
ConfusingTernary Avoid if (x != y) ..; else ..; 13001330
ConfusingTernary Avoid if (x != y) ..; else ..; 13451352
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1403
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1404
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1405
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1406
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1420
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1421
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1422
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1423
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1437
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1438
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1439

fr/paris/lutece/plugins/forms/web/FormsDashboardComponent.java

Rule Violation Line
CommentRequired Header comments are required 67127
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 99
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 116
ShortVariable Avoid variables with short names like t 122

fr/paris/lutece/plugins/forms/web/ICompositeDisplay.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 153

fr/paris/lutece/plugins/forms/web/StepDisplayTree.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 97
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 99
ImmutableField Private field '_captchaSecurityService' could be made final; it is only initialized in the declaration or constructor. 100
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 270
ConfusingTernary Avoid if (x != y) ..; else ..; 298311
CyclomaticComplexity The method 'findTemplateFor(DisplayType)' has a cyclomatic complexity of 10. 331375
NPathComplexity The method 'findTemplateFor(DisplayType)' has an NPath complexity of 512 331375

fr/paris/lutece/plugins/forms/web/TermsOfServiceXPage.java

Rule Violation Line
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 191

fr/paris/lutece/plugins/forms/web/admin/AbstractFormQuestionJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34922
CyclomaticComplexity The class 'AbstractFormQuestionJspBean' has a total cyclomatic complexity of 111 (highest 21). 82922
CommentRequired Header comments are required 82922
TooManyMethods This class has too many methods, consider refactoring it. 83922
RedundantFieldInitializer Avoid using redundant field initializer for '_nIdParentSelected' 171
NPathComplexity The method 'processQuestionCreation(HttpServletRequest, String)' has an NPath complexity of 576 182260
CyclomaticComplexity The method 'processQuestionCreation(HttpServletRequest, String)' has a cyclomatic complexity of 12. 182260
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 185
CyclomaticComplexity The method 'processQuestionUpdate(HttpServletRequest)' has a cyclomatic complexity of 12. 269332
NPathComplexity The method 'processQuestionUpdate(HttpServletRequest)' has an NPath complexity of 288 269332
ConfusingTernary Avoid if (x != y) ..; else ..; 310319
CommentRequired Protected method constructor comments are required 334379
ConfusingTernary Avoid if (x != y) ..; else ..; 344
ConfusingTernary Avoid if (x != y) ..; else ..; 356375
CommentRequired Protected method constructor comments are required 381410
ConfusingTernary Avoid if (x != y) ..; else ..; 390
CommentRequired Protected method constructor comments are required 412437
CommentRequired Protected method constructor comments are required 439464
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 442
CommentRequired Protected method constructor comments are required 466517
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 469
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 492
CommentRequired Protected method constructor comments are required 519599
CyclomaticComplexity The method 'initModifyQuestionModel(HttpServletRequest)' has a cyclomatic complexity of 10. 519599
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'field' 549
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 557
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 583
ExcessiveMethodLength Avoid really long methods. 601714
CyclomaticComplexity The method 'initMoveCompositeModel(HttpServletRequest)' has a cyclomatic complexity of 21. 601714
NcssCount The method 'initMoveCompositeModel(HttpServletRequest)' has a NCSS line count of 62. 601714
CommentRequired Protected method constructor comments are required 601714
NPathComplexity The method 'initMoveCompositeModel(HttpServletRequest)' has an NPath complexity of 103680 601714
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 603
CommentRequired Protected method constructor comments are required 910
CommentRequired Protected method constructor comments are required 921

fr/paris/lutece/plugins/forms/web/admin/AbstractJspBean.java

Rule Violation Line
CommentRequired Protected method constructor comments are required 8995
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 233
CommentRequired Protected method constructor comments are required 247255
CommentRequired Protected method constructor comments are required 257263

fr/paris/lutece/plugins/forms/web/admin/FormCategoriesJspBean.java

Rule Violation Line
ImmutableField Private field '_uploadHandler' could be made final; it is only initialized in the declaration or constructor. 109

fr/paris/lutece/plugins/forms/web/admin/FormControlJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34828
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 326
ConfusingTernary Avoid if (x != y) ..; else ..; 329
ConfusingTernary Avoid if (x != y) ..; else ..; 330
ConfusingTernary Avoid if (x != y) ..; else ..; 342349
CommentRequired Public method and constructor comments are required 362394
ConfusingTernary Avoid if (x != y) ..; else ..; 383390
ConfusingTernary Avoid if (x != y) ..; else ..; 424431
CyclomaticComplexity The method 'buildControlModel(HttpServletRequest, Map)' has a cyclomatic complexity of 31. 444573
NPathComplexity The method 'buildControlModel(HttpServletRequest, Map)' has an NPath complexity of 645120 444573
NcssCount The method 'buildControlModel(HttpServletRequest, Map)' has a NCSS line count of 77. 444573
ExcessiveMethodLength Avoid really long methods. 444573
ConfusingTernary Avoid if (x != y) ..; else ..; 496503
ShortVariable Avoid variables with short names like q 520
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 558
UseEqualsToCompareStrings Use equals() to compare strings instead of '==' or '!=' 558
ConfusingTernary Avoid if (x != y) ..; else ..; 660674
ConfusingTernary Avoid if (x != y) ..; else ..; 728
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 767
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 768
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 769
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 771
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 772
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 773

fr/paris/lutece/plugins/forms/web/admin/FormExportJspBean.java

Rule Violation Line
CommentRequired Header comments are required 64439
CommentRequired Public method and constructor comments are required 107148
CommentRequired Public method and constructor comments are required 151185
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 152
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 153
LinguisticNaming Linguistics Antipattern - The variable 'isOrderExportDecrementing' indicates linguistically it is a boolean, but it is 'int' 167
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 180
CommentRequired Public method and constructor comments are required 188228
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 189
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 223
CommentRequired Public method and constructor comments are required 231263
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 241
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 259
CommentRequired Public method and constructor comments are required 266296
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 268
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 280
CommentRequired Public method and constructor comments are required 299334
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 301
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 312
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 330
CommentRequired Public method and constructor comments are required 337372
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 344
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 368
CommentRequired Public method and constructor comments are required 375410
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 382
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 406
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 418
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 428430
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 433

fr/paris/lutece/plugins/forms/web/admin/FormJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34889
ImmutableField Private field '_captchaSecurityService' could be made final; it is only initialized in the declaration or constructor. 212
ImmutableField Private field '_uploadHandler' could be made final; it is only initialized in the declaration or constructor. 213
ConfusingTernary Avoid if (x != y) ..; else ..; 293
ConfusingTernary Avoid if (x != y) ..; else ..; 294
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 546554
CommentRequired Public method and constructor comments are required 588617
CommentRequired Public method and constructor comments are required 848869
CommentRequired Public method and constructor comments are required 872888

fr/paris/lutece/plugins/forms/web/admin/FormMultiviewConfigJspBean.java

Rule Violation Line
CommentRequired Header comments are required 69250
CommentRequired Public method and constructor comments are required 110153
CommentRequired Public method and constructor comments are required 156190
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 186
CommentRequired Public method and constructor comments are required 193225
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 221
CommentRequired Public method and constructor comments are required 228249
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 230
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 240242
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 245

fr/paris/lutece/plugins/forms/web/admin/FormQuestionJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34790
TooManyMethods This class has too many methods, consider refactoring it. 96790
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 184
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 214
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 258
ConfusingTernary Avoid if (x != y) ..; else ..; 315322
ConfusingTernary Avoid if (x != y) ..; else ..; 352354
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 372
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 376
ControlStatementBraces This statement should have braces 393
ConfusingTernary Avoid if (x != y) ..; else ..; 423430
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 483
ConfusingTernary Avoid if (x != y) ..; else ..; 493500
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 504
CommentRequired Public method and constructor comments are required 505526
ShortVariable Avoid variables with short names like id 508
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 522
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 535
NPathComplexity The method 'getConfirmRemoveComposite(HttpServletRequest)' has an NPath complexity of 972 536595
CyclomaticComplexity The method 'getConfirmRemoveComposite(HttpServletRequest)' has a cyclomatic complexity of 15. 536595
ConfusingTernary Avoid if (x != y) ..; else ..; 569583
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 691
NPathComplexity The method 'doMoveComposite(HttpServletRequest)' has an NPath complexity of 864 716777
CyclomaticComplexity The method 'doMoveComposite(HttpServletRequest)' has a cyclomatic complexity of 12. 716777
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 748

fr/paris/lutece/plugins/forms/web/admin/FormResponseJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34755
CommentRequired Header comments are required 74755
TooManyMethods This class has too many methods, consider refactoring it. 75755
ImmutableField Private field '_controller' could be made final; it is only initialized in the declaration or constructor. 113
ImmutableField Private field '_formService' could be made final; it is only initialized in the declaration or constructor. 114
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 128
CyclomaticComplexity The method 'getStepView(HttpServletRequest)' has a cyclomatic complexity of 17. 129224
NPathComplexity The method 'getStepView(HttpServletRequest)' has an NPath complexity of 1216 129224
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 233
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 247
ConfusingTernary Avoid if (x != y) ..; else ..; 264
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 275
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 298
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 325
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 353
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 381
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 407
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 442
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 443457
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 466
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 467487
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 496
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 497529
ConfusingTernary Avoid if (x != y) ..; else ..; 514522
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 524
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 539
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 540
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 541
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 542
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 555
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 556
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 557
LinguisticNaming Linguistics Antipattern - The getter 'getFormStepModel' should not return void linguistically 652662
ConfusingTernary Avoid if (x != y) ..; else ..; 699713

fr/paris/lutece/plugins/forms/web/admin/FormStepJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34675
ConfusingTernary Avoid if (x != y) ..; else ..; 252
CyclomaticComplexity The method 'doCreateStep(HttpServletRequest)' has a cyclomatic complexity of 10. 290335
CyclomaticComplexity The method 'doModifyStep(HttpServletRequest)' has a cyclomatic complexity of 11. 524589
NPathComplexity The method 'doModifyStep(HttpServletRequest)' has an NPath complexity of 432 524589
CommentRequired Public method and constructor comments are required 606634
CommentRequired Public method and constructor comments are required 637657
CommentRequired Public method and constructor comments are required 660674

fr/paris/lutece/plugins/forms/web/admin/FormTransitionJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34629
TooManyMethods This class has too many methods, consider refactoring it. 75629
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 138
ConfusingTernary Avoid if (x != y) ..; else ..; 208
ConfusingTernary Avoid if (x != y) ..; else ..; 212219
ConfusingTernary Avoid if (x != y) ..; else ..; 248255
ConfusingTernary Avoid if (x != y) ..; else ..; 456470

fr/paris/lutece/plugins/forms/web/admin/FormWorkflowConfigJspBean.java

Rule Violation Line
CommentRequired Header comments are required 60148
CommentRequired Public method and constructor comments are required 85111
CommentRequired Public method and constructor comments are required 114147
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 143

fr/paris/lutece/plugins/forms/web/admin/ModifyEntryJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34686
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 157
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 178
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 199
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 276
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 307
CyclomaticComplexity The method 'doModifyField(HttpServletRequest)' has a cyclomatic complexity of 11. 327390
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 329
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 331
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 333
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 334
ConfusingTernary Avoid if (x != y) ..; else ..; 353387
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 374
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 399
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 434
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 435
CyclomaticComplexity The method 'doMoveField(HttpServletRequest, boolean)' has a cyclomatic complexity of 10. 504549
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 506
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 507
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 508
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 509
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 565
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 566
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 567

fr/paris/lutece/plugins/forms/web/admin/MultiviewFormResponseDetailsJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34685
TooManyMethods This class has too many methods, consider refactoring it. 103685
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 154
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 231
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 268
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 326
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 412
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 445
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 461
ConfusingTernary Avoid if (x != y) ..; else ..; 472482
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 501
ConfusingTernary Avoid if (x != y) ..; else ..; 513
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 548
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 551
ConfusingTernary Avoid if (x != y) ..; else ..; 637651
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 640

fr/paris/lutece/plugins/forms/web/admin/MultiviewFormWorkflowRedirectionEnum.java

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

fr/paris/lutece/plugins/forms/web/admin/MultiviewFormsJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34687
TooManyMethods This class has too many methods, consider refactoring it. 107687
ImmutableField Private field '_uploadHandler' could be made final; it is only initialized in the declaration or constructor. 161
CyclomaticComplexity The method 'getMultiviewFormsView(HttpServletRequest)' has a cyclomatic complexity of 10. 171250
NPathComplexity The method 'getMultiviewFormsView(HttpServletRequest)' has an NPath complexity of 216 171250
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 311
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 354
EmptyCatchBlock Avoid empty catch blocks 437440
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 514
ConfusingTernary Avoid if (x != y) ..; else ..; 612619
ConfusingTernary Avoid if (x != y) ..; else ..; 633637

fr/paris/lutece/plugins/forms/web/breadcrumb/HorizontalBreadcrumb.java

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

fr/paris/lutece/plugins/forms/web/breadcrumb/VerticalBreadcrumb.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 97
UnusedPrivateMethod Avoid unused private methods such as 'getCurrentStepIndex(List,int)'. 120

fr/paris/lutece/plugins/forms/web/entrytype/EntryTypeCommentDisplayService.java

Rule Violation Line
CommentRequired Header comments are required 4979
CommentRequired Public method and constructor comments are required 5558
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 68

fr/paris/lutece/plugins/forms/web/entrytype/EntryTypeDateDisplayService.java

Rule Violation Line
ImmutableField Private field '_strEntryServiceName' could be made final; it is only initialized in the declaration or constructor. 62
LinguisticNaming Linguistics Antipattern - The setter 'setModel' should not return any type except void linguistically 8692

fr/paris/lutece/plugins/forms/web/entrytype/EntryTypeDefaultDataService.java

Rule Violation Line
ImmutableField Private field '_strEntryServiceName' could be made final; it is only initialized in the declaration or constructor. 66

fr/paris/lutece/plugins/forms/web/entrytype/EntryTypeDefaultDisplayService.java

Rule Violation Line
ImmutableField Private field '_strEntryServiceName' could be made final; it is only initialized in the declaration or constructor. 57
LinguisticNaming Linguistics Antipattern - The setter 'setModel' should not return any type except void linguistically 7984

fr/paris/lutece/plugins/forms/web/entrytype/EntryTypeFileDisplayService.java

Rule Violation Line
ImmutableField Private field '_strEntryServiceName' could be made final; it is only initialized in the declaration or constructor. 71
LinguisticNaming Linguistics Antipattern - The setter 'setModel' should not return any type except void linguistically 95101

fr/paris/lutece/plugins/forms/web/entrytype/EntryTypeGeolocDisplayService.java

Rule Violation Line
ImmutableField Private field '_strEntryServiceName' could be made final; it is only initialized in the declaration or constructor. 57
LinguisticNaming Linguistics Antipattern - The setter 'setModel' should not return any type except void linguistically 7984

fr/paris/lutece/plugins/forms/web/entrytype/EntryTypeMyLuteceUserAttributeDisplayService.java

Rule Violation Line
ImmutableField Private field '_strEntryServiceName' could be made final; it is only initialized in the declaration or constructor. 61
LinguisticNaming Linguistics Antipattern - The setter 'setModel' should not return any type except void linguistically 8798
EmptyCatchBlock Avoid empty catch blocks 117120

fr/paris/lutece/plugins/forms/web/entrytype/EntryTypeTelephoneDisplayService.java

Rule Violation Line
ImmutableField Private field '_strEntryServiceName' could be made final; it is only initialized in the declaration or constructor. 58
LinguisticNaming Linguistics Antipattern - The setter 'setModel' should not return any type except void linguistically 8288

fr/paris/lutece/plugins/forms/web/exception/CodeAlreadyExistsException.java

Rule Violation Line
CallSuperInConstructor It is a good practice to call super() in a constructor 4447
CommentRequired Public method and constructor comments are required 4447

fr/paris/lutece/plugins/forms/web/file/FormsDownloadFile.java

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

fr/paris/lutece/plugins/forms/web/form/FormDisplayFactory.java

Rule Violation Line
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 191195
ConfusingTernary Avoid if (x != y) ..; else ..; 278297
ConfusingTernary Avoid if (x != y) ..; else ..; 284296

fr/paris/lutece/plugins/forms/web/form/column/display/impl/FormColumnDisplayEntry.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 79
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 96
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 100
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 140
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 153

fr/paris/lutece/plugins/forms/web/form/column/display/impl/FormColumnDisplayEntryCartography.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 73
UnusedLocalVariable Avoid unused local variables such as 'strEntryGeoJSON'. 92
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 104
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'objEntryGeoJSON' 139

fr/paris/lutece/plugins/forms/web/form/column/display/impl/FormColumnDisplayEntryGeolocation.java

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

fr/paris/lutece/plugins/forms/web/form/column/display/impl/FormColumnDisplayFormResponseDateCreation.java

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

fr/paris/lutece/plugins/forms/web/form/column/display/impl/FormColumnDisplayFormResponseDateUpdate.java

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

fr/paris/lutece/plugins/forms/web/form/column/display/impl/FormColumnDisplayForms.java

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

fr/paris/lutece/plugins/forms/web/form/column/display/impl/FormColumnDisplayWorkflowState.java

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

fr/paris/lutece/plugins/forms/web/form/filter/display/impl/AbstractFormFilterDisplay.java

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

fr/paris/lutece/plugins/forms/web/form/filter/display/impl/FormFilterDisplayEntry.java

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

fr/paris/lutece/plugins/forms/web/form/filter/display/impl/FormFilterDisplayFormResponseDate.java

Rule Violation Line
ShortVariable Avoid variables with short names like TO 58
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 97
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 122
ShortVariable Avoid variables with short names like m 175
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 185

fr/paris/lutece/plugins/forms/web/form/filter/display/impl/FormFilterDisplayForms.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 99
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 112
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 138
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 140
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 149
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 152

fr/paris/lutece/plugins/forms/web/form/filter/display/impl/FormFilterDisplaySearchedText.java

Rule Violation Line
ImmutableField Private field '_formSearchEngine' could be made final; it is only initialized in the declaration or constructor. 69
CommentRequired Public method and constructor comments are required 7174
CallSuperInConstructor It is a good practice to call super() in a constructor 7174
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 100
UselessStringValueOf No need to call String.valueOf to append to a string. 110
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 129

fr/paris/lutece/plugins/forms/web/form/filter/display/impl/FormFilterDisplayWorkflowState.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 92
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 101
ConfusingTernary Avoid if (x != y) ..; else ..; 128144
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 139

fr/paris/lutece/plugins/forms/web/form/multiview/util/FormListTemplateBuilder.java

Rule Violation Line
GodClass Possible God Class (WMC=53, ATFD=42, TCC=0.735%) 69522
TooManyMethods This class has too many methods, consider refactoring it. 70522
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 132
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 231
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 235
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 236
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 241
UnusedFormalParameter Avoid unused method parameters such as 'strRedirectionDetailsBaseUrl'. 264
UnusedFormalParameter Avoid unused method parameters such as 'formColumnlineTemplate'. 264
ConfusingTernary Avoid if (x != y) ..; else ..; 270277
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 282

fr/paris/lutece/plugins/forms/web/form/panel/display/impl/AbstractFormPanelDisplay.java

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

fr/paris/lutece/plugins/forms/web/form/panel/display/initializer/impl/FormPanelFormResponseIdFilterDisplayInitialiser.java

Rule Violation Line
CommentRequired Header comments are required 4355
CommentRequired Protected method constructor comments are required 54

fr/paris/lutece/plugins/forms/web/http/IterationHttpServletRequestWrapper.java

Rule Violation Line
ImmutableField Private field '_strIterationParameterName' could be made final; it is only initialized in the declaration or constructor. 52
MissingOverride The method 'getParameterValues(String)' is missing an @Override annotation. 7275
MethodReturnsInternalArray Returning '_strIterationParameterName' may expose an internal array. 74
MissingOverride The method 'getParameter(String)' is missing an @Override annotation. 8083

fr/paris/lutece/plugins/forms/web/http/SynchronousHttpServletRequestWrapper.java

Rule Violation Line
CommentRequired Header comments are required 4398
RedundantFieldInitializer Avoid using redundant field initializer for '_allParameters' 46

fr/paris/lutece/plugins/forms/web/portlet/FormsListPortletJspBean.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 118

fr/paris/lutece/plugins/forms/web/search/ManageFormsSearchIndexationBean.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 52130
ConfusingTernary Avoid if (x != y) ..; else ..; 98107
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 121

Priority 4

fr/paris/lutece/plugins/forms/business/Form.java

Rule Violation Line
ShortClassName Avoid short class names like Form 55813

fr/paris/lutece/plugins/forms/business/FormMessage.java

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

fr/paris/lutece/plugins/forms/business/IFormQuestionResponseDAO.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.plugin.Plugin' due to existing import 'fr.paris.lutece.portal.service.plugin.Plugin' 196

fr/paris/lutece/plugins/forms/business/Step.java

Rule Violation Line
ShortClassName Avoid short class names like Step 43184

fr/paris/lutece/plugins/forms/business/form/lock/Lock.java

Rule Violation Line
ShortClassName Avoid short class names like Lock 39164

fr/paris/lutece/plugins/forms/business/form/lock/LockDAO.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.forms.service.lock.LockResult' 36

fr/paris/lutece/plugins/forms/export/pdf/AbstractPdfFileGenerator.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'fr.paris.lutece.portal.business.file.File' due to existing import 'fr.paris.lutece.portal.business.file.File' 385

fr/paris/lutece/plugins/forms/export/pdf/PdfFileGenerator.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'java.io.OutputStream' 38
UnusedImports Avoid unused imports such as 'java.nio.file.Files' 39

fr/paris/lutece/plugins/forms/service/entrytype/EntryTypeCartography.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeGeolocation' 41

fr/paris/lutece/plugins/forms/service/entrytype/EntryTypeComment.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.file.FileService' 41
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.file.IFileStoreServiceProvider' 42

fr/paris/lutece/plugins/forms/service/provider/GenericFormsProvider.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'fr.paris.lutece.plugins.genericattributes.business.Response' due to existing import 'fr.paris.lutece.plugins.genericattributes.business.Response' 141

fr/paris/lutece/plugins/forms/util/FormsResponseUtils.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.genericattributes.service.entrytype.EntryTypeServiceManager' 78

fr/paris/lutece/plugins/forms/validation/AbstractListQuestionValidator.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.i18n.I18nService' 47

fr/paris/lutece/plugins/forms/validation/ListExactResponseValidator.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.i18n.I18nService' 43

fr/paris/lutece/plugins/forms/validation/ListMinResponseValidator.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.i18n.I18nService' 43

fr/paris/lutece/plugins/forms/web/FormResponseManager.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'java.time.LocalDateTime' 37

fr/paris/lutece/plugins/forms/web/FormXPage.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.genericattributes.business.ResponseHome' 44
UnusedImports Avoid unused imports such as 'org.apache.james.mime4j.dom.datetime.DateTime' 90

fr/paris/lutece/plugins/forms/web/StepDisplayTree.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.api.user.User' 46
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.admin.AdminUserService' 61

fr/paris/lutece/plugins/forms/web/admin/AbstractFormQuestionJspBean.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.image.ImageResourceManager' 77

fr/paris/lutece/plugins/forms/web/admin/MultiviewFormResponseDetailsJspBean.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.business.user.AdminUser' 80
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.admin.AdminUserService' 83

fr/paris/lutece/plugins/forms/web/admin/MultiviewFormsJspBean.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'FormsConstants.PARAMETER_ID_FORM' due to existing static import 'fr.paris.lutece.plugins.forms.util.FormsConstants.PARAMETER_ID_FORM' 435
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'FormsConstants.PARAMETER_ID_FORM' due to existing static import 'fr.paris.lutece.plugins.forms.util.FormsConstants.PARAMETER_ID_FORM' 493
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'FormsConstants.PARAMETER_ID_FORM' due to existing static import 'fr.paris.lutece.plugins.forms.util.FormsConstants.PARAMETER_ID_FORM' 652

fr/paris/lutece/plugins/forms/web/breadcrumb/VerticalBreadcrumb.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.forms.business.StepHome' 43

fr/paris/lutece/plugins/forms/web/entrytype/EntryTypeFileDisplayService.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.business.file.FileHome' 56
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.business.physicalfile.PhysicalFileHome' 58

fr/paris/lutece/plugins/forms/web/form/column/display/impl/FormColumnDisplayEntryCartography.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'java.util.Arrays' 36
UnusedImports Avoid unused imports such as 'java.util.List' 38

Files

fr/paris/lutece/plugins/forms/business/CompositeDisplayType.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_strLabel' doesn't match '[a-z][a-zA-Z0-9]*' 1 45

fr/paris/lutece/plugins/forms/business/ConditionControl.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3678
UncommentedEmptyConstructor Document empty constructor 3 4445
CommentRequired Public method and constructor comments are required 3 4445
CommentRequired Public method and constructor comments are required 3 4752
CommentRequired Public method and constructor comments are required 3 5456
CommentRequired Public method and constructor comments are required 3 5860
CommentRequired Public method and constructor comments are required 3 6264
CommentRequired Public method and constructor comments are required 3 6668

fr/paris/lutece/plugins/forms/business/Control.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 187189
CommentRequired Public method and constructor comments are required 3 191193
CloneThrowsCloneNotSupportedException clone() method should throw CloneNotSupportedException 3 201224
ProperCloneImplementation Object clone() should be implemented with super.clone() 2 201

fr/paris/lutece/plugins/forms/business/ControlDAO.java

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

fr/paris/lutece/plugins/forms/business/ControlGroupDAO.java

Rule Violation Priority Line
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 100
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 155
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 223225
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 245

fr/paris/lutece/plugins/forms/business/ControlHome.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 8085

fr/paris/lutece/plugins/forms/business/ControlMapping.java

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

fr/paris/lutece/plugins/forms/business/ControlType.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_strLabel' doesn't match '[a-z][a-zA-Z0-9]*' 1 46

fr/paris/lutece/plugins/forms/business/Form.java

Rule Violation Priority Line
ExcessivePublicCount This class has a bunch of public methods and attributes 3 34813
ShortClassName Avoid short class names like Form 4 55813
GodClass Possible God Class (WMC=79, ATFD=10, TCC=1.798%) 3 55813
TooManyFields Too many fields 3 55813
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the Form constructor if you want a default access modifier 3 149178
SimplifyBooleanReturns Avoid unnecessary if..then..else statements when returning booleans 3 808810

fr/paris/lutece/plugins/forms/business/FormDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 55393
ConfusingTernary Avoid if (x != y) ..; else ..; 3 98105
ConfusingTernary Avoid if (x != y) ..; else ..; 3 182189
AvoidReassigningParameters Avoid reassigning parameters such as 'strSqlQuery' 2 243

fr/paris/lutece/plugins/forms/business/FormDisplayDAO.java

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

fr/paris/lutece/plugins/forms/business/FormMessage.java

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

fr/paris/lutece/plugins/forms/business/FormQuestionResponseDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 55724
FieldNamingConventions The constant name '_formQuestionEntryResponseDAO' doesn't match '[A-Z][A-Z_0-9]*' 1 73
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 428431

fr/paris/lutece/plugins/forms/business/FormQuestionResponseHome.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 47300
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 143147

fr/paris/lutece/plugins/forms/business/FormResponseDAO.java

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

fr/paris/lutece/plugins/forms/business/FormResponseHome.java

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

fr/paris/lutece/plugins/forms/business/FormResponseStepHome.java

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

fr/paris/lutece/plugins/forms/business/GroupDAO.java

Rule Violation Priority Line
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 222
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 223

fr/paris/lutece/plugins/forms/business/IControlDAO.java

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

fr/paris/lutece/plugins/forms/business/IControlGroupDAO.java

Rule Violation Priority Line
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 1 106

fr/paris/lutece/plugins/forms/business/IFormCategoryDAO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4068

fr/paris/lutece/plugins/forms/business/IFormQuestionResponseDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 44197
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.plugin.Plugin' due to existing import 'fr.paris.lutece.portal.service.plugin.Plugin' 4 196

fr/paris/lutece/plugins/forms/business/IFormResponseDAO.java

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

fr/paris/lutece/plugins/forms/business/IQuestionDAO.java

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

fr/paris/lutece/plugins/forms/business/IStepDAO.java

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

fr/paris/lutece/plugins/forms/business/ITransitionDAO.java

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

fr/paris/lutece/plugins/forms/business/LogicalOperator.java

Rule Violation Priority Line
CommentRequired Enum comments are required 3 3651
FieldNamingConventions The final field name '_strLabel' doesn't match '[a-z][a-zA-Z0-9]*' 1 41
CommentRequired Public method and constructor comments are required 3 4749

fr/paris/lutece/plugins/forms/business/MultiviewConfig.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 39173
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 39173
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _bDisplayFormsTitleColumn field if you want a default access modifier 3 43
DefaultPackage Use explicit scoping instead of the default package private level 3 43
DefaultPackage Use explicit scoping instead of the default package private level 3 44
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _bDisplayFormsAssigneeColumn field if you want a default access modifier 3 44
DefaultPackage Use explicit scoping instead of the default package private level 3 45
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _strCsvSeparator field if you want a default access modifier 3 45
DefaultPackage Use explicit scoping instead of the default package private level 3 46
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _intNumberOfFormResponsesPerPdf field if you want a default access modifier 3 46
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _nIdFileTemplatePdf field if you want a default access modifier 3 47
DefaultPackage Use explicit scoping instead of the default package private level 3 47
ConfusingTernary Avoid if (x != y) ..; else ..; 3 66
NonThreadSafeSingleton Singleton is not thread safe 3 7679
CommentRequired Public method and constructor comments are required 3 138141
CommentRequired Public method and constructor comments are required 3 143146
CommentRequired Public method and constructor comments are required 3 148150
CommentRequired Public method and constructor comments are required 3 152154

fr/paris/lutece/plugins/forms/business/Question.java

Rule Violation Priority Line
TooManyFields Too many fields 3 48532
ProperCloneImplementation Object clone() should be implemented with super.clone() 2 331
CommentRequired Public method and constructor comments are required 3 507509
CommentRequired Public method and constructor comments are required 3 511513
ShortVariable Avoid variables with short names like o 3 516

fr/paris/lutece/plugins/forms/business/QuestionDAO.java

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

fr/paris/lutece/plugins/forms/business/Step.java

Rule Violation Priority Line
ShortClassName Avoid short class names like Step 4 43184

fr/paris/lutece/plugins/forms/business/StepDAO.java

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

fr/paris/lutece/plugins/forms/business/TransitionDAO.java

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

fr/paris/lutece/plugins/forms/business/action/GlobalFormsActionIdService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4792
ShortVariable Avoid variables with short names like rt 3 56
ShortVariable Avoid variables with short names like p 3 62
ConfusingTernary Avoid if (x != y) ..; else ..; 3 89

fr/paris/lutece/plugins/forms/business/export/FormExportConfig.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 36129

fr/paris/lutece/plugins/forms/business/export/FormExportConfigDao.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 43144

fr/paris/lutece/plugins/forms/business/export/FormExportConfigHome.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 42108
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 42108

fr/paris/lutece/plugins/forms/business/export/IFormExportConfigDao.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4091

fr/paris/lutece/plugins/forms/business/form/FormItemSortConfig.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_nColumnToSortPosition' doesn't match '[a-z][a-zA-Z0-9]*' 1 42
FieldNamingConventions The final field name '_strSortAttributeName' doesn't match '[a-z][a-zA-Z0-9]*' 1 43
FieldNamingConventions The final field name '_bAscSort' doesn't match '[a-z][a-zA-Z0-9]*' 1 44

fr/paris/lutece/plugins/forms/business/form/FormParameters.java

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

fr/paris/lutece/plugins/forms/business/form/FormResponseItem.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_listFormColumnCell' doesn't match '[a-z][a-zA-Z0-9]*' 1 48

fr/paris/lutece/plugins/forms/business/form/LuceneQueryBuilder.java

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

fr/paris/lutece/plugins/forms/business/form/column/FormColumnCell.java

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

fr/paris/lutece/plugins/forms/business/form/column/FormColumnCellComparator.java

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

fr/paris/lutece/plugins/forms/business/form/column/FormColumnComparator.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3953

fr/paris/lutece/plugins/forms/business/form/column/impl/FormColumnEntry.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 103106

fr/paris/lutece/plugins/forms/business/form/column/querypart/impl/AbstractFormColumnQueryPart.java

Rule Violation Priority Line
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 58
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 84
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 107

fr/paris/lutece/plugins/forms/business/form/column/querypart/impl/FormColumnEntryCartographyQueryPart.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 63
TooFewBranchesForASwitchStatement A switch with less than three branches is inefficient, use a if statement instead. 3 7683

fr/paris/lutece/plugins/forms/business/form/column/querypart/impl/FormColumnEntryGeolocationQueryPart.java

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

fr/paris/lutece/plugins/forms/business/form/column/querypart/impl/FormColumnEntryQueryPart.java

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

fr/paris/lutece/plugins/forms/business/form/column/querypart/impl/FormColumnFormResponseDateCreationQueryPart.java

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

fr/paris/lutece/plugins/forms/business/form/column/querypart/impl/FormColumnFormResponseDateUpdateQueryPart.java

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

fr/paris/lutece/plugins/forms/business/form/column/querypart/impl/FormColumnFormsQueryPart.java

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

fr/paris/lutece/plugins/forms/business/form/column/querypart/impl/FormColumnWorkflowStateQueryPart.java

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

fr/paris/lutece/plugins/forms/business/form/filter/FormFilter.java

Rule Violation Priority Line
DataClass The class 'FormFilter' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=4) 3 4279

fr/paris/lutece/plugins/forms/business/form/filter/FormFilterForms.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 4662
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 49

fr/paris/lutece/plugins/forms/business/form/filter/configuration/AbstractFormFilterConfiguration.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_nPosition' doesn't match '[a-z][a-zA-Z0-9]*' 1 48
FieldNamingConventions The final field name '_strFormFilterLabel' doesn't match '[a-z][a-zA-Z0-9]*' 1 49
FieldNamingConventions The final field name '_strFormFilterName' doesn't match '[a-z][a-zA-Z0-9]*' 1 50
MissingOverride The method 'getPosition()' is missing an @Override annotation. 3 7275

fr/paris/lutece/plugins/forms/business/form/filter/configuration/FormFilterDateConfiguration.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 4750

fr/paris/lutece/plugins/forms/business/form/filter/configuration/FormFilterEntryConfiguration.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_formColumn' doesn't match '[a-z][a-zA-Z0-9]*' 1 48
CommentRequired Public method and constructor comments are required 3 5054

fr/paris/lutece/plugins/forms/business/form/filter/configuration/FormFilterFormResponseIdConfiguration.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4568
CommentRequired Public method and constructor comments are required 3 4851

fr/paris/lutece/plugins/forms/business/form/filter/configuration/FormFilterFormsConfiguration.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 4851

fr/paris/lutece/plugins/forms/business/form/filter/configuration/FormFilterWorkflowConfiguration.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 4851

fr/paris/lutece/plugins/forms/business/form/filter/querypart/impl/AbstractFormFilterLuceneQueryPart.java

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

fr/paris/lutece/plugins/forms/business/form/filter/querypart/impl/FormFilterEntryLuceneQueryPart.java

Rule Violation Priority Line
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _formSearchEngine field if you want a default access modifier 3 69
DefaultPackage Use explicit scoping instead of the default package private level 3 69
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 74
ConfusingTernary Avoid if (x != y) ..; else ..; 3 126133

fr/paris/lutece/plugins/forms/business/form/filter/querypart/impl/FormFilterFormResponseDateLuceneQueryPart.java

Rule Violation Priority Line
ConfusingTernary Avoid if (x != y) ..; else ..; 3 5690
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 69

fr/paris/lutece/plugins/forms/business/form/filter/querypart/impl/FormFilterFormsLuceneQueryPart.java

Rule Violation Priority Line
ConfusingTernary Avoid if (x != y) ..; else ..; 3 5774
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 61

fr/paris/lutece/plugins/forms/business/form/filter/querypart/impl/FormFilterIdFormResponseLuceneQueryPart.java

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

fr/paris/lutece/plugins/forms/business/form/list/FormListFacade.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_formListDAO' doesn't match '[a-z][a-zA-Z0-9]*' 1 55

fr/paris/lutece/plugins/forms/business/form/lock/ILockDAO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3871
UnnecessaryModifier Unnecessary modifier 'public' on method 'acquire': the method is declared in an interface type 3 47
UnnecessaryModifier Unnecessary modifier 'public' on method 'release': the method is declared in an interface type 3 55
UnnecessaryModifier Unnecessary modifier 'public' on method 'refresh': the method is declared in an interface type 3 63
UnnecessaryModifier Unnecessary modifier 'public' on method 'closeAll': the method is declared in an interface type 3 69

fr/paris/lutece/plugins/forms/business/form/lock/Lock.java

Rule Violation Priority Line
ShortClassName Avoid short class names like Lock 4 39164
CommentRequired Header comments are required 3 39164
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 39164
DataClass The class 'Lock' is suspected to be a Data Class (WOC=8.333%, NOPA=0, NOAM=11, WMC=12) 3 39164

fr/paris/lutece/plugins/forms/business/form/lock/LockDAO.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.forms.service.lock.LockResult' 4 36
CommentRequired Header comments are required 3 45129

fr/paris/lutece/plugins/forms/business/form/panel/FormPanelFactory.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_listFormPanelConfiguration' doesn't match '[a-z][a-zA-Z0-9]*' 1 50

fr/paris/lutece/plugins/forms/business/form/panel/configuration/FormPanelConfiguration.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_nPosition' doesn't match '[a-z][a-zA-Z0-9]*' 1 48
FieldNamingConventions The final field name '_strTechnicalCode' doesn't match '[a-z][a-zA-Z0-9]*' 1 49
FieldNamingConventions The final field name '_strTitle' doesn't match '[a-z][a-zA-Z0-9]*' 1 50
FieldNamingConventions The final field name '_listFormPanelInitializerName' doesn't match '[a-z][a-zA-Z0-9]*' 1 51

fr/paris/lutece/plugins/forms/business/form/panel/configuration/IFormPanelConfiguration.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'RESOURCE_TYPE': the field is declared in an interface type 3 48

fr/paris/lutece/plugins/forms/business/form/panel/initializer/querypart/FormPanelInitializerQueryBuilder.java

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

fr/paris/lutece/plugins/forms/business/form/panel/initializer/querypart/impl/FormPanelFormResponseIdFilterInitializerQueryPart.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4458

fr/paris/lutece/plugins/forms/business/form/search/FormResponseSearchItem.java

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

fr/paris/lutece/plugins/forms/business/form/search/IIndexerActionDAO.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'selectList': the method is declared in an interface type 3 121

fr/paris/lutece/plugins/forms/business/form/search/IndexerActionDAO.java

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

fr/paris/lutece/plugins/forms/business/portlet/FormsListPortlet.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 51179
CallSuperInConstructor It is a good practice to call super() in a constructor 3 6871
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 85

fr/paris/lutece/plugins/forms/business/portlet/FormsListPortletDAO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 44120

fr/paris/lutece/plugins/forms/business/portlet/FormsListPortletHome.java

Rule Violation Priority Line
RedundantFieldInitializer Avoid using redundant field initializer for '_instance' 3 47
NonThreadSafeSingleton Singleton is not thread safe 3 5659
MissingOverride The method 'getPortletTypeId()' is missing an @Override annotation. 3 6973
MissingOverride The method 'getDAO()' is missing an @Override annotation. 3 8083

fr/paris/lutece/plugins/forms/business/portlet/IFormsListPortletDAO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3841

fr/paris/lutece/plugins/forms/dashboard/PublicDashboardForms.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 49123
ImmutableField Private field 'strIdComponent' could be made final; it is only initialized in the declaration or constructor. 3 54
FieldNamingConventions The field name 'strIdComponent' doesn't match '_[a-z][a-zA-Z0-9]*' 1 54
FormalParameterNamingConventions The method parameter name 'user_id' doesn't match '[a-z][a-zA-Z0-9]*' 1 75
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 77
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 77
FormalParameterNamingConventions The method parameter name 'published_questions_only' doesn't match '[a-z][a-zA-Z0-9]*' 1 89
FormalParameterNamingConventions The method parameter name 'published_formresponse_only' doesn't match '[a-z][a-zA-Z0-9]*' 1 89
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 117

fr/paris/lutece/plugins/forms/exception/LockException.java

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 313
CommentRequired Header comments are required 3 313
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 811

fr/paris/lutece/plugins/forms/exception/MaxFormResponseException.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3674

fr/paris/lutece/plugins/forms/export/AbstractFileGenerator.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 57122
FieldNamingConventions The final field name '_formPanel' doesn't match '[a-z][a-zA-Z0-9]*' 1 67
FieldNamingConventions The final field name '_listFormColumn' doesn't match '[a-z][a-zA-Z0-9]*' 1 68
FieldNamingConventions The final field name '_listFormFilter' doesn't match '[a-z][a-zA-Z0-9]*' 1 69
FieldNamingConventions The final field name '_sortConfig' doesn't match '[a-z][a-zA-Z0-9]*' 1 70
FieldNamingConventions The final field name '_fileName' doesn't match '[a-z][a-zA-Z0-9]*' 1 71
FieldNamingConventions The final field name '_fileDescription' doesn't match '[a-z][a-zA-Z0-9]*' 1 72
RedundantFieldInitializer Avoid using redundant field initializer for '_configList' 3 74
CommentRequired Protected method constructor comments are required 3 99113
CommentRequired Protected method constructor comments are required 3 115120
ConfusingTernary Avoid if (x != y) ..; else ..; 3 117
ConfusingTernary Avoid if (x != y) ..; else ..; 3 118

fr/paris/lutece/plugins/forms/export/ExportServiceManager.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_listFormatExport' doesn't match '[a-z][a-zA-Z0-9]*' 1 66
CommentRequired Public method and constructor comments are required 3 132152
CommentRequired Public method and constructor comments are required 3 154178
CommentRequired Public method and constructor comments are required 3 180213

fr/paris/lutece/plugins/forms/export/csv/CSVDataLine.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'RESPONSE_SEPARATOR'. 3 63
FieldNamingConventions The final field name '_mapDataToExport' doesn't match '[a-z][a-zA-Z0-9]*' 1 67
FieldNamingConventions The final field name '_commonDataToExport' doesn't match '[a-z][a-zA-Z0-9]*' 1 68
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 84
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 85
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 86
CommentRequired Public method and constructor comments are required 3 93118
ConfusingTernary Avoid if (x != y) ..; else ..; 3 97
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 110113
ConfusingTernary Avoid if (x != y) ..; else ..; 3 127

fr/paris/lutece/plugins/forms/export/csv/CSVExport.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_strFormatExportName' doesn't match '[a-z][a-zA-Z0-9]*' 1 54
FieldNamingConventions The final field name '_strFormatExportDisplayName' doesn't match '[a-z][a-zA-Z0-9]*' 1 55
FieldNamingConventions The final field name '_strFormatExportDescription' doesn't match '[a-z][a-zA-Z0-9]*' 1 56

fr/paris/lutece/plugins/forms/export/csv/CSVFileGenerator.java

Rule Violation Priority Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 133

fr/paris/lutece/plugins/forms/export/csv/CSVHeader.java

Rule Violation Priority Line
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _mapQuestionAndIterationColumn field if you want a default access modifier 3 52
DefaultPackage Use explicit scoping instead of the default package private level 3 52
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 52
FieldNamingConventions The final field name '_listQuestionColumns' doesn't match '[a-z][a-zA-Z0-9]*' 1 53
SingularField Perhaps '_numberOfQuestionColumns' could be replaced by a local variable. 3 54
ImmutableField Private field '_numberOfQuestionColumns' could be made final; it is only initialized in the declaration or constructor. 3 54
UnusedPrivateField Avoid unused private fields such as '_numberOfQuestionColumns'. 3 54
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 118133

fr/paris/lutece/plugins/forms/export/csv/CSVUtil.java

Rule Violation Priority Line
DefaultPackage Use explicit scoping instead of the default package private level 3 103109
AvoidReassigningParameters Avoid reassigning parameters such as 'strValue' 2 103
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the safeString method if you want a default access modifier 3 103109

fr/paris/lutece/plugins/forms/export/csv/FormResponseCsvExport.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_csvHeader' doesn't match '[a-z][a-zA-Z0-9]*' 1 61
ImmutableField Private field '_csvSeparator' could be made final; it is only initialized in the declaration or constructor. 3 62
CommentRequired Public method and constructor comments are required 3 6467
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 76
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 77
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 78
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 79
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 80
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 81
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 82
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 8590
CommentRequired Public method and constructor comments are required 3 99111
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 122
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 152
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 185

fr/paris/lutece/plugins/forms/export/pdf/AbstractPdfFileGenerator.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34439
CommentRequired Header comments are required 3 95439
GodClass Possible God Class (WMC=51, ATFD=47, TCC=1.515%) 3 95439
FieldNamingConventions The final field name '_formTitle' doesn't match '[a-z][a-zA-Z0-9]*' 1 109
CommentRequired Protected method constructor comments are required 3 111115
CommentRequired Protected method constructor comments are required 3 117125
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 117
CommentRequired Protected method constructor comments are required 3 127138
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 127
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 272281
NPathComplexity The method 'getResponseValue(FormQuestionResponse, int)' has an NPath complexity of 2166 3 343419
CyclomaticComplexity The method 'getResponseValue(FormQuestionResponse, int)' has a cyclomatic complexity of 19. 3 343419
CollapsibleIfStatements These nested if statements could be combined 3 382398
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'fr.paris.lutece.portal.business.file.File' due to existing import 'fr.paris.lutece.portal.business.file.File' 4 385
ConfusingTernary Avoid if (x != y) ..; else ..; 3 409
CommentRequired Protected method constructor comments are required 3 421437

fr/paris/lutece/plugins/forms/export/pdf/FormResponsePdfExport.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34251
CommentRequired Header comments are required 3 73251
CommentRequired Public method and constructor comments are required 3 78104
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 191
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 191195
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 194

fr/paris/lutece/plugins/forms/export/pdf/PDFExport.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_strFormatExportName' doesn't match '[a-z][a-zA-Z0-9]*' 1 54
FieldNamingConventions The final field name '_strFormatExportDisplayName' doesn't match '[a-z][a-zA-Z0-9]*' 1 55
FieldNamingConventions The final field name '_strFormatExportDescription' doesn't match '[a-z][a-zA-Z0-9]*' 1 56

fr/paris/lutece/plugins/forms/export/pdf/PdfCell.java

Rule Violation Priority Line
DataClass The class 'PdfCell' is suspected to be a Data Class (WOC=7.692%, NOPA=0, NOAM=12, WMC=13) 3 38127
CommentRequired Header comments are required 3 38127
CommentRequired Public method and constructor comments are required 3 123126

fr/paris/lutece/plugins/forms/export/pdf/PdfFileGenerator.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'java.io.OutputStream' 4 38
UnusedImports Avoid unused imports such as 'java.nio.file.Files' 4 39
CommentRequired Header comments are required 3 61187
RedundantFieldInitializer Avoid using redundant field initializer for '_hasMultipleFiles' 3 65
CommentRequired Protected method constructor comments are required 3 6771
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 127
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 152
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 160
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 171
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 181

fr/paris/lutece/plugins/forms/export/pdf/PdfUtil.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 47163
ShortVariable Avoid variables with short names like y 3 64
CommentRequired Public method and constructor comments are required 3 150162

fr/paris/lutece/plugins/forms/export/pdffull/PdfFullExport.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4795
FieldNamingConventions The final field name '_strFormatExportName' doesn't match '[a-z][a-zA-Z0-9]*' 1 49
FieldNamingConventions The final field name '_strFormatExportDisplayName' doesn't match '[a-z][a-zA-Z0-9]*' 1 50
FieldNamingConventions The final field name '_strFormatExportDescription' doesn't match '[a-z][a-zA-Z0-9]*' 1 51

fr/paris/lutece/plugins/forms/export/pdffull/PdfFullFileGenerator.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 67228
RedundantFieldInitializer Avoid using redundant field initializer for '_hasMultipleFiles' 3 69
CommentRequired Protected method constructor comments are required 3 7175
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 137
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 152
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 160
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 184

fr/paris/lutece/plugins/forms/service/AbstractFormDisplayService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 50251
RedundantFieldInitializer Avoid using redundant field initializer for '_formDatabaseService' 3 55
CommentRequired Protected method constructor comments are required 3 250

fr/paris/lutece/plugins/forms/service/EntryServiceManager.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_listEntryDisplayService' doesn't match '[a-z][a-zA-Z0-9]*' 1 51
FieldNamingConventions The final field name '_listEntryDataService' doesn't match '[a-z][a-zA-Z0-9]*' 1 53
FieldNamingConventions The final field name '_listValidator' doesn't match '[a-z][a-zA-Z0-9]*' 1 55

fr/paris/lutece/plugins/forms/service/FormCategoryService.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 4858

fr/paris/lutece/plugins/forms/service/FormDatabaseService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 57234
TooManyMethods This class has too many methods, consider refactoring it. 3 58234

fr/paris/lutece/plugins/forms/service/FormDisplayService.java

Rule Violation Priority Line
MissingOverride The method 'deleteDisplayAndDescendants(int)' is missing an @Override annotation. 3 66119
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 9294

fr/paris/lutece/plugins/forms/service/FormPanelConfigIdService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 49116

fr/paris/lutece/plugins/forms/service/FormResponseService.java

Rule Violation Priority Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 56130
ImmutableField Private field '_formService' could be made final; it is only initialized in the declaration or constructor. 3 58
CommentRequired Public method and constructor comments are required 3 6775
NonThreadSafeSingleton Singleton is not thread safe 3 6972
CommentRequired Public method and constructor comments are required 3 7781
CommentRequired Public method and constructor comments are required 3 8387
CommentRequired Public method and constructor comments are required 3 101129
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 122

fr/paris/lutece/plugins/forms/service/FormService.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34681
GodClass Possible God Class (WMC=64, ATFD=84, TCC=0.308%) 3 100681
TooManyMethods This class has too many methods, consider refactoring it. 3 101681
CyclomaticComplexity The method 'saveForm(Form, FormResponse)' has a cyclomatic complexity of 12. 3 118158
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 151
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 3 515
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 3 549
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 3 584
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 622

fr/paris/lutece/plugins/forms/service/FormsMultiviewAuthorizationService.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_formListFacade' doesn't match '[a-z][a-zA-Z0-9]*' 1 73
FieldNamingConventions The final field name '_formColumnFactory' doesn't match '[a-z][a-zA-Z0-9]*' 1 74
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 142

fr/paris/lutece/plugins/forms/service/FormsResourceIdService.java

Rule Violation Priority Line
DataClass The class 'FormsResourceIdService' is suspected to be a Data Class (WOC=0.000%, NOPA=13, NOAM=0, WMC=1) 3 52183

fr/paris/lutece/plugins/forms/service/IFormDatabaseService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 48273
TooManyMethods This class has too many methods, consider refactoring it. 3 49273
CommentRequired Public method and constructor comments are required 3 272

fr/paris/lutece/plugins/forms/service/IFormDisplayService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 42128
CommentRequired Public method and constructor comments are required 3 93

fr/paris/lutece/plugins/forms/service/MultiviewFormService.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34384
CommentRequired Public method and constructor comments are required 3 124129
FieldNamingConventions The constant name '_singleton' doesn't match '[A-Z][A-Z_0-9]*' 1 163
AvoidReassigningParameters Avoid reassigning parameters such as 'nIdForm' 2 172
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 174
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 188
AvoidReassigningParameters Avoid reassigning parameters such as 'nIdForm' 2 228
CyclomaticComplexity The method 'getFormFiltersList(Integer, List, Locale, User)' has a cyclomatic complexity of 10. 3 228273
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 230
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 254
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'question' 3 289
ConfusingTernary Avoid if (x != y) ..; else ..; 3 291305

fr/paris/lutece/plugins/forms/service/StepService.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 114
CommentRequired Public method and constructor comments are required 3 174177
CommentRequired Public method and constructor comments are required 3 179186

fr/paris/lutece/plugins/forms/service/cache/FormsCacheService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 43162
CommentRequired Public method and constructor comments are required 3 6164
CommentRequired Public method and constructor comments are required 3 6669
CommentRequired Public method and constructor comments are required 3 7174
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 8690
CommentRequired Public method and constructor comments are required 3 9296
CommentRequired Public method and constructor comments are required 3 98101
CommentRequired Public method and constructor comments are required 3 103106
CommentRequired Public method and constructor comments are required 3 108112
CommentRequired Public method and constructor comments are required 3 114117
CommentRequired Public method and constructor comments are required 3 119122
CommentRequired Public method and constructor comments are required 3 124127
CommentRequired Public method and constructor comments are required 3 129132

fr/paris/lutece/plugins/forms/service/download/FormsFileDownloadService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 46131
AvoidReassigningParameters Avoid reassigning parameters such as 'additionnalData' 2 68
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 72
AvoidReassigningParameters Avoid reassigning parameters such as 'additionnalData' 2 86
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 90
ShortVariable Avoid variables with short names like sb 3 111
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 112
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 113
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 114
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 115

fr/paris/lutece/plugins/forms/service/download/FormsFileRBACService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4981
ShortVariable Avoid variables with short names like bo 3 57

fr/paris/lutece/plugins/forms/service/entrytype/EntryTypeAutomaticFileReading.java

Rule Violation Priority Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 312

fr/paris/lutece/plugins/forms/service/entrytype/EntryTypeCamera.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4199

fr/paris/lutece/plugins/forms/service/entrytype/EntryTypeCartography.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeGeolocation' 4 41

fr/paris/lutece/plugins/forms/service/entrytype/EntryTypeCheckBox.java

Rule Violation Priority Line
CyclomaticComplexity The method 'isResponseChanged(List, List)' has a cyclomatic complexity of 11. 3 107151
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 114

fr/paris/lutece/plugins/forms/service/entrytype/EntryTypeComment.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.file.FileService' 4 41
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.file.IFileStoreServiceProvider' 4 42

fr/paris/lutece/plugins/forms/service/entrytype/EntryTypeGalleryImage.java

Rule Violation Priority Line
CyclomaticComplexity The method 'getResponseValueForExport(Entry, HttpServletRequest, Response, Locale)' has a cyclomatic complexity of 10. 3 136171
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 153162

fr/paris/lutece/plugins/forms/service/entrytype/EntryTypeMyLuteceUserAttribute.java

Rule Violation Priority Line
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 211

fr/paris/lutece/plugins/forms/service/entrytype/EntryTypeSlot.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 42117

fr/paris/lutece/plugins/forms/service/json/AbstractFormJsonService.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34451
GodClass Possible God Class (WMC=53, ATFD=65, TCC=10.458%) 3 80451
CommentRequired Header comments are required 3 80451
TooManyMethods This class has too many methods, consider refactoring it. 3 81451
FieldNamingConventions The final field name '_formDatabaseService' doesn't match '[a-z][a-zA-Z0-9]*' 1 84
CommentRequired Protected method constructor comments are required 3 8795
CommentRequired Public method and constructor comments are required 3 170195
CommentRequired Protected method constructor comments are required 3 197219
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 200
CommentRequired Protected method constructor comments are required 3 221260
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 225
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 227
CommentRequired Protected method constructor comments are required 3 262276
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 264
CommentRequired Protected method constructor comments are required 3 278301
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 280
CommentRequired Protected method constructor comments are required 3 303336
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 306
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 316
CommentRequired Protected method constructor comments are required 3 450

fr/paris/lutece/plugins/forms/service/json/FormJsonData.java

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

fr/paris/lutece/plugins/forms/service/json/FormJsonService.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34245
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 81245
CommentRequired Public method and constructor comments are required 3 9295
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 216

fr/paris/lutece/plugins/forms/service/json/StepJsonData.java

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

fr/paris/lutece/plugins/forms/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/forms/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/forms/service/listener/FormResponseEventListener.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 47143

fr/paris/lutece/plugins/forms/service/lock/LockResult.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3898

fr/paris/lutece/plugins/forms/service/lock/LuceneLockManager.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 539

fr/paris/lutece/plugins/forms/service/lock/LuceneLockManagerDB.java

Rule Violation Priority Line
MissingStaticMethodInNonInstantiatableClass Class cannot be instantiated and does not provide any static methods or fields 3 49131
CommentRequired Header comments are required 3 49131
FieldNamingConventions The final field name '_lockDao' doesn't match '[a-z][a-zA-Z0-9]*' 1 51
FieldNamingConventions The constant name '_plugin' doesn't match '[A-Z][A-Z_0-9]*' 1 52

fr/paris/lutece/plugins/forms/service/provider/GenericFormsProvider.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34358
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 3 84358
CommentRequired Header comments are required 3 84358
CyclomaticComplexity The method 'getValuesModel(FormResponse, HttpServletRequest)' has a cyclomatic complexity of 20. 3 128233
NcssCount The method 'getValuesModel(FormResponse, HttpServletRequest)' has a NCSS line count of 62. 3 128233
ExcessiveMethodLength Avoid really long methods. 3 128233
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 130
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'fr.paris.lutece.plugins.genericattributes.business.Response' due to existing import 'fr.paris.lutece.plugins.genericattributes.business.Response' 4 141
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 142175
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 150156
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 157172
CollapsibleIfStatements These nested if statements could be combined 3 159171
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 245

fr/paris/lutece/plugins/forms/service/resource/FormResponseExtendableResourceService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4686

fr/paris/lutece/plugins/forms/service/search/FormSearchConfig.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3661

fr/paris/lutece/plugins/forms/service/search/FormsSearchIndexerDaemon.java

Rule Violation Priority Line
ImmutableField Private field '_formSearchIndexer' could be made final; it is only initialized in the declaration or constructor. 3 55

fr/paris/lutece/plugins/forms/service/search/IFormSearchEngine.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4478

fr/paris/lutece/plugins/forms/service/search/ILucenDocumentExternalFieldProvider.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4051
UnnecessaryModifier Unnecessary modifier 'public' on method 'provideFields': the method is declared in an interface type 3 50

fr/paris/lutece/plugins/forms/service/search/LuceneFormSearchEngine.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34254
CommentRequired Header comments are required 3 72254
ShortVariable Avoid variables with short names like ir 3 88
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 128
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 128
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 129
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 135140
ShortVariable Avoid variables with short names like si 3 138
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 142
ShortVariable Avoid variables with short names like ir 3 188
ConfusingTernary Avoid if (x != y) ..; else ..; 3 194201

fr/paris/lutece/plugins/forms/service/search/LuceneFormSearchFactory.java

Rule Violation Priority Line
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 70
CyclomaticComplexity The method 'getIndexWriter(Boolean, boolean)' has a cyclomatic complexity of 11. 3 94140
ConfusingTernary Avoid if (x != y) ..; else ..; 3 163169

fr/paris/lutece/plugins/forms/service/search/LuceneFormSearchIndexer.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34889
GodClass Possible God Class (WMC=95, ATFD=149, TCC=8.696%) 3 97889
CyclomaticComplexity The class 'LuceneFormSearchIndexer' has a total cyclomatic complexity of 95 (highest 17). 3 97889
TooManyMethods This class has too many methods, consider refactoring it. 3 98889
UseUnderscoresInNumericLiterals Number 3600000L should separate every third digit with an underscore 3 104
ImmutableField Private field '_lockManager' could be made final; it is only initialized in the declaration or constructor. 3 111
MissingOverride The method 'fullIndexing()' is missing an @Override annotation. 3 147187
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 71 characters appended. 3 150
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 170
MissingOverride The method 'incrementalIndexing()' is missing an @Override annotation. 3 192216
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 116 characters appended. 3 194
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 203
CyclomaticComplexity The method 'removeConcurrentAction(List, List, List, Plugin)' has a cyclomatic complexity of 10. 3 259313
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 318395
CyclomaticComplexity The method 'processIndexing()' has a cyclomatic complexity of 12. 3 318395
MissingOverride The method 'isIndexerInitialized()' is missing an @Override annotation. 3 400411
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 406
ConfusingTernary Avoid if (x != y) ..; else ..; 3 426435
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 441
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 484
CyclomaticComplexity The method 'getDocument(FormResponse, Form, State)' has a cyclomatic complexity of 17. 3 667810
NcssCount The method 'getDocument(FormResponse, Form, State)' has a NCSS line count of 76. 3 667810
ExcessiveMethodLength Avoid really long methods. 3 667810
ConfusingTernary Avoid if (x != y) ..; else ..; 3 747802
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 759
ShortVariable Avoid variables with short names like sb 3 822
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 840

fr/paris/lutece/plugins/forms/service/upload/FormsAsynchronousUploadHandler.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 6063

fr/paris/lutece/plugins/forms/util/FormEntryNameConstants.java

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

fr/paris/lutece/plugins/forms/util/FormMultiviewFormResponseDateCreationNameConstants.java

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

fr/paris/lutece/plugins/forms/util/FormMultiviewFormsNameConstants.java

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

fr/paris/lutece/plugins/forms/util/FormMultiviewWorkflowStateNameConstants.java

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

fr/paris/lutece/plugins/forms/util/FormsConstants.java

Rule Violation Priority Line
ClassNamingConventions The utility class name 'FormsConstants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 44267
AvoidDuplicateLiterals The String literal "id_parent" appears 4 times in this file; the first occurrence is on line 57 3 57

fr/paris/lutece/plugins/forms/util/FormsResponseUtils.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34578
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.genericattributes.service.entrytype.EntryTypeServiceManager' 4 78
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 95578
CommentRequired Header comments are required 3 95578
GodClass Possible God Class (WMC=68, ATFD=106, TCC=0.526%) 3 95578
TooManyMethods This class has too many methods, consider refactoring it. 3 96578
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 98
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 132
ConfusingTernary Avoid if (x != y) ..; else ..; 3 210
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 242245
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 265
NPathComplexity The method 'fillResponseManagerWithResponses(HttpServletRequest, boolean, FormResponseManager, List, boolean)' has an NPath complexity of 1098 3 326413
CyclomaticComplexity The method 'fillResponseManagerWithResponses(HttpServletRequest, boolean, FormResponseManager, List, boolean)' has a cyclomatic complexity of 17. 3 326413
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 335348
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 415419
CommentRequired Public method and constructor comments are required 3 415419
CommentRequired Public method and constructor comments are required 3 503506
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 572

fr/paris/lutece/plugins/forms/util/FormsUtils.java

Rule Violation Priority Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 4265
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 18 characters appended. 3 60

fr/paris/lutece/plugins/forms/util/LuceneUtils.java

Rule Violation Priority Line
AvoidReassigningParameters Avoid reassigning parameters such as 'nIterationNumber' 2 55
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 58

fr/paris/lutece/plugins/forms/util/ReferenceItemComparator.java

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

fr/paris/lutece/plugins/forms/util/ReferenceListFactory.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_collectionItem' doesn't match '[a-z][a-zA-Z0-9]*' 1 55
FieldNamingConventions The final field name '_strCodeAttr' doesn't match '[a-z][a-zA-Z0-9]*' 1 56
FieldNamingConventions The final field name '_strNameAttribute' doesn't match '[a-z][a-zA-Z0-9]*' 1 57

fr/paris/lutece/plugins/forms/validation/AbstractDateValidator.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 53130
CommentRequired Public method and constructor comments are required 3 6265
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 70
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 97
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 107
CommentRequired Protected method constructor comments are required 3 123
CommentRequired Protected method constructor comments are required 3 125
CommentRequired Protected method constructor comments are required 3 127
CommentRequired Protected method constructor comments are required 3 129

fr/paris/lutece/plugins/forms/validation/AbstractDayDistanceValidator.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 48110
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 74
CommentRequired Public method and constructor comments are required 3 106
CommentRequired Protected method constructor comments are required 3 108
CommentRequired Protected method constructor comments are required 3 109

fr/paris/lutece/plugins/forms/validation/AbstractListQuestionValidator.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.i18n.I18nService' 4 47
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 85
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 117

fr/paris/lutece/plugins/forms/validation/AbstractNumberValidator.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 48110
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 74
CommentRequired Public method and constructor comments are required 3 106
CommentRequired Protected method constructor comments are required 3 108
CommentRequired Protected method constructor comments are required 3 109

fr/paris/lutece/plugins/forms/validation/AbstractPatternValidator.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 56128
ImmutableField Private field '_plugin' could be made final; it is only initialized in the declaration or constructor. 3 63
CommentRequired Public method and constructor comments are required 3 6568
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 73
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 94
CommentRequired Protected method constructor comments are required 3 127

fr/paris/lutece/plugins/forms/validation/AbstractValidator.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 46170
FieldNamingConventions The final field name '_strValidatorName' doesn't match '[a-z][a-zA-Z0-9]*' 1 49
FieldNamingConventions The final field name '_strDisplayName' doesn't match '[a-z][a-zA-Z0-9]*' 1 50

fr/paris/lutece/plugins/forms/validation/ControlListenerManager.java

Rule Violation Priority Line
ClassNamingConventions The utility class name 'ControlListenerManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 4496
LocalVariableNamingConventions The local variable name 'ControlRemovalListener' doesn't match '[a-z][a-zA-Z0-9]*' 1 62
LocalVariableNamingConventions The local variable name 'ControlListener' doesn't match '[a-z][a-zA-Z0-9]*' 1 76
LocalVariableNamingConventions The local variable name 'ControlListener' doesn't match '[a-z][a-zA-Z0-9]*' 1 90

fr/paris/lutece/plugins/forms/validation/DateInferiorValidator.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3970
CommentRequired Public method and constructor comments are required 3 4245

fr/paris/lutece/plugins/forms/validation/DateSuperiorValidator.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3970
CommentRequired Public method and constructor comments are required 3 4245

fr/paris/lutece/plugins/forms/validation/DayDelayMinimumValidator.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4177

fr/paris/lutece/plugins/forms/validation/ICustomImportableControl.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 720

fr/paris/lutece/plugins/forms/validation/ListExactResponseValidator.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.i18n.I18nService' 4 43
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 76

fr/paris/lutece/plugins/forms/validation/ListMaxResponseValidator.java

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

fr/paris/lutece/plugins/forms/validation/ListMinResponseValidator.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.i18n.I18nService' 4 43
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 75

fr/paris/lutece/plugins/forms/validation/ListQuestionListener.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4394
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 7174

fr/paris/lutece/plugins/forms/validation/ListValueValidator.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 94
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 105108
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 144

fr/paris/lutece/plugins/forms/validation/NumberInferiorValidator.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3971

fr/paris/lutece/plugins/forms/validation/NumberSuperiorValidator.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4074

fr/paris/lutece/plugins/forms/validation/UniqueValidator.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
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 105

fr/paris/lutece/plugins/forms/web/CompositeGroupDisplay.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 71597
FieldNamingConventions The final field name '_listChildren' doesn't match '[a-z][a-zA-Z0-9]*' 1 97
FieldNamingConventions The final field name '_formDisplay' doesn't match '[a-z][a-zA-Z0-9]*' 1 99
FieldNamingConventions The final field name '_model' doesn't match '[a-z][a-zA-Z0-9]*' 1 101
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 101
UnusedFormalParameter Avoid unused constructor parameters such as 'nIterationNumber'. 3 113
NPathComplexity The method 'findTemplateFor(DisplayType)' has an NPath complexity of 384 3 274312
CyclomaticComplexity The method 'findTemplateFor(DisplayType)' has a cyclomatic complexity of 10. 3 274312
ConfusingTernary Avoid if (x != y) ..; else ..; 3 481

fr/paris/lutece/plugins/forms/web/CompositeQuestionDisplay.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34723
TooManyMethods This class has too many methods, consider refactoring it. 3 88723
FieldNamingConventions The final field name '_formDisplay' doesn't match '[a-z][a-zA-Z0-9]*' 1 112
FieldNamingConventions The final field name '_model' doesn't match '[a-z][a-zA-Z0-9]*' 1 114
NPathComplexity The method 'getCompositeHtml(HttpServletRequest, List, Locale, DisplayType)' has an NPath complexity of 2148 3 200299
NcssCount The method 'getCompositeHtml(HttpServletRequest, List, Locale, DisplayType)' has a NCSS line count of 64. 3 200299
CyclomaticComplexity The method 'getCompositeHtml(HttpServletRequest, List, Locale, DisplayType)' has a cyclomatic complexity of 19. 3 200299
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 203
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 203
ControlStatementBraces This statement should have braces 3 234
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 253255
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 262273
ConfusingTernary Avoid if (x != y) ..; else ..; 3 284
ConfusingTernary Avoid if (x != y) ..; else ..; 3 295
CyclomaticComplexity The method 'findTemplateFor(DisplayType)' has a cyclomatic complexity of 10. 3 457497
NPathComplexity The method 'findTemplateFor(DisplayType)' has an NPath complexity of 384 3 457497
NPathComplexity The method 'setQuestionVisibility(List, DisplayType)' has an NPath complexity of 576 3 532576
CyclomaticComplexity The method 'setQuestionVisibility(List, DisplayType)' has a cyclomatic complexity of 11. 3 532576
ConfusingTernary Avoid if (x != y) ..; else ..; 3 637

fr/paris/lutece/plugins/forms/web/FormResponseData.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 38112

fr/paris/lutece/plugins/forms/web/FormResponseManager.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'java.time.LocalDateTime' 4 37
GodClass Possible God Class (WMC=49, ATFD=34, TCC=26.667%) 3 54429
TooManyMethods This class has too many methods, consider refactoring it. 3 55429
FieldNamingConventions The final field name '_listValidatedStep' doesn't match '[a-z][a-zA-Z0-9]*' 1 56
FieldNamingConventions The final field name '_formResponse' doesn't match '[a-z][a-zA-Z0-9]*' 1 57
RedundantFieldInitializer Avoid using redundant field initializer for '_bIsResponseLoadedFromBackup' 3 58
RedundantFieldInitializer Avoid using redundant field initializer for '_isBackupResponseAlreadyInitiated' 3 59
ConfusingTernary Avoid if (x != y) ..; else ..; 3 152
CommentRequired Public method and constructor comments are required 3 157161
CommentRequired Public method and constructor comments are required 3 171173
CommentRequired Public method and constructor comments are required 3 182184

fr/paris/lutece/plugins/forms/web/FormResponseXPage.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34377
CommentRequired Public method and constructor comments are required 3 132152
CommentRequired Public method and constructor comments are required 3 155196
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 159
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 198
CommentRequired Public method and constructor comments are required 3 199250
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 208
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 227
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 260
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 264
ConfusingTernary Avoid if (x != y) ..; else ..; 3 342349

fr/paris/lutece/plugins/forms/web/FormXPage.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 341470
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.genericattributes.business.ResponseHome' 4 44
UnusedImports Avoid unused imports such as 'org.apache.james.mime4j.dom.datetime.DateTime' 4 90
ExcessiveClassLength Avoid really long classes. 3 981470
TooManyMethods This class has too many methods, consider refactoring it. 3 991470
ImmutableField Private field '_captchaSecurityService' could be made final; it is only initialized in the declaration or constructor. 3 154
RedundantFieldInitializer Avoid using redundant field initializer for 'IsRequestComingFromAction' 3 161
FieldNamingConventions The field name 'IsRequestComingFromAction' doesn't match '_[a-z][a-zA-Z0-9]*' 1 161
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 215
CyclomaticComplexity The method 'checkMyLuteceAuthentification(Form, HttpServletRequest)' has a cyclomatic complexity of 11. 3 229258
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 271
NPathComplexity The method 'getStepView(HttpServletRequest)' has an NPath complexity of 184608 3 272395
NcssCount The method 'getStepView(HttpServletRequest)' has a NCSS line count of 63. 3 272395
ExcessiveMethodLength Avoid really long methods. 3 272395
CyclomaticComplexity The method 'getStepView(HttpServletRequest)' has a cyclomatic complexity of 29. 3 272395
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 272395
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 308310
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 311
AvoidDuplicateLiterals The String literal "action_" appears 4 times in this file; the first occurrence is on line 326 3 326
LinguisticNaming Linguistics Antipattern - The getter 'getFormStepModel' should not return void linguistically 3 448466
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 478
CyclomaticComplexity The method 'doReturnStep(HttpServletRequest)' has a cyclomatic complexity of 10. 3 479524
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 479524
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 482
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 519
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 536
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 537578
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 541
EmptyCatchBlock Avoid empty catch blocks 3 566569
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 590
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 591623
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 690
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 691728
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 742
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 743780
ConfusingTernary Avoid if (x != y) ..; else ..; 3 854868
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 944
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 9451000
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 953
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 960
ConfusingTernary Avoid if (x != y) ..; else ..; 3 990
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 1023
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 10241083
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 1098
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 10991135
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1130
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 1148
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 11491183
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 1196
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 11971232
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 1245
CyclomaticComplexity The method 'doSynchronousUploadDocument(HttpServletRequest)' has a cyclomatic complexity of 10. 3 12461334
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 12461334
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1265
ConfusingTernary Avoid if (x != y) ..; else ..; 3 13001330
ConfusingTernary Avoid if (x != y) ..; else ..; 3 13451352
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1403
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1404
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1405
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1406
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1420
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1421
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1422
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1423
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1437
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1438
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1439

fr/paris/lutece/plugins/forms/web/FormsDashboardComponent.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 67127
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 99
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 116
ShortVariable Avoid variables with short names like t 3 122

fr/paris/lutece/plugins/forms/web/ICompositeDisplay.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 153

fr/paris/lutece/plugins/forms/web/StepDisplayTree.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.api.user.User' 4 46
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.admin.AdminUserService' 4 61
FieldNamingConventions The final field name '_listChildren' doesn't match '[a-z][a-zA-Z0-9]*' 1 92
FieldNamingConventions The final field name '_listICompositeDisplay' doesn't match '[a-z][a-zA-Z0-9]*' 1 93
FieldNamingConventions The final field name '_formResponse' doesn't match '[a-z][a-zA-Z0-9]*' 1 96
FieldNamingConventions The final field name '_mapStepResponses' doesn't match '[a-z][a-zA-Z0-9]*' 1 97
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 97
FieldNamingConventions The final field name '_model' doesn't match '[a-z][a-zA-Z0-9]*' 1 99
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 99
ImmutableField Private field '_captchaSecurityService' could be made final; it is only initialized in the declaration or constructor. 3 100
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 270
ConfusingTernary Avoid if (x != y) ..; else ..; 3 298311
CyclomaticComplexity The method 'findTemplateFor(DisplayType)' has a cyclomatic complexity of 10. 3 331375
NPathComplexity The method 'findTemplateFor(DisplayType)' has an NPath complexity of 512 3 331375

fr/paris/lutece/plugins/forms/web/TermsOfServiceXPage.java

Rule Violation Priority Line
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 191

fr/paris/lutece/plugins/forms/web/admin/AbstractFormQuestionJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34922
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.image.ImageResourceManager' 4 77
CyclomaticComplexity The class 'AbstractFormQuestionJspBean' has a total cyclomatic complexity of 111 (highest 21). 3 82922
CommentRequired Header comments are required 3 82922
TooManyMethods This class has too many methods, consider refactoring it. 3 83922
RedundantFieldInitializer Avoid using redundant field initializer for '_nIdParentSelected' 3 171
NPathComplexity The method 'processQuestionCreation(HttpServletRequest, String)' has an NPath complexity of 576 3 182260
CyclomaticComplexity The method 'processQuestionCreation(HttpServletRequest, String)' has a cyclomatic complexity of 12. 3 182260
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 185
CyclomaticComplexity The method 'processQuestionUpdate(HttpServletRequest)' has a cyclomatic complexity of 12. 3 269332
NPathComplexity The method 'processQuestionUpdate(HttpServletRequest)' has an NPath complexity of 288 3 269332
ConfusingTernary Avoid if (x != y) ..; else ..; 3 310319
CommentRequired Protected method constructor comments are required 3 334379
ConfusingTernary Avoid if (x != y) ..; else ..; 3 344
ConfusingTernary Avoid if (x != y) ..; else ..; 3 356375
CommentRequired Protected method constructor comments are required 3 381410
ConfusingTernary Avoid if (x != y) ..; else ..; 3 390
CommentRequired Protected method constructor comments are required 3 412437
CommentRequired Protected method constructor comments are required 3 439464
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 442
CommentRequired Protected method constructor comments are required 3 466517
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 469
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 492
CommentRequired Protected method constructor comments are required 3 519599
CyclomaticComplexity The method 'initModifyQuestionModel(HttpServletRequest)' has a cyclomatic complexity of 10. 3 519599
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'field' 3 549
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 557
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 583
ExcessiveMethodLength Avoid really long methods. 3 601714
CyclomaticComplexity The method 'initMoveCompositeModel(HttpServletRequest)' has a cyclomatic complexity of 21. 3 601714
NcssCount The method 'initMoveCompositeModel(HttpServletRequest)' has a NCSS line count of 62. 3 601714
CommentRequired Protected method constructor comments are required 3 601714
NPathComplexity The method 'initMoveCompositeModel(HttpServletRequest)' has an NPath complexity of 103680 3 601714
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 603
CommentRequired Protected method constructor comments are required 3 910
CommentRequired Protected method constructor comments are required 3 921

fr/paris/lutece/plugins/forms/web/admin/AbstractJspBean.java

Rule Violation Priority Line
CommentRequired Protected method constructor comments are required 3 8995
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 233
CommentRequired Protected method constructor comments are required 3 247255
CommentRequired Protected method constructor comments are required 3 257263

fr/paris/lutece/plugins/forms/web/admin/FormCategoriesJspBean.java

Rule Violation Priority Line
ImmutableField Private field '_uploadHandler' could be made final; it is only initialized in the declaration or constructor. 3 109

fr/paris/lutece/plugins/forms/web/admin/FormControlJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34828
FieldNamingConventions The final field name '_nDefaultItemsPerPage' doesn't match '[a-z][a-zA-Z0-9]*' 1 151
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 326
ConfusingTernary Avoid if (x != y) ..; else ..; 3 329
ConfusingTernary Avoid if (x != y) ..; else ..; 3 330
AvoidReassigningParameters Avoid reassigning parameters such as 'controlGroup' 2 339
AvoidReassigningParameters Avoid reassigning parameters such as 'controlGroup' 2 339
AvoidReassigningParameters Avoid reassigning parameters such as 'controlGroup' 2 339
ConfusingTernary Avoid if (x != y) ..; else ..; 3 342349
CommentRequired Public method and constructor comments are required 3 362394
ConfusingTernary Avoid if (x != y) ..; else ..; 3 383390
ConfusingTernary Avoid if (x != y) ..; else ..; 3 424431
CyclomaticComplexity The method 'buildControlModel(HttpServletRequest, Map)' has a cyclomatic complexity of 31. 3 444573
NPathComplexity The method 'buildControlModel(HttpServletRequest, Map)' has an NPath complexity of 645120 3 444573
NcssCount The method 'buildControlModel(HttpServletRequest, Map)' has a NCSS line count of 77. 3 444573
ExcessiveMethodLength Avoid really long methods. 3 444573
ConfusingTernary Avoid if (x != y) ..; else ..; 3 496503
ShortVariable Avoid variables with short names like q 3 520
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 558
UseEqualsToCompareStrings Use equals() to compare strings instead of '==' or '!=' 3 558
ConfusingTernary Avoid if (x != y) ..; else ..; 3 660674
ConfusingTernary Avoid if (x != y) ..; else ..; 3 728
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 767
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 768
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 769
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 771
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 772
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 773

fr/paris/lutece/plugins/forms/web/admin/FormExportJspBean.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 64439
CommentRequired Public method and constructor comments are required 3 107148
CommentRequired Public method and constructor comments are required 3 151185
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 152
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 153
LinguisticNaming Linguistics Antipattern - The variable 'isOrderExportDecrementing' indicates linguistically it is a boolean, but it is 'int' 3 167
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 180
CommentRequired Public method and constructor comments are required 3 188228
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 189
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 223
CommentRequired Public method and constructor comments are required 3 231263
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 241
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 259
CommentRequired Public method and constructor comments are required 3 266296
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 268
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 280
CommentRequired Public method and constructor comments are required 3 299334
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 301
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 312
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 330
CommentRequired Public method and constructor comments are required 3 337372
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 344
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 368
CommentRequired Public method and constructor comments are required 3 375410
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 382
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 406
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 418
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 428430
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 433

fr/paris/lutece/plugins/forms/web/admin/FormJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34889
FieldNamingConventions The final field name '_nDefaultItemsPerPage' doesn't match '[a-z][a-zA-Z0-9]*' 1 206
ImmutableField Private field '_captchaSecurityService' could be made final; it is only initialized in the declaration or constructor. 3 212
ImmutableField Private field '_uploadHandler' could be made final; it is only initialized in the declaration or constructor. 3 213
ConfusingTernary Avoid if (x != y) ..; else ..; 3 293
ConfusingTernary Avoid if (x != y) ..; else ..; 3 294
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 546554
CommentRequired Public method and constructor comments are required 3 588617
CommentRequired Public method and constructor comments are required 3 848869
CommentRequired Public method and constructor comments are required 3 872888

fr/paris/lutece/plugins/forms/web/admin/FormMultiviewConfigJspBean.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 69250
CommentRequired Public method and constructor comments are required 3 110153
CommentRequired Public method and constructor comments are required 3 156190
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 186
CommentRequired Public method and constructor comments are required 3 193225
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 221
CommentRequired Public method and constructor comments are required 3 228249
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 230
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 240242
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 245

fr/paris/lutece/plugins/forms/web/admin/FormQuestionJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34790
TooManyMethods This class has too many methods, consider refactoring it. 3 96790
FieldNamingConventions The constant name '_formService' doesn't match '[A-Z][A-Z_0-9]*' 1 133
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 184
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 214
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 258
ConfusingTernary Avoid if (x != y) ..; else ..; 3 315322
ConfusingTernary Avoid if (x != y) ..; else ..; 3 352354
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 372
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 376
ControlStatementBraces This statement should have braces 3 393
ConfusingTernary Avoid if (x != y) ..; else ..; 3 423430
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 483
ConfusingTernary Avoid if (x != y) ..; else ..; 3 493500
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 504
CommentRequired Public method and constructor comments are required 3 505526
ShortVariable Avoid variables with short names like id 3 508
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 522
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 535
NPathComplexity The method 'getConfirmRemoveComposite(HttpServletRequest)' has an NPath complexity of 972 3 536595
CyclomaticComplexity The method 'getConfirmRemoveComposite(HttpServletRequest)' has a cyclomatic complexity of 15. 3 536595
ConfusingTernary Avoid if (x != y) ..; else ..; 3 569583
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 691
NPathComplexity The method 'doMoveComposite(HttpServletRequest)' has an NPath complexity of 864 3 716777
CyclomaticComplexity The method 'doMoveComposite(HttpServletRequest)' has a cyclomatic complexity of 12. 3 716777
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 748

fr/paris/lutece/plugins/forms/web/admin/FormResponseJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34755
CommentRequired Header comments are required 3 74755
TooManyMethods This class has too many methods, consider refactoring it. 3 75755
ImmutableField Private field '_controller' could be made final; it is only initialized in the declaration or constructor. 3 113
ImmutableField Private field '_formService' could be made final; it is only initialized in the declaration or constructor. 3 114
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 128
CyclomaticComplexity The method 'getStepView(HttpServletRequest)' has a cyclomatic complexity of 17. 3 129224
NPathComplexity The method 'getStepView(HttpServletRequest)' has an NPath complexity of 1216 3 129224
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 233
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 247
ConfusingTernary Avoid if (x != y) ..; else ..; 3 264
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 275
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 298
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 325
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 353
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 381
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 407
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 442
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 443457
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 466
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 467487
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 496
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 497529
ConfusingTernary Avoid if (x != y) ..; else ..; 3 514522
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 524
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 539
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 540
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 541
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 542
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 555
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 556
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 557
LinguisticNaming Linguistics Antipattern - The getter 'getFormStepModel' should not return void linguistically 3 652662
ConfusingTernary Avoid if (x != y) ..; else ..; 3 699713

fr/paris/lutece/plugins/forms/web/admin/FormStepJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34675
FieldNamingConventions The constant name '_stepService' doesn't match '[A-Z][A-Z_0-9]*' 1 155
FieldNamingConventions The final field name '_nDefaultItemsPerPage' doesn't match '[a-z][a-zA-Z0-9]*' 1 161
ConfusingTernary Avoid if (x != y) ..; else ..; 3 252
CyclomaticComplexity The method 'doCreateStep(HttpServletRequest)' has a cyclomatic complexity of 10. 3 290335
CyclomaticComplexity The method 'doModifyStep(HttpServletRequest)' has a cyclomatic complexity of 11. 3 524589
NPathComplexity The method 'doModifyStep(HttpServletRequest)' has an NPath complexity of 432 3 524589
CommentRequired Public method and constructor comments are required 3 606634
CommentRequired Public method and constructor comments are required 3 637657
CommentRequired Public method and constructor comments are required 3 660674

fr/paris/lutece/plugins/forms/web/admin/FormTransitionJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34629
TooManyMethods This class has too many methods, consider refactoring it. 3 75629
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 138
ConfusingTernary Avoid if (x != y) ..; else ..; 3 208
ConfusingTernary Avoid if (x != y) ..; else ..; 3 212219
ConfusingTernary Avoid if (x != y) ..; else ..; 3 248255
ConfusingTernary Avoid if (x != y) ..; else ..; 3 456470

fr/paris/lutece/plugins/forms/web/admin/FormWorkflowConfigJspBean.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 60148
CommentRequired Public method and constructor comments are required 3 85111
CommentRequired Public method and constructor comments are required 3 114147
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 143

fr/paris/lutece/plugins/forms/web/admin/ModifyEntryJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34686
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 157
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 178
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 199
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 276
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 307
CyclomaticComplexity The method 'doModifyField(HttpServletRequest)' has a cyclomatic complexity of 11. 3 327390
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 329
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 331
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 333
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 334
ConfusingTernary Avoid if (x != y) ..; else ..; 3 353387
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 374
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 399
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 434
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 435
CyclomaticComplexity The method 'doMoveField(HttpServletRequest, boolean)' has a cyclomatic complexity of 10. 3 504549
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 506
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 507
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 508
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 509
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 565
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 566
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 567

fr/paris/lutece/plugins/forms/web/admin/MultiviewFormResponseDetailsJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34685
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.business.user.AdminUser' 4 80
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.admin.AdminUserService' 4 83
TooManyMethods This class has too many methods, consider refactoring it. 3 103685
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 154
FieldNamingConventions The final field name '_formsMultiviewAuthorizationService' doesn't match '[a-z][a-zA-Z0-9]*' 1 155
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 231
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 268
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 326
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 412
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 445
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 461
ConfusingTernary Avoid if (x != y) ..; else ..; 3 472482
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 501
ConfusingTernary Avoid if (x != y) ..; else ..; 3 513
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 548
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 551
ConfusingTernary Avoid if (x != y) ..; else ..; 3 637651
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 640

fr/paris/lutece/plugins/forms/web/admin/MultiviewFormWorkflowRedirectionEnum.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 49
FieldNamingConventions The constant name '_mapValueNames' doesn't match '[A-Z][A-Z_0-9]*' 1 49

fr/paris/lutece/plugins/forms/web/admin/MultiviewFormsJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34687
TooManyMethods This class has too many methods, consider refactoring it. 3 107687
ImmutableField Private field '_uploadHandler' could be made final; it is only initialized in the declaration or constructor. 3 161
CyclomaticComplexity The method 'getMultiviewFormsView(HttpServletRequest)' has a cyclomatic complexity of 10. 3 171250
NPathComplexity The method 'getMultiviewFormsView(HttpServletRequest)' has an NPath complexity of 216 3 171250
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 311
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 354
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'FormsConstants.PARAMETER_ID_FORM' due to existing static import 'fr.paris.lutece.plugins.forms.util.FormsConstants.PARAMETER_ID_FORM' 4 435
EmptyCatchBlock Avoid empty catch blocks 3 437440
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'FormsConstants.PARAMETER_ID_FORM' due to existing static import 'fr.paris.lutece.plugins.forms.util.FormsConstants.PARAMETER_ID_FORM' 4 493
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 514
ConfusingTernary Avoid if (x != y) ..; else ..; 3 612619
ConfusingTernary Avoid if (x != y) ..; else ..; 3 633637
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'FormsConstants.PARAMETER_ID_FORM' due to existing static import 'fr.paris.lutece.plugins.forms.util.FormsConstants.PARAMETER_ID_FORM' 4 652

fr/paris/lutece/plugins/forms/web/breadcrumb/BreadcrumbManager.java

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

fr/paris/lutece/plugins/forms/web/breadcrumb/HorizontalBreadcrumb.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_strBreadcrumbBeanName' doesn't match '[a-z][a-zA-Z0-9]*' 1 53
FieldNamingConventions The final field name '_strBreadcrumbDisplayBeanName' doesn't match '[a-z][a-zA-Z0-9]*' 1 54
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 94

fr/paris/lutece/plugins/forms/web/breadcrumb/VerticalBreadcrumb.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.forms.business.StepHome' 4 43
FieldNamingConventions The final field name '_strBreadcrumbBeanName' doesn't match '[a-z][a-zA-Z0-9]*' 1 56
FieldNamingConventions The final field name '_strBreadcrumbDisplayBeanName' doesn't match '[a-z][a-zA-Z0-9]*' 1 57
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 97
UnusedPrivateMethod Avoid unused private methods such as 'getCurrentStepIndex(List,int)'. 3 120

fr/paris/lutece/plugins/forms/web/entrytype/DisplayType.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_mode' doesn't match '[a-z][a-zA-Z0-9]*' 1 63
FieldNamingConventions The final field name '_bIsFront' doesn't match '[a-z][a-zA-Z0-9]*' 1 64

fr/paris/lutece/plugins/forms/web/entrytype/EntryTypeCommentDisplayService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4979
CommentRequired Public method and constructor comments are required 3 5558
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 68

fr/paris/lutece/plugins/forms/web/entrytype/EntryTypeDateDisplayService.java

Rule Violation Priority Line
ImmutableField Private field '_strEntryServiceName' could be made final; it is only initialized in the declaration or constructor. 3 62
LinguisticNaming Linguistics Antipattern - The setter 'setModel' should not return any type except void linguistically 3 8692

fr/paris/lutece/plugins/forms/web/entrytype/EntryTypeDefaultDataService.java

Rule Violation Priority Line
ImmutableField Private field '_strEntryServiceName' could be made final; it is only initialized in the declaration or constructor. 3 66

fr/paris/lutece/plugins/forms/web/entrytype/EntryTypeDefaultDisplayService.java

Rule Violation Priority Line
ImmutableField Private field '_strEntryServiceName' could be made final; it is only initialized in the declaration or constructor. 3 57
LinguisticNaming Linguistics Antipattern - The setter 'setModel' should not return any type except void linguistically 3 7984

fr/paris/lutece/plugins/forms/web/entrytype/EntryTypeFileDisplayService.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.business.file.FileHome' 4 56
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.business.physicalfile.PhysicalFileHome' 4 58
ImmutableField Private field '_strEntryServiceName' could be made final; it is only initialized in the declaration or constructor. 3 71
LinguisticNaming Linguistics Antipattern - The setter 'setModel' should not return any type except void linguistically 3 95101

fr/paris/lutece/plugins/forms/web/entrytype/EntryTypeGeolocDisplayService.java

Rule Violation Priority Line
ImmutableField Private field '_strEntryServiceName' could be made final; it is only initialized in the declaration or constructor. 3 57
LinguisticNaming Linguistics Antipattern - The setter 'setModel' should not return any type except void linguistically 3 7984

fr/paris/lutece/plugins/forms/web/entrytype/EntryTypeMyLuteceUserAttributeDisplayService.java

Rule Violation Priority Line
ImmutableField Private field '_strEntryServiceName' could be made final; it is only initialized in the declaration or constructor. 3 61
LinguisticNaming Linguistics Antipattern - The setter 'setModel' should not return any type except void linguistically 3 8798
EmptyCatchBlock Avoid empty catch blocks 3 117120

fr/paris/lutece/plugins/forms/web/entrytype/EntryTypeTelephoneDisplayService.java

Rule Violation Priority Line
ImmutableField Private field '_strEntryServiceName' could be made final; it is only initialized in the declaration or constructor. 3 58
LinguisticNaming Linguistics Antipattern - The setter 'setModel' should not return any type except void linguistically 3 8288

fr/paris/lutece/plugins/forms/web/exception/CodeAlreadyExistsException.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_strCode' doesn't match '[a-z][a-zA-Z0-9]*' 1 42
CallSuperInConstructor It is a good practice to call super() in a constructor 3 4447
CommentRequired Public method and constructor comments are required 3 4447

fr/paris/lutece/plugins/forms/web/file/FormsDownloadFile.java

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

fr/paris/lutece/plugins/forms/web/file/FormsFileImageService.java

Rule Violation Priority Line
FieldNamingConventions The constant name '_singleton' doesn't match '[A-Z][A-Z_0-9]*' 1 172

fr/paris/lutece/plugins/forms/web/form/FormDisplayFactory.java

Rule Violation Priority Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 65302
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 191195
ConfusingTernary Avoid if (x != y) ..; else ..; 3 278297
ConfusingTernary Avoid if (x != y) ..; else ..; 3 284296

fr/paris/lutece/plugins/forms/web/form/column/display/impl/FormColumnDisplayEntry.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 79
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 96
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 100
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 140
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 153

fr/paris/lutece/plugins/forms/web/form/column/display/impl/FormColumnDisplayEntryCartography.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'java.util.Arrays' 4 36
UnusedImports Avoid unused imports such as 'java.util.List' 4 38
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 73
UnusedLocalVariable Avoid unused local variables such as 'strEntryGeoJSON'. 3 92
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 104
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'objEntryGeoJSON' 3 139

fr/paris/lutece/plugins/forms/web/form/column/display/impl/FormColumnDisplayEntryGeolocation.java

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

fr/paris/lutece/plugins/forms/web/form/column/display/impl/FormColumnDisplayFormResponseDateCreation.java

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

fr/paris/lutece/plugins/forms/web/form/column/display/impl/FormColumnDisplayFormResponseDateUpdate.java

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

fr/paris/lutece/plugins/forms/web/form/column/display/impl/FormColumnDisplayForms.java

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

fr/paris/lutece/plugins/forms/web/form/column/display/impl/FormColumnDisplayWorkflowState.java

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

fr/paris/lutece/plugins/forms/web/form/filter/display/impl/AbstractFormFilterDisplay.java

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

fr/paris/lutece/plugins/forms/web/form/filter/display/impl/FormFilterDisplayEntry.java

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

fr/paris/lutece/plugins/forms/web/form/filter/display/impl/FormFilterDisplayFormResponseDate.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like TO 3 58
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 97
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 122
ReturnEmptyArrayRatherThanNull Return an empty array rather than null. 1 170191
ShortVariable Avoid variables with short names like m 3 175
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 185

fr/paris/lutece/plugins/forms/web/form/filter/display/impl/FormFilterDisplayForms.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 99
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 112
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 138
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 140
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 149
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 152

fr/paris/lutece/plugins/forms/web/form/filter/display/impl/FormFilterDisplaySearchedText.java

Rule Violation Priority Line
ImmutableField Private field '_formSearchEngine' could be made final; it is only initialized in the declaration or constructor. 3 69
CommentRequired Public method and constructor comments are required 3 7174
CallSuperInConstructor It is a good practice to call super() in a constructor 3 7174
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 100
UselessStringValueOf No need to call String.valueOf to append to a string. 3 110
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 129

fr/paris/lutece/plugins/forms/web/form/filter/display/impl/FormFilterDisplayWorkflowState.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 92
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 101
ConfusingTernary Avoid if (x != y) ..; else ..; 3 128144
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 139

fr/paris/lutece/plugins/forms/web/form/multiview/util/FormColumnLineTemplate.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_nIdFormResponse' doesn't match '[a-z][a-zA-Z0-9]*' 1 45

fr/paris/lutece/plugins/forms/web/form/multiview/util/FormListTemplateBuilder.java

Rule Violation Priority Line
GodClass Possible God Class (WMC=53, ATFD=42, TCC=0.735%) 3 69522
TooManyMethods This class has too many methods, consider refactoring it. 3 70522
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 132
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 231
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 235
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 236
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 241
UnusedFormalParameter Avoid unused method parameters such as 'strRedirectionDetailsBaseUrl'. 3 264
UnusedFormalParameter Avoid unused method parameters such as 'formColumnlineTemplate'. 3 264
ConfusingTernary Avoid if (x != y) ..; else ..; 3 270277
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 282

fr/paris/lutece/plugins/forms/web/form/panel/display/impl/AbstractFormPanelDisplay.java

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

fr/paris/lutece/plugins/forms/web/form/panel/display/initializer/impl/FormPanelFormResponseIdFilterDisplayInitialiser.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4355
CommentRequired Protected method constructor comments are required 3 54

fr/paris/lutece/plugins/forms/web/form/response/view/FormResponseViewModelProcessorFactory.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_listFormResponseViewModelProcessor' doesn't match '[a-z][a-zA-Z0-9]*' 1 46

fr/paris/lutece/plugins/forms/web/http/IterationHttpServletRequestWrapper.java

Rule Violation Priority Line
ImmutableField Private field '_strIterationParameterName' could be made final; it is only initialized in the declaration or constructor. 3 52
MissingOverride The method 'getParameterValues(String)' is missing an @Override annotation. 3 7275
MethodReturnsInternalArray Returning '_strIterationParameterName' may expose an internal array. 3 74
MissingOverride The method 'getParameter(String)' is missing an @Override annotation. 3 8083

fr/paris/lutece/plugins/forms/web/http/SynchronousHttpServletRequestWrapper.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4398
FieldNamingConventions The final field name '_modifiableParameters' doesn't match '[a-z][a-zA-Z0-9]*' 1 45
RedundantFieldInitializer Avoid using redundant field initializer for '_allParameters' 3 46

fr/paris/lutece/plugins/forms/web/portlet/FormsListPortletJspBean.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 118

fr/paris/lutece/plugins/forms/web/search/ManageFormsSearchIndexationBean.java

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 52130
ConfusingTernary Avoid if (x != y) ..; else ..; 3 98107
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 3 121