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/participatoryideation/business/link/Link.java

Rule Violation Line
FormalParameterNamingConventions The method parameter name '_nId' doesn't match '[a-z][a-zA-Z0-9]*' 65
FormalParameterNamingConventions The method parameter name '_parentId' doesn't match '[a-z][a-zA-Z0-9]*' 75
FormalParameterNamingConventions The method parameter name '_childId' doesn't match '[a-z][a-zA-Z0-9]*' 85
FormalParameterNamingConventions The method parameter name '_parentCodeCampaign' doesn't match '[a-z][a-zA-Z0-9]*' 95
FormalParameterNamingConventions The method parameter name '_childCodeCampaign' doesn't match '[a-z][a-zA-Z0-9]*' 105
FormalParameterNamingConventions The method parameter name '_parentCodeProposal' doesn't match '[a-z][a-zA-Z0-9]*' 115
FormalParameterNamingConventions The method parameter name '_childCodeProposal' doesn't match '[a-z][a-zA-Z0-9]*' 125
FormalParameterNamingConventions The method parameter name '_parentTitle' doesn't match '[a-z][a-zA-Z0-9]*' 135
FormalParameterNamingConventions The method parameter name '_childTitle' doesn't match '[a-z][a-zA-Z0-9]*' 145

fr/paris/lutece/plugins/participatoryideation/business/proposal/Proposal.java

Rule Violation Line
FieldNamingConventions The constant name 'valueMap' doesn't match '[A-Z][A-Z_0-9]*' 129
FieldNamingConventions The constant name 'listStatusPublished' doesn't match '[A-Z][A-Z_0-9]*' 130
FieldNamingConventions The constant name 'listStatusUnPublished' doesn't match '[A-Z][A-Z_0-9]*' 131
FormalParameterNamingConventions The method parameter name '_dLatitude' doesn't match '[a-z][a-zA-Z0-9]*' 233
FormalParameterNamingConventions The method parameter name '_strField4' doesn't match '[a-z][a-zA-Z0-9]*' 327
FormalParameterNamingConventions The method parameter name '_strField4Complement' doesn't match '[a-z][a-zA-Z0-9]*' 337
FormalParameterNamingConventions The method parameter name '_nCout' doesn't match '[a-z][a-zA-Z0-9]*' 463
FormalParameterNamingConventions The method parameter name '_strLocationType' doesn't match '[a-z][a-zA-Z0-9]*' 473
FormalParameterNamingConventions The method parameter name '_strAdress' doesn't match '[a-z][a-zA-Z0-9]*' 483
FormalParameterNamingConventions The method parameter name '_strLocationArdt' doesn't match '[a-z][a-zA-Z0-9]*' 493
FormalParameterNamingConventions The method parameter name '_strSubmitterType' doesn't match '[a-z][a-zA-Z0-9]*' 503
FormalParameterNamingConventions The method parameter name '_dLongitude' doesn't match '[a-z][a-zA-Z0-9]*' 513
FormalParameterNamingConventions The method parameter name '_bAcceptExploit' doesn't match '[a-z][a-zA-Z0-9]*' 523
FormalParameterNamingConventions The method parameter name '_strSubmitter' doesn't match '[a-z][a-zA-Z0-9]*' 543
FormalParameterNamingConventions The method parameter name '_creationTimestamp' doesn't match '[a-z][a-zA-Z0-9]*' 708
FormalParameterNamingConventions The method parameter name '_strMotifRecev' doesn't match '[a-z][a-zA-Z0-9]*' 833
FormalParameterNamingConventions The method parameter name '_strCodeCampaign' doesn't match '[a-z][a-zA-Z0-9]*' 909

fr/paris/lutece/plugins/participatoryideation/business/proposal/ProposalHome.java

Rule Violation Line
LocalVariableNamingConventions The local variable name '_ids' doesn't match '[a-z][a-zA-Z0-9]*' 247
LocalVariableNamingConventions The local variable name '_proposal' doesn't match '[a-z][a-zA-Z0-9]*' 253
LocalVariableNamingConventions The local variable name '_newMethod' doesn't match '[a-z][a-zA-Z0-9]*' 261
LocalVariableNamingConventions The local variable name '_nIds' doesn't match '[a-z][a-zA-Z0-9]*' 280
LocalVariableNamingConventions The local variable name '_proposal' doesn't match '[a-z][a-zA-Z0-9]*' 284
LocalVariableNamingConventions The local variable name '_nIds' doesn't match '[a-z][a-zA-Z0-9]*' 318

fr/paris/lutece/plugins/participatoryideation/business/proposal/ProposalSearcher.java

Rule Violation Line
FormalParameterNamingConventions The method parameter name 'CodeCampaign' doesn't match '[a-z][a-zA-Z0-9]*' 77
FormalParameterNamingConventions The method parameter name 'CodeTheme' doesn't match '[a-z][a-zA-Z0-9]*' 94
FormalParameterNamingConventions The method parameter name '_strLuteceUserName' doesn't match '[a-z][a-zA-Z0-9]*' 230
FormalParameterNamingConventions The method parameter name '_bIsPublished' doesn't match '[a-z][a-zA-Z0-9]*' 295

fr/paris/lutece/plugins/participatoryideation/service/IdeationErrorException.java

Rule Violation Line
ConstructorCallsOverridableMethod Overridable method 'setErrorCode' called during object construction 54

fr/paris/lutece/plugins/participatoryideation/service/IdeationStaticService.java

Rule Violation Line
LocalVariableNamingConventions The local variable name 'WorkflowStatesReferenceList' doesn't match '[a-z][a-zA-Z0-9]*' 144

fr/paris/lutece/plugins/participatoryideation/service/ProposalCommentListener.java

Rule Violation Line
LocalVariableNamingConventions The local variable name 'nId_Proposal' doesn't match '[a-z][a-zA-Z0-9]*' 151

fr/paris/lutece/plugins/participatoryideation/service/ProposalUsersService.java

Rule Violation Line
FormalParameterNamingConventions The method parameter name 'nId_Proposal' doesn't match '[a-z][a-zA-Z0-9]*' 99
FormalParameterNamingConventions The method parameter name 'nId_Proposal' doesn't match '[a-z][a-zA-Z0-9]*' 124
FormalParameterNamingConventions The method parameter name 'nId_Proposal' doesn't match '[a-z][a-zA-Z0-9]*' 251
FormalParameterNamingConventions The method parameter name 'nId_Proposal' doesn't match '[a-z][a-zA-Z0-9]*' 278

fr/paris/lutece/plugins/participatoryideation/service/ProposalWSService.java

Rule Violation Line
LocalVariableNamingConventions The local variable name '_service' doesn't match '[a-z][a-zA-Z0-9]*' 260

fr/paris/lutece/plugins/participatoryideation/service/SolrProposalIndexer.java

Rule Violation Line
LocalVariableNamingConventions The local variable name 'SOLR_SERVER' doesn't match '[a-z][a-zA-Z0-9]*' 112
LocalVariableNamingConventions The local variable name '_proposalSearcher' doesn't match '[a-z][a-zA-Z0-9]*' 338
LocalVariableNamingConventions The local variable name 'SOLR_SERVER' doesn't match '[a-z][a-zA-Z0-9]*' 429

fr/paris/lutece/plugins/participatoryideation/service/campaign/IdeationCampaignDataProvider.java

Rule Violation Line
FieldNamingConventions The static field name 'PROPERTY_PREFIX' doesn't match '_[a-z][a-zA-Z0-9]*' 66
FieldNamingConventions The static field name 'PROPERTY_SEP' doesn't match '_[a-z][a-zA-Z0-9]*' 67
FieldNamingConventions The static field name 'campaigns' doesn't match '_[a-z][a-zA-Z0-9]*' 70
FieldNamingConventions The static field name 'themeLabels' doesn't match '_[a-z][a-zA-Z0-9]*' 76
FieldNamingConventions The static field name 'themeFrontRgbs' doesn't match '_[a-z][a-zA-Z0-9]*' 82
FieldNamingConventions The static field name 'areaLabels' doesn't match '_[a-z][a-zA-Z0-9]*' 88
FieldNamingConventions The static field name 'areaTypes' doesn't match '_[a-z][a-zA-Z0-9]*' 94
FieldNamingConventions The static field name 'dates' doesn't match '_[a-z][a-zA-Z0-9]*' 100
FieldNamingConventions The static field name 'fields' doesn't match '_[a-z][a-zA-Z0-9]*' 109

fr/paris/lutece/plugins/participatoryideation/service/capgeo/QpvQvaService.java

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

fr/paris/lutece/plugins/participatoryideation/service/notify/TaskNotifyIdeation.java

Rule Violation Line
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 248
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 271
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 322
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 340
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 360
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 379

fr/paris/lutece/plugins/participatoryideation/util/ParticipatoryIdeationConstants.java

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

fr/paris/lutece/plugins/participatoryideation/util/ProposalExportUtils.java

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

fr/paris/lutece/plugins/participatoryideation/web/IdeationApp.java

Rule Violation Line
LocalVariableNamingConventions The local variable name 'results_keyword' doesn't match '[a-z][a-zA-Z0-9]*' 412
LocalVariableNamingConventions The local variable name 'results_location' doesn't match '[a-z][a-zA-Z0-9]*' 413
LocalVariableNamingConventions The local variable name 'results_previous_campaigns' doesn't match '[a-z][a-zA-Z0-9]*' 414
FieldNamingConventions The constant name 'nameMap' doesn't match '[A-Z][A-Z_0-9]*' 1455

fr/paris/lutece/plugins/participatoryideation/web/ManageIdeationProposalsJspBean.java

Rule Violation Line
FieldNamingConventions The public constant name 'RIGHT_MANAGE_participatoryideation_proposals' doesn't match '[A-Z][A-Z_0-9]*' 60

fr/paris/lutece/plugins/participatoryideation/web/ProposalBoForm.java

Rule Violation Line
FormalParameterNamingConventions The method parameter name '_strTitre' doesn't match '[a-z][a-zA-Z0-9]*' 226
FormalParameterNamingConventions The method parameter name '_strDescription' doesn't match '[a-z][a-zA-Z0-9]*' 236
FormalParameterNamingConventions The method parameter name '_strCout' doesn't match '[a-z][a-zA-Z0-9]*' 246
FormalParameterNamingConventions The method parameter name '_strLocationArdt' doesn't match '[a-z][a-zA-Z0-9]*' 256

fr/paris/lutece/plugins/participatoryideation/web/ProposalJspBean.java

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

fr/paris/lutece/plugins/participatoryideation/web/ProposalLinksJspBean.java

Rule Violation Line
FieldNamingConventions The static field name 'defaultSearcher' doesn't match '_[a-z][a-zA-Z0-9]*' 138
FormalParameterNamingConventions The method parameter name '_str' doesn't match '[a-z][a-zA-Z0-9]*' 526
FormalParameterNamingConventions The method parameter name '_link' doesn't match '[a-z][a-zA-Z0-9]*' 548

fr/paris/lutece/plugins/participatoryideation/web/ProposalSubscriberXPage.java

Rule Violation Line
LocalVariableNamingConventions The local variable name '_proposalSearcher' doesn't match '[a-z][a-zA-Z0-9]*' 140
LocalVariableNamingConventions The local variable name '_commentFilter' doesn't match '[a-z][a-zA-Z0-9]*' 146
LocalVariableNamingConventions The local variable name '_proposalSearcher' doesn't match '[a-z][a-zA-Z0-9]*' 206
LocalVariableNamingConventions The local variable name 'IdExtendableResourceList' doesn't match '[a-z][a-zA-Z0-9]*' 283

fr/paris/lutece/plugins/participatoryideation/web/ProposalXPage.java

Rule Violation Line
LocalVariableNamingConventions The local variable name '_proposal' doesn't match '[a-z][a-zA-Z0-9]*' 158
LocalVariableNamingConventions The local variable name '_proposal' doesn't match '[a-z][a-zA-Z0-9]*' 253

fr/paris/lutece/plugins/participatoryideation/web/ProposalsXpage.java

Rule Violation Line
FieldNamingConventions The constant name 'strSearchSolrUrl' doesn't match '[A-Z][A-Z_0-9]*' 76
FieldNamingConventions The constant name 'strAmpSymbol' doesn't match '[A-Z][A-Z_0-9]*' 77
FieldNamingConventions The constant name 'strEqualSymbol' doesn't match '[A-Z][A-Z_0-9]*' 78

fr/paris/lutece/plugins/participatoryideation/web/etape/AbstractFormEtape.java

Rule Violation Line
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 4952
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 5558
FormalParameterNamingConventions The method parameter name '_bValidated' doesn't match '[a-z][a-zA-Z0-9]*' 65

fr/paris/lutece/plugins/participatoryideation/web/etape/FormEtapeDescription.java

Rule Violation Line
FormalParameterNamingConventions The method parameter name '_strDescription' doesn't match '[a-z][a-zA-Z0-9]*' 89
FormalParameterNamingConventions The method parameter name '_strCout' doesn't match '[a-z][a-zA-Z0-9]*' 101

fr/paris/lutece/plugins/participatoryideation/web/etape/FormEtapeLocation.java

Rule Violation Line
FormalParameterNamingConventions The method parameter name '_strGeojson' doesn't match '[a-z][a-zA-Z0-9]*' 135
FormalParameterNamingConventions The method parameter name '_strAdress' doesn't match '[a-z][a-zA-Z0-9]*' 208
FormalParameterNamingConventions The method parameter name '_strSubmitterType' doesn't match '[a-z][a-zA-Z0-9]*' 218
FormalParameterNamingConventions The method parameter name '_strConseilQuartier' doesn't match '[a-z][a-zA-Z0-9]*' 228

fr/paris/lutece/plugins/participatoryideation/web/etape/FormEtapeUpload.java

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

fr/paris/lutece/plugins/participatoryideation/web/etape/IFormEtape.java

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

fr/paris/lutece/plugins/participatoryideation/web/include/HeaderInclude.java

Rule Violation Line
LocalVariableNamingConventions The local variable name '_user' doesn't match '[a-z][a-zA-Z0-9]*' 117
LocalVariableNamingConventions The local variable name '_proposalSearcher' doesn't match '[a-z][a-zA-Z0-9]*' 127
LocalVariableNamingConventions The local variable name '_commentFilter' doesn't match '[a-z][a-zA-Z0-9]*' 133
LocalVariableNamingConventions The local variable name 'IdExtendableResourceList' doesn't match '[a-z][a-zA-Z0-9]*' 184

fr/paris/lutece/plugins/participatoryideation/web/notify/ChangeProposalStatusTaskComponent.java

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

Priority 2

fr/paris/lutece/plugins/participatoryideation/business/proposal/ProposalDAO.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'nCpt' 407
AvoidReassigningParameters Avoid reassigning parameters such as 'nCpt' 407
AvoidReassigningParameters Avoid reassigning parameters such as 'nCpt' 407
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 428

fr/paris/lutece/plugins/participatoryideation/service/ProposalService.java

Rule Violation Line
AvoidUsingVolatile Use of modifier volatile is not recommended. 79
AvoidUsingVolatile Use of modifier volatile is not recommended. 80
AvoidUsingVolatile Use of modifier volatile is not recommended. 82
AvoidUsingVolatile Use of modifier volatile is not recommended. 83
AvoidUsingVolatile Use of modifier volatile is not recommended. 85
AvoidUsingVolatile Use of modifier volatile is not recommended. 86

fr/paris/lutece/plugins/participatoryideation/service/ProposalWSService.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'proposal' 186

fr/paris/lutece/plugins/participatoryideation/web/ProposalsXpage.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 134

Priority 3

fr/paris/lutece/plugins/participatoryideation/business/capgeo/QpvQva.java

Rule Violation Line
CommentRequired Header comments are required 36146
DefaultPackage Use explicit scoping instead of the default package private level 38
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _strType field if you want a default access modifier 38
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _strId field if you want a default access modifier 39
DefaultPackage Use explicit scoping instead of the default package private level 39
DefaultPackage Use explicit scoping instead of the default package private level 40
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _strLibelle field if you want a default access modifier 40
DefaultPackage Use explicit scoping instead of the default package private level 41
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _strGpruNom field if you want a default access modifier 41
DefaultPackage Use explicit scoping instead of the default package private level 42
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _strExtBp field if you want a default access modifier 42
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _strFid field if you want a default access modifier 43
DefaultPackage Use explicit scoping instead of the default package private level 43

fr/paris/lutece/plugins/participatoryideation/business/capgeo/QpvQvaRestResponse.java

Rule Violation Line
CommentRequired Header comments are required 81119
DataClass The class 'QpvQvaRestResponse' is suspected to be a Data Class (WOC=0.000%, NOPA=7, NOAM=1, WMC=1) 81119
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _features field if you want a default access modifier 91
DefaultPackage Use explicit scoping instead of the default package private level 91
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 96

fr/paris/lutece/plugins/participatoryideation/business/link/Link.java

Rule Violation Line
DataClass The class 'Link' is suspected to be a Data Class (WOC=11.111%, NOPA=0, NOAM=16, WMC=18) 41161
CommentRequired Public method and constructor comments are required 6063
CommentRequired Public method and constructor comments are required 6568

fr/paris/lutece/plugins/participatoryideation/business/link/LinkDAO.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 226
ConfusingTernary Avoid if (x != y) ..; else ..; 228
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'result' 245
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 149 characters appended. 280
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 60 characters appended. 284

fr/paris/lutece/plugins/participatoryideation/business/link/LinkSearcher.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 5154
CommentRequired Public method and constructor comments are required 5659
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

fr/paris/lutece/plugins/participatoryideation/business/notify/TaskChangeProposalStatusConfigDAO.java

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

fr/paris/lutece/plugins/participatoryideation/business/notify/TaskNotifyIdeationConfigDAO.java

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

fr/paris/lutece/plugins/participatoryideation/business/proposal/IProposalDAO.java

Rule Violation Line
LinguisticNaming Linguistics Antipattern - The method 'hasParent' indicates linguistically it returns a boolean, but it returns 'int' 128

fr/paris/lutece/plugins/participatoryideation/business/proposal/Proposal.java

Rule Violation Line
ExcessivePublicCount This class has a bunch of public methods and attributes 34914
CyclomaticComplexity The class 'Proposal' has a total cyclomatic complexity of 85 (highest 2). 53914
TooManyFields Too many fields 53914
CommentRequired Public method and constructor comments are required 150153
CommentRequired Public method and constructor comments are required 155158
CommentRequired Public method and constructor comments are required 160163
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 165
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 166
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 167
CommentRequired Public method and constructor comments are required 176179
CommentRequired Public method and constructor comments are required 181184
CommentRequired Public method and constructor comments are required 186189
CommentRequired Public method and constructor comments are required 228231
CommentRequired Public method and constructor comments are required 233236
CommentRequired Public method and constructor comments are required 322325
CommentRequired Public method and constructor comments are required 327330
CommentRequired Public method and constructor comments are required 332335
CommentRequired Public method and constructor comments are required 337340
CommentRequired Public method and constructor comments are required 468471
CommentRequired Public method and constructor comments are required 473476
CommentRequired Public method and constructor comments are required 478481
CommentRequired Public method and constructor comments are required 483486
CommentRequired Public method and constructor comments are required 488491
CommentRequired Public method and constructor comments are required 493496
CommentRequired Public method and constructor comments are required 498501
CommentRequired Public method and constructor comments are required 503506
CommentRequired Public method and constructor comments are required 508511
CommentRequired Public method and constructor comments are required 513516
CommentRequired Public method and constructor comments are required 518521
CommentRequired Public method and constructor comments are required 523526
CommentRequired Public method and constructor comments are required 528531
CommentRequired Public method and constructor comments are required 533536
CommentRequired Public method and constructor comments are required 538541
CommentRequired Public method and constructor comments are required 543546
CommentRequired Public method and constructor comments are required 803806
CommentRequired Public method and constructor comments are required 828831
CommentRequired Public method and constructor comments are required 833836

fr/paris/lutece/plugins/participatoryideation/business/proposal/ProposalDAO.java

Rule Violation Line
GodClass Possible God Class (WMC=70, ATFD=130, TCC=0.265%) 60991
TooManyMethods This class has too many methods, consider refactoring it. 61991
ConfusingTernary Avoid if (x != y) ..; else ..; 160167
ConfusingTernary Avoid if (x != y) ..; else ..; 178185
ConfusingTernary Avoid if (x != y) ..; else ..; 187194
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 202
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 203
ShortVariable Avoid variables with short names like id 224
ShortVariable Avoid variables with short names like id 229
ShortVariable Avoid variables with short names like id 258
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 335
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 336
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 383
ConfusingTernary Avoid if (x != y) ..; else ..; 447454
ConfusingTernary Avoid if (x != y) ..; else ..; 456463
ConfusingTernary Avoid if (x != y) ..; else ..; 477485
ExcessiveMethodLength Avoid really long methods. 512613
NPathComplexity The method 'selectProposalsListSearch(Plugin, ProposalSearcher)' has an NPath complexity of 6480 512613
CyclomaticComplexity The method 'selectProposalsListSearch(Plugin, ProposalSearcher)' has a cyclomatic complexity of 18. 512613
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 514
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 ..; 516
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 543
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 611
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'result' 612
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 621
NcssCount The method 'appendFilters(String, ProposalSearcher)' has a NCSS line count of 68. 700832
NPathComplexity The method 'appendFilters(String, ProposalSearcher)' has an NPath complexity of 2211840 700832
ExcessiveMethodLength Avoid really long methods. 700832
CyclomaticComplexity The method 'appendFilters(String, ProposalSearcher)' has a cyclomatic complexity of 26. 700832
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 6 consecutive times with literals. Use a single append with a single combined String. 728
AvoidDuplicateLiterals The String literal " proposals.type_nqpv_qva != ? AND" appears 6 times in this file; the first occurrence is on line 728 728
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 415 characters appended. 775
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 788
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 794
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 807
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 817
NPathComplexity The method 'setFilterValues(DAOUtil, ProposalSearcher)' has an NPath complexity of 2304 842908
CyclomaticComplexity The method 'setFilterValues(DAOUtil, ProposalSearcher)' has a cyclomatic complexity of 13. 842908
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 32 characters appended. 912
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 916
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 918
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 918
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 919
UnusedPrivateMethod Avoid unused private methods such as 'insertLink(int,int,Plugin)'. 955

fr/paris/lutece/plugins/participatoryideation/business/proposal/ProposalHome.java

Rule Violation Line
LinguisticNaming Linguistics Antipattern - The method 'hasParent' indicates linguistically it returns a boolean, but it returns 'int' 160163
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 247
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 259264
SwitchStmtsShouldHaveDefault Switch statements should have a default label 288302
ShortVariable Avoid variables with short names like s 306
CyclomaticComplexity The method 'getSubProposalsNicknamesNiceText(int, GetSubProposalsMethod, String)' has a cyclomatic complexity of 23. 313380
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 316
SwitchStmtsShouldHaveDefault Switch statements should have a default label 327341
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 352
ControlStatementBraces This statement should have braces 363364
ControlStatementBraces This statement should have braces 367368
ControlStatementBraces This statement should have braces 371372

fr/paris/lutece/plugins/participatoryideation/business/proposal/ProposalSearcher.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 172175
CommentRequired Public method and constructor comments are required 177180
CommentRequired Public method and constructor comments are required 290293
CommentRequired Public method and constructor comments are required 295298

fr/paris/lutece/plugins/participatoryideation/business/submitter/SubmitterDAO.java

Rule Violation Line
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 220

fr/paris/lutece/plugins/participatoryideation/business/submitter/SubmitterTypeDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 51359
ConfusingTernary Avoid if (x != y) ..; else ..; 282
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 331
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 347

fr/paris/lutece/plugins/participatoryideation/service/ExtendableCommentRatingListener.java

Rule Violation Line
CommentRequired Header comments are required 47106

fr/paris/lutece/plugins/participatoryideation/service/IIdeationStaticService.java

Rule Violation Line
CommentRequired Header comments are required 3859
UnnecessaryModifier Unnecessary modifier 'public' on method 'fillCampaignStaticContent': the method is declared in an interface type 49
UnnecessaryModifier Unnecessary modifier 'public' on method 'fillAllStaticContent': the method is declared in an interface type 57

fr/paris/lutece/plugins/participatoryideation/service/IProposalService.java

Rule Violation Line
CommentRequired Header comments are required 4395
CommentRequired Public method and constructor comments are required 46
CommentRequired Public method and constructor comments are required 48
CommentRequired Public method and constructor comments are required 50
CommentRequired Public method and constructor comments are required 52
CommentRequired Public method and constructor comments are required 64
CommentRequired Public method and constructor comments are required 66
CommentRequired Public method and constructor comments are required 68
CommentRequired Public method and constructor comments are required 70
CommentRequired Public method and constructor comments are required 72
CommentRequired Public method and constructor comments are required 74
UnnecessaryModifier Unnecessary modifier 'public' on method 'getUniqueUserGuidsProposalsSubmitters': the method is declared in an interface type 88
UnnecessaryModifier Unnecessary modifier 'public' on method 'getUniqueUserGuidsProposalsFollowers': the method is declared in an interface type 93

fr/paris/lutece/plugins/participatoryideation/service/IProposalUsersService.java

Rule Violation Line
CommentRequired Header comments are required 3639

fr/paris/lutece/plugins/participatoryideation/service/IProposalWSService.java

Rule Violation Line
CommentRequired Header comments are required 43117
UnnecessaryModifier Unnecessary modifier 'public' on method 'getProposalsList': the method is declared in an interface type 51
UnnecessaryModifier Unnecessary modifier 'public' on method 'getProposalsListSearch': the method is declared in an interface type 75
UnnecessaryModifier Unnecessary modifier 'public' on method 'updateProposal': the method is declared in an interface type 84
UnnecessaryModifier Unnecessary modifier 'public' on method 'updateProposal': the method is declared in an interface type 86
CommentRequired Public method and constructor comments are required 86
UnnecessaryModifier Unnecessary modifier 'public' on method 'updateProposal': the method is declared in an interface type 88
CommentRequired Public method and constructor comments are required 88
UnnecessaryModifier Unnecessary modifier 'public' on method 'createComment': the method is declared in an interface type 95

fr/paris/lutece/plugins/participatoryideation/service/IdeationErrorException.java

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

fr/paris/lutece/plugins/participatoryideation/service/IdeationSessionListener.java

Rule Violation Line
ShortVariable Avoid variables with short names like se 50
ShortVariable Avoid variables with short names like se 59

fr/paris/lutece/plugins/participatoryideation/service/IdeationSolrAddon.java

Rule Violation Line
CommentRequired Header comments are required 53145
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 93
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 94
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 104
ShortVariable Avoid variables with short names like h 104
UseIndexOfChar String.indexOf(char) is faster than String.indexOf(String). 136

fr/paris/lutece/plugins/participatoryideation/service/IdeationStaticService.java

Rule Violation Line
CommentRequired Header comments are required 56267
CommentRequired Public method and constructor comments are required 98105
NonThreadSafeSingleton Singleton is not thread safe 100103
CommentRequired Public method and constructor comments are required 107110
CallSuperInConstructor It is a good practice to call super() in a constructor 107110
CommentRequired Public method and constructor comments are required 112115
MissingOverride The method 'getName()' is missing an @Override annotation. 112115
MissingOverride The method 'fillCampaignStaticContent(Map, String)' is missing an @Override annotation. 125164
MissingOverride The method 'fillAllStaticContent(Map)' is missing an @Override annotation. 174195
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 207
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 207
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 214
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 214
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 235
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 235
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 243
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 243

fr/paris/lutece/plugins/participatoryideation/service/IdeationUploadHandler.java

Rule Violation Line
CommentRequired Header comments are required 55273
UseUnderscoresInNumericLiterals Number 2097152 should separate every third digit with an underscore 76
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 81
CyclomaticComplexity The method 'canUploadFiles(HttpServletRequest, String, List, Locale)' has a cyclomatic complexity of 12. 122186
NPathComplexity The method 'canUploadFiles(HttpServletRequest, String, List, Locale)' has an NPath complexity of 264 122186
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 124
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 125126
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 129
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 248
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 258

fr/paris/lutece/plugins/participatoryideation/service/ProposalCommentListener.java

Rule Violation Line
CommentRequired Header comments are required 51191
PositionLiteralsFirstInComparisons Position literals first in String comparisons 115
EmptyIfStmt Avoid empty if statements 121123
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 148
EmptyIfStmt Avoid empty if statements 162164
SimplifyBooleanReturns Avoid unnecessary if..then..else statements when returning booleans 183187

fr/paris/lutece/plugins/participatoryideation/service/ProposalFollowListener.java

Rule Violation Line
CommentRequired Header comments are required 4367

fr/paris/lutece/plugins/participatoryideation/service/ProposalIconProvider.java

Rule Violation Line
CommentRequired Header comments are required 3845
CommentRequired Public method and constructor comments are required 4144
MissingOverride The method 'getIcon(String)' is missing an @Override annotation. 4144

fr/paris/lutece/plugins/participatoryideation/service/ProposalPopupContentProvider.java

Rule Violation Line
CommentRequired Header comments are required 4766
MissingOverride The method 'getPopup(HttpServletRequest, String, String)' is missing an @Override annotation. 5665
CommentRequired Public method and constructor comments are required 5665
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 60
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 60
ShortVariable Avoid variables with short names like t 63

fr/paris/lutece/plugins/participatoryideation/service/ProposalRatingListener.java

Rule Violation Line
CommentRequired Header comments are required 4169

fr/paris/lutece/plugins/participatoryideation/service/ProposalService.java

Rule Violation Line
CommentRequired Header comments are required 63298
CommentRequired Public method and constructor comments are required 97127
NonThreadSafeSingleton Singleton is not thread safe 99124
UnusedFormalParameter Avoid unused method parameters such as 'proposal'. 129
UnusedFormalParameter Avoid unused method parameters such as 'type'. 129
MissingOverride The method 'createProposalDB(Proposal)' is missing an @Override annotation. 142147
CommentRequired Public method and constructor comments are required 142147
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 142147
MissingOverride The method 'createProposal(Proposal)' is missing an @Override annotation. 149153
CommentRequired Public method and constructor comments are required 149153
CommentRequired Public method and constructor comments are required 155161
MissingOverride The method 'removeProposal(Proposal)' is missing an @Override annotation. 163169
CommentRequired Public method and constructor comments are required 163169
CommentRequired Public method and constructor comments are required 171177
MissingOverride The method 'removeProposalByMdp(Proposal)' is missing an @Override annotation. 171177
MissingOverride The method 'getQpvQvaCodesList()' is missing an @Override annotation. 192195
MissingOverride The method 'getQpvQvaCodesMap()' is missing an @Override annotation. 200203
MissingOverride The method 'getField4CodesList()' is missing an @Override annotation. 208211
MissingOverride The method 'getField4CodesMap()' is missing an @Override annotation. 216219
MissingOverride The method 'getTypeLocationList()' is missing an @Override annotation. 224227
MissingOverride The method 'getTypeLocationMap()' is missing an @Override annotation. 232235
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 248
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 277

fr/paris/lutece/plugins/participatoryideation/service/ProposalUsersService.java

Rule Violation Line
CommentRequired Header comments are required 58284
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 59284
NonThreadSafeSingleton Singleton is not thread safe 7376
NonThreadSafeSingleton Singleton is not thread safe 8790
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 101
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 126
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 165
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 207
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 215

fr/paris/lutece/plugins/participatoryideation/service/ProposalWSService.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34340
CommentRequired Header comments are required 71340
NonThreadSafeSingleton Singleton is not thread safe 93100
CyclomaticComplexity The method 'updateProposal(Proposal, Proposal, boolean, HttpServletRequest)' has a cyclomatic complexity of 17. 143183
EmptyIfStmt Avoid empty if statements 161163
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 198
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 198
ShortVariable Avoid variables with short names like t 202
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 205
AddEmptyString Do not add empty strings 212
AddEmptyString Do not add empty strings 232
CommentRequired Public method and constructor comments are required 335338

fr/paris/lutece/plugins/participatoryideation/service/SolrProposalIndexer.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34471
AvoidDuplicateLiterals The String literal "proposal" appears 5 times in this file; the first occurrence is on line 78 78
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 97
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 118
CyclomaticComplexity The method 'getItem(Proposal)' has a cyclomatic complexity of 18. 130260
NPathComplexity The method 'getItem(Proposal)' has an NPath complexity of 3840 130260
NcssCount The method 'getItem(Proposal)' has a NCSS line count of 75. 130260
ExcessiveMethodLength Avoid really long methods. 130260
ConfusingTernary Avoid if (x != y) ..; else ..; 146169
ConfusingTernary Avoid if (x != y) ..; else ..; 177184
ConfusingTernary Avoid if (x != y) ..; else ..; 215224
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 238
ShortVariable Avoid variables with short names like sb 241
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 242
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 245
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 251
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 255
ShortVariable Avoid variables with short names like sb 268
MissingOverride The method 'indexDocuments()' is missing an @Override annotation. 330382
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 334
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 341
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 343
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 348
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 361
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 374
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 436
ConfusingTernary Avoid if (x != y) ..; else ..; 454467

fr/paris/lutece/plugins/participatoryideation/service/campaign/IIdeationCampaignDataProvider.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'WHOLE_AREA': the field is declared in an interface type 49
CommentRequired Public method and constructor comments are required 57
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaigns': the method is declared in an interface type 57
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLastCampaign': the method is declared in an interface type 60
CommentRequired Public method and constructor comments are required 60
CommentRequired Public method and constructor comments are required 68
UnnecessaryModifier Unnecessary modifier 'public' on method 'isBeforeBeginning': the method is declared in an interface type 68
CommentRequired Public method and constructor comments are required 70
UnnecessaryModifier Unnecessary modifier 'public' on method 'isAfterBeginning': the method is declared in an interface type 70
UnnecessaryModifier Unnecessary modifier 'public' on method 'isDuring': the method is declared in an interface type 72
CommentRequired Public method and constructor comments are required 72
CommentRequired Public method and constructor comments are required 74
UnnecessaryModifier Unnecessary modifier 'public' on method 'isBeforeEnd': the method is declared in an interface type 74
UnnecessaryModifier Unnecessary modifier 'public' on method 'isAfterEnd': the method is declared in an interface type 76
CommentRequired Public method and constructor comments are required 76
CommentRequired Public method and constructor comments are required 79
UnnecessaryModifier Unnecessary modifier 'public' on method 'isBeforeBeginning': the method is declared in an interface type 79
CommentRequired Public method and constructor comments are required 81
UnnecessaryModifier Unnecessary modifier 'public' on method 'isAfterBeginning': the method is declared in an interface type 81
UnnecessaryModifier Unnecessary modifier 'public' on method 'isDuring': the method is declared in an interface type 83
CommentRequired Public method and constructor comments are required 83
CommentRequired Public method and constructor comments are required 85
UnnecessaryModifier Unnecessary modifier 'public' on method 'isBeforeEnd': the method is declared in an interface type 85
CommentRequired Public method and constructor comments are required 87
UnnecessaryModifier Unnecessary modifier 'public' on method 'isAfterEnd': the method is declared in an interface type 87
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignAllAreaLabels': the method is declared in an interface type 96
CommentRequired Public method and constructor comments are required 96
CommentRequired Public method and constructor comments are required 98
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignAllAreaTypes': the method is declared in an interface type 98
CommentRequired Public method and constructor comments are required 100
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignWholeAreaLabel': the method is declared in an interface type 100
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignLocalizedAreaLabels': the method is declared in an interface type 102
CommentRequired Public method and constructor comments are required 102
CommentRequired Public method and constructor comments are required 104
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignNumberLocalizedAreas': the method is declared in an interface type 104
CommentRequired Public method and constructor comments are required 108
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLastCampaignAllAreaLabels': the method is declared in an interface type 108
CommentRequired Public method and constructor comments are required 110
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLastCampaignAllAreaTypes': the method is declared in an interface type 110
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLastCampaignWholeAreaLabel': the method is declared in an interface type 112
CommentRequired Public method and constructor comments are required 112
CommentRequired Public method and constructor comments are required 114
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLastCampaignLocalizedAreaLabels': the method is declared in an interface type 114
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLastCampaignNumberLocalizedAreas': the method is declared in an interface type 116
CommentRequired Public method and constructor comments are required 116
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignSubmitterTypes': the method is declared in an interface type 124
CommentRequired Public method and constructor comments are required 124
CommentRequired Public method and constructor comments are required 132
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignThemes': the method is declared in an interface type 132
CommentRequired Public method and constructor comments are required 135
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLastCampaignThemes': the method is declared in an interface type 135
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignThemesFrontRgb': the method is declared in an interface type 138
CommentRequired Public method and constructor comments are required 138
CommentRequired Public method and constructor comments are required 150
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignFieldData': the method is declared in an interface type 150
CommentRequired Public method and constructor comments are required 153
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignFieldsData': the method is declared in an interface type 153

fr/paris/lutece/plugins/participatoryideation/service/campaign/IdeationCampaignDataProvider.java

Rule Violation Line
RedundantFieldInitializer Avoid using redundant field initializer for 'campaigns' 70
RedundantFieldInitializer Avoid using redundant field initializer for 'themeLabels' 76
RedundantFieldInitializer Avoid using redundant field initializer for 'themeFrontRgbs' 82
RedundantFieldInitializer Avoid using redundant field initializer for 'areaLabels' 88
RedundantFieldInitializer Avoid using redundant field initializer for 'areaTypes' 94
RedundantFieldInitializer Avoid using redundant field initializer for 'dates' 100
RedundantFieldInitializer Avoid using redundant field initializer for 'fields' 109
CommentRequired Public method and constructor comments are required 120128
NonThreadSafeSingleton Singleton is not thread safe 122126
ShortVariable Avoid variables with short names like c2 147
ShortVariable Avoid variables with short names like c1 147
AvoidDuplicateLiterals The String literal "Unexpected phase code '" appears 4 times in this file; the first occurrence is on line 166 166
CyclomaticComplexity The method 'loadProperties()' has a cyclomatic complexity of 17. 390525
NPathComplexity The method 'loadProperties()' has an NPath complexity of 2700 390525
ExcessiveMethodLength Avoid really long methods. 390525
NcssCount The method 'loadProperties()' has a NCSS line count of 78. 390525
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 404
AvoidDuplicateLiterals The String literal "The property '" appears 4 times in this file; the first occurrence is on line 406 406
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 430
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 462
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 490
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 507

fr/paris/lutece/plugins/participatoryideation/service/capgeo/QpvQvaService.java

Rule Violation Line
CommentRequired Header comments are required 50145
AvoidDuplicateLiterals The String literal "false" appears 6 times in this file; the first occurrence is on line 66 66
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 110
CommentRequired Public method and constructor comments are required 110143
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 113
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'features' 142

fr/paris/lutece/plugins/participatoryideation/service/fileimage/IdeationFileImageService.java

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 6770
MissingOverride The method 'getImageResource(int)' is missing an @Override annotation. 97116
UnconditionalIfStatement Do not use if statements that are always true or always false 99
MissingOverride The method 'getResourceTypeId()' is missing an @Override annotation. 123126

fr/paris/lutece/plugins/participatoryideation/service/myinfos/IMyInfosService.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'isUserValid': the method is declared in an interface type 44
CommentRequired Public method and constructor comments are required 44
CommentRequired Public method and constructor comments are required 48
UnnecessaryModifier Unnecessary modifier 'public' on method 'getUrlMyInfosFillAction': the method is declared in an interface type 48

fr/paris/lutece/plugins/participatoryideation/service/myinfos/MyInfosService.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 6067
NonThreadSafeSingleton Singleton is not thread safe 6265

fr/paris/lutece/plugins/participatoryideation/service/notify/TaskChangeProposalStatus.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'MESSAGE_UNPUBLISHED_PROPOSAL'. 71
UnusedPrivateField Avoid unused private fields such as 'MESSAGE_PUBLISHED_PROPOSAL'. 72

fr/paris/lutece/plugins/participatoryideation/service/notify/TaskNotifyIdeation.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34388
NPathComplexity The method 'processTask(int, HttpServletRequest, Locale)' has an NPath complexity of 87256 126387
ExcessiveMethodLength Avoid really long methods. 126387
NcssCount The method 'processTask(int, HttpServletRequest, Locale)' has a NCSS line count of 127. 126387
CyclomaticComplexity The method 'processTask(int, HttpServletRequest, Locale)' has a cyclomatic complexity of 49. 126387
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 170
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 170
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 191
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 192
AvoidDuplicateLiterals The String literal "[#ftl]\n[#setting date_format=\"dd/MM/yyyy\"]\n" appears 6 times in this file; the first occurrence is on line 240 240
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 246
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 269
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 320
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 338
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 358
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 377

fr/paris/lutece/plugins/participatoryideation/service/notify/TaskNotifyIdeationConfigService.java

Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 5255
UselessOverridingMethod Overriding method merely calls super 6164
UselessOverridingMethod Overriding method merely calls super 7073

fr/paris/lutece/plugins/participatoryideation/service/rest/AbstractRestBasedService.java

Rule Violation Line
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 55255
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 73
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 83
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 90
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 107
AvoidDuplicateLiterals The String literal "status" appears 4 times in this file; the first occurrence is on line 110 110
AvoidDuplicateLiterals The String literal "result" appears 6 times in this file; the first occurrence is on line 112 112
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 126
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 147
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 163
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 195
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 226
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 248

fr/paris/lutece/plugins/participatoryideation/service/subscription/IdeationSubscriptionProviderService.java

Rule Violation Line
NonThreadSafeSingleton Singleton is not thread safe 8491
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 112119
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 166
SimplifyBooleanReturns Avoid unnecessary if..then..else statements when returning booleans 225228
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 225
CommentRequired Public method and constructor comments are required 240251
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 256260

fr/paris/lutece/plugins/participatoryideation/util/CsvUtils.java

Rule Violation Line
CommentRequired Header comments are required 52202
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 53202
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 64
LinguisticNaming Linguistics Antipattern - The getter 'getValuesFromCsv' should not return void linguistically 74109
LinguisticNaming Linguistics Antipattern - The variable 'isCsvProperty' indicates linguistically it is a boolean, but it is 'InputStream' 77
UseProperClassLoader In J2EE, getClassLoader() might not work as expected. Use Thread.currentThread().getContextClassLoader() instead. 77
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 88
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 89
ShortVariable Avoid variables with short names like i 95
CommentRequired Public method and constructor comments are required 111119
CommentRequired Public method and constructor comments are required 121129
CyclomaticComplexity The method 'writeCsv(String, List, OutputStream, Locale)' has a cyclomatic complexity of 10. 142201
UseProperClassLoader In J2EE, getClassLoader() might not work as expected. Use Thread.currentThread().getContextClassLoader() instead. 147
LinguisticNaming Linguistics Antipattern - The variable 'isCsvProperty' indicates linguistically it is a boolean, but it is 'InputStream' 147
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 158
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 180
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 181184

fr/paris/lutece/plugins/participatoryideation/util/ProposalExportUtils.java

Rule Violation Line
CommentRequired Header comments are required 39101
ConfusingTernary Avoid if (x != y) ..; else ..; 8794

fr/paris/lutece/plugins/participatoryideation/web/DownloadServlet.java

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

fr/paris/lutece/plugins/participatoryideation/web/IdeationApp.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 341476
ExcessiveClassLength Avoid really long classes. 1081476
GodClass Possible God Class (WMC=97, ATFD=173, TCC=22.942%) 1081476
CyclomaticComplexity The class 'IdeationApp' has a total cyclomatic complexity of 97 (highest 22). 1081476
TooManyMethods This class has too many methods, consider refactoring it. 1091476
AvoidDuplicateLiterals The String literal "true" appears 4 times in this file; the first occurrence is on line 146 146
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _formEtapeLocation field if you want a default access modifier 226
DefaultPackage Use explicit scoping instead of the default package private level 226
DefaultPackage Use explicit scoping instead of the default package private level 227
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _formEtapeTitle field if you want a default access modifier 227
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _formEtapeApprox field if you want a default access modifier 228
DefaultPackage Use explicit scoping instead of the default package private level 228
DefaultPackage Use explicit scoping instead of the default package private level 229
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _formEtapeDescription field if you want a default access modifier 229
DefaultPackage Use explicit scoping instead of the default package private level 230
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _formEtapeUpload field if you want a default access modifier 230
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _formEtapeRecap field if you want a default access modifier 231
DefaultPackage Use explicit scoping instead of the default package private level 231
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _proposalCreate field if you want a default access modifier 233
DefaultPackage Use explicit scoping instead of the default package private level 233
DefaultPackage Use explicit scoping instead of the default package private level 234
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _proposalDisplay field if you want a default access modifier 234
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _strNextStep field if you want a default access modifier 235
DefaultPackage Use explicit scoping instead of the default package private level 235
CallSuperInConstructor It is a good practice to call super() in a constructor 242245
CommentRequired Public method and constructor comments are required 242245
CyclomaticComplexity The method 'getPage(HttpServletRequest, int, Plugin)' has a cyclomatic complexity of 13. 253308
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 255
CollapsibleIfStatements These nested if statements could be combined 301304
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 350
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 371
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 387
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 408
CyclomaticComplexity The method 'viewApprox(HttpServletRequest)' has a cyclomatic complexity of 14. 409483
NPathComplexity The method 'viewApprox(HttpServletRequest)' has an NPath complexity of 202 409483
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 424
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 427
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 436
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 507
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'strGeofiltFq' 533
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 557
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 570
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 578
AvoidDuplicateLiterals The String literal "IdeationApp: error during approx search; " appears 6 times in this file; the first occurrence is on line 588 588
IdenticalCatchBranches 'catch' branch identical to 'SolrServerException' branch 590593
NPathComplexity The method 'getKeywordApproxResults(SolrQuery, SolrClient)' has an NPath complexity of 8448 606735
CyclomaticComplexity The method 'getKeywordApproxResults(SolrQuery, SolrClient)' has a cyclomatic complexity of 22. 606735
NcssCount The method 'getKeywordApproxResults(SolrQuery, SolrClient)' has a NCSS line count of 62. 606735
ExcessiveMethodLength Avoid really long methods. 606735
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 613
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 627
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 647
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 676
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 680
IdenticalCatchBranches 'catch' branch identical to 'SolrServerException' branch 730733
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 762
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 778
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 781
IdenticalCatchBranches 'catch' branch identical to 'SolrServerException' branch 802805
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 817
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 831
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 845
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 861
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 883
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 902
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 938
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 954
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 1001
UnusedFormalParameter Avoid unused method parameters such as 'request'. 1024
ConfusingTernary Avoid if (x != y) ..; else ..; 10311048
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 1040
CommentRequired Protected method constructor comments are required 11321140
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 1165
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1174
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 1174
DefaultPackage Use explicit scoping instead of the default package private level 12031237
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the isValidateFormEtape method if you want a default access modifier 12031237
DefaultPackage Use explicit scoping instead of the default package private level 12391244
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the isAllEtapeValidated method if you want a default access modifier 12391244
NcssCount The method 'convertFormEtapeLocation(FormEtapeLocation, Proposal)' has a NCSS line count of 73. 12461363
ExcessiveMethodLength Avoid really long methods. 12461363
CyclomaticComplexity The method 'convertFormEtapeLocation(FormEtapeLocation, Proposal)' has a cyclomatic complexity of 14. 12461363
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1273
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 1325
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 1424
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 1458
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'STEPS(String)': enum constructors are implicitly private 14651468
CommentRequired Public method and constructor comments are required 14701473

fr/paris/lutece/plugins/participatoryideation/web/ManageIdeationJspBean.java

Rule Violation Line
SingularField Perhaps '_nDefaultItemsPerPage' could be replaced by a local variable. 64
AddEmptyString Do not add empty strings 95

fr/paris/lutece/plugins/participatoryideation/web/ManageIdeationProposalsJspBean.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 57136
SingularField Perhaps '_nDefaultItemsPerPage' could be replaced by a local variable. 71
AddEmptyString Do not add empty strings 102
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 119
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 125
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 125

fr/paris/lutece/plugins/participatoryideation/web/ManageProposalLinksJspBean.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 5098
SingularField Perhaps '_nDefaultItemsPerPage' could be replaced by a local variable. 61
AddEmptyString Do not add empty strings 92

fr/paris/lutece/plugins/participatoryideation/web/ProposalBoForm.java

Rule Violation Line
CommentRequired Header comments are required 36261
CommentRequired Public method and constructor comments are required 127130
CommentRequired Public method and constructor comments are required 132135
CommentRequired Public method and constructor comments are required 221224
CommentRequired Public method and constructor comments are required 226229
CommentRequired Public method and constructor comments are required 231234
CommentRequired Public method and constructor comments are required 236239
CommentRequired Public method and constructor comments are required 241244
CommentRequired Public method and constructor comments are required 246249
CommentRequired Public method and constructor comments are required 251254
CommentRequired Public method and constructor comments are required 256259

fr/paris/lutece/plugins/participatoryideation/web/ProposalJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 341129
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 831129
ExcessiveClassLength Avoid really long classes. 831129
NPathComplexity The method 'getManageProposals(HttpServletRequest)' has an NPath complexity of 10250 214308
CyclomaticComplexity The method 'getManageProposals(HttpServletRequest)' has a cyclomatic complexity of 16. 214308
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 216
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 217
ConfusingTernary Avoid if (x != y) ..; else ..; 218
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 293
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 294
AddEmptyString Do not add empty strings 297
AddEmptyString Do not add empty strings 299
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 322
NcssCount The method 'doSearchProposal(HttpServletRequest)' has a NCSS line count of 64. 323461
NPathComplexity The method 'doSearchProposal(HttpServletRequest)' has an NPath complexity of 118098 323461
CyclomaticComplexity The method 'doSearchProposal(HttpServletRequest)' has a cyclomatic complexity of 22. 323461
ExcessiveMethodLength Avoid really long methods. 323461
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 470
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 473
CommentRequired Public method and constructor comments are required 486496
CommentRequired Public method and constructor comments are required 499530
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 501
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 509
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 509
CyclomaticComplexity The method 'doCreateProposal(HttpServletRequest)' has a cyclomatic complexity of 15. 533650
CommentRequired Public method and constructor comments are required 533650
NcssCount The method 'doCreateProposal(HttpServletRequest)' has a NCSS line count of 66. 533650
NPathComplexity The method 'doCreateProposal(HttpServletRequest)' has an NPath complexity of 486 533650
ExcessiveMethodLength Avoid really long methods. 533650
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 572
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 624
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 646
ConfusingTernary Avoid if (x != y) ..; else ..; 682689
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 732
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 788
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 788
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 822
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 822
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 857
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 862
ShortVariable Avoid variables with short names like os 935
CyclomaticComplexity The method 'copyProposalBoFormToProposal(ProposalBoForm, Proposal)' has a cyclomatic complexity of 14. 9581051
NPathComplexity The method 'copyProposalBoFormToProposal(ProposalBoForm, Proposal)' has an NPath complexity of 2560 9581051
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 1119

fr/paris/lutece/plugins/participatoryideation/web/ProposalLinksJspBean.java

Rule Violation Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 160
ConfusingTernary Avoid if (x != y) ..; else ..; 161
ConfusingTernary Avoid if (x != y) ..; else ..; 205
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 287
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 287
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 288
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 452
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 511
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 514
UnusedFormalParameter Avoid unused method parameters such as 'request'. 548

fr/paris/lutece/plugins/participatoryideation/web/ProposalSubscriberXPage.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34333
ImmutableField Private field '_resourceExtenderHistoryService' could be made final; it is only initialized in the declaration or constructor. 121
ControlStatementBraces This statement should have braces 138
UseUnderscoresInNumericLiterals Number 10000 should separate every third digit with an underscore 150
UnusedLocalVariable Avoid unused local variables such as 'wrapper'. 169
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 169
ControlStatementBraces This statement should have braces 194
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 234
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 234
NonThreadSafeSingleton Singleton is not thread safe 266269
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 282
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 283
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 313

fr/paris/lutece/plugins/participatoryideation/web/ProposalSubscriptionXPage.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 61167
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 91
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 120
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 140148

fr/paris/lutece/plugins/participatoryideation/web/ProposalXPage.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34373
AvoidDuplicateLiterals The String literal "proposal" appears 4 times in this file; the first occurrence is on line 76 76
NPathComplexity The method 'getViewProposal(HttpServletRequest)' has an NPath complexity of 576 145236
CyclomaticComplexity The method 'getViewProposal(HttpServletRequest)' has a cyclomatic complexity of 16. 145236
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 155
ConfusingTernary Avoid if (x != y) ..; else ..; 159166
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 165
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 168
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 170
CollapsibleIfStatements These nested if statements could be combined 176179
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 220223
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 238
CommentRequired Public method and constructor comments are required 239339
ExcessiveMethodLength Avoid really long methods. 239339
NPathComplexity The method 'doContacterSubmitter(HttpServletRequest)' has an NPath complexity of 2304 239339
CyclomaticComplexity The method 'doContacterSubmitter(HttpServletRequest)' has a cyclomatic complexity of 15. 239339
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 250
ConfusingTernary Avoid if (x != y) ..; else ..; 254261
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 260
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 263
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 263
AddEmptyString Do not add empty strings 265
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 285
ConfusingTernary Avoid if (x != y) ..; else ..; 285
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 288
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 291
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 291
ShortVariable Avoid variables with short names like t 313
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 316
ConfusingTernary Avoid if (x != y) ..; else ..; 325336
ConfusingTernary Avoid if (x != y) ..; else ..; 365
AddEmptyString Do not add empty strings 365

fr/paris/lutece/plugins/participatoryideation/web/ProposalsXpage.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 81144
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 106
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 116
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 127

fr/paris/lutece/plugins/participatoryideation/web/SubmitterJspBean.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 54245
UnusedPrivateField Avoid unused private fields such as 'PROPERTY_DEFAULT_LIST_SUBMITTER_PER_PAGE'. 81
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 114
ConfusingTernary Avoid if (x != y) ..; else ..; 131

fr/paris/lutece/plugins/participatoryideation/web/SubmitterTypeJspBean.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 54245
UnusedPrivateField Avoid unused private fields such as 'PROPERTY_DEFAULT_LIST_SUBMITTER_PER_PAGE'. 81
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 114
ConfusingTernary Avoid if (x != y) ..; else ..; 131

fr/paris/lutece/plugins/participatoryideation/web/etape/AbstractFormEtape.java

Rule Violation Line
CommentRequired Header comments are required 4369
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _bValidated field if you want a default access modifier 46
DefaultPackage Use explicit scoping instead of the default package private level 46
MissingOverride The method 'isValidated()' is missing an @Override annotation. 6063
CommentRequired Public method and constructor comments are required 6063
CommentRequired Public method and constructor comments are required 6568
MissingOverride The method 'setValidated(boolean)' is missing an @Override annotation. 6568

fr/paris/lutece/plugins/participatoryideation/web/etape/FormEtapeApprox.java

Rule Violation Line
CommentRequired Header comments are required 3639

fr/paris/lutece/plugins/participatoryideation/web/etape/FormEtapeDescription.java

Rule Violation Line
CommentRequired Header comments are required 55271
UnusedPrivateField Avoid unused private fields such as 'I18N_ERROR_FIELD4_COMPLEMENT_MIN_LENGTH'. 68
UnusedPrivateField Avoid unused private fields such as 'I18N_ERROR_FIELD4_COMPLEMENT_MAX_LENGTH'. 69
UnusedPrivateField Avoid unused private fields such as 'DSKEY_FIELD4_COMPLEMENT_MIN_LENGTH'. 73
UnusedPrivateField Avoid unused private fields such as 'DSKEY_FIELD4_COMPLEMENT_MAX_LENGTH'. 74
UseUnderscoresInNumericLiterals Number 10000 should separate every third digit with an underscore 77
CommentRequired Public method and constructor comments are required 8487
CommentRequired Public method and constructor comments are required 8992
CommentRequired Public method and constructor comments are required 9699
CommentRequired Public method and constructor comments are required 101104
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 108
CommentRequired Public method and constructor comments are required 110113
CommentRequired Public method and constructor comments are required 115118
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 122
CommentRequired Public method and constructor comments are required 124127
CommentRequired Public method and constructor comments are required 129132
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 136
CommentRequired Public method and constructor comments are required 138141
CommentRequired Public method and constructor comments are required 143146
NPathComplexity The method 'checkValidationErrorsLocalized(HttpServletRequest, Proposal, Locale)' has an NPath complexity of 4992 151269
CyclomaticComplexity The method 'checkValidationErrorsLocalized(HttpServletRequest, Proposal, Locale)' has a cyclomatic complexity of 23. 151269
ExcessiveMethodLength Avoid really long methods. 151269
UnusedLocalVariable Avoid unused local variables such as 'userUid'. 154
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 164
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 184
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 214
AddEmptyString Do not add empty strings 225
AddEmptyString Do not add empty strings 232
CollapsibleIfStatements These nested if statements could be combined 241265
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 243
AddEmptyString Do not add empty strings 254
AddEmptyString Do not add empty strings 261

fr/paris/lutece/plugins/participatoryideation/web/etape/FormEtapeLocation.java

Rule Violation Line
CommentRequired Header comments are required 52238
UnusedPrivateField Avoid unused private fields such as 'I18N_ERROR_ADRESS_FORMAT'. 56
UnusedPrivateField Avoid unused private fields such as 'I18N_ERROR_ADRESS_NOT_VALID'. 57
UnusedPrivateField Avoid unused private fields such as 'I18N_ERROR_ADRESS_ARDT_MISMATCH'. 58
CommentRequired Public method and constructor comments are required 99102
CommentRequired Public method and constructor comments are required 104107
CommentRequired Public method and constructor comments are required 130133
CommentRequired Public method and constructor comments are required 135138
CommentRequired Public method and constructor comments are required 203206
CommentRequired Public method and constructor comments are required 208211
CommentRequired Public method and constructor comments are required 213216
CommentRequired Public method and constructor comments are required 218221
CommentRequired Public method and constructor comments are required 223226
CommentRequired Public method and constructor comments are required 228231
CommentRequired Public method and constructor comments are required 233237

fr/paris/lutece/plugins/participatoryideation/web/etape/FormEtapeRecap.java

Rule Violation Line
CommentRequired Header comments are required 3657

fr/paris/lutece/plugins/participatoryideation/web/etape/FormEtapeTitle.java

Rule Violation Line
CommentRequired Header comments are required 52217
CommentRequired Public method and constructor comments are required 7780
CommentRequired Public method and constructor comments are required 8285
CommentRequired Public method and constructor comments are required 8790
CommentRequired Public method and constructor comments are required 9295
CommentRequired Public method and constructor comments are required 97100
CommentRequired Public method and constructor comments are required 102105
NPathComplexity The method 'checkValidationErrorsLocalized(HttpServletRequest, Proposal, Locale)' has an NPath complexity of 2304 108215
CyclomaticComplexity The method 'checkValidationErrorsLocalized(HttpServletRequest, Proposal, Locale)' has a cyclomatic complexity of 21. 108215
ExcessiveMethodLength Avoid really long methods. 108215
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 115
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 134
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 163
AddEmptyString Do not add empty strings 174
AddEmptyString Do not add empty strings 181
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 190
AddEmptyString Do not add empty strings 201
AddEmptyString Do not add empty strings 208

fr/paris/lutece/plugins/participatoryideation/web/etape/FormEtapeUpload.java

Rule Violation Line
CommentRequired Header comments are required 45117
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _ideationUploadHandler field if you want a default access modifier 52
DefaultPackage Use explicit scoping instead of the default package private level 52
CommentRequired Public method and constructor comments are required 5457
CommentRequired Public method and constructor comments are required 5962
CommentRequired Public method and constructor comments are required 6471
AvoidDuplicateLiterals The String literal "participatoryideation.ProposalAsynchronousHandler" appears 4 times in this file; the first occurrence is on line 68 68
CommentRequired Public method and constructor comments are required 7380
CommentRequired Public method and constructor comments are required 8289

fr/paris/lutece/plugins/participatoryideation/web/etape/IFormEtape.java

Rule Violation Line
CommentRequired Header comments are required 4353
CommentRequired Public method and constructor comments are required 46
CommentRequired Public method and constructor comments are required 48
CommentRequired Public method and constructor comments are required 50
CommentRequired Public method and constructor comments are required 52

fr/paris/lutece/plugins/participatoryideation/web/include/HeaderInclude.java

Rule Violation Line
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 114
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 114
UseUnderscoresInNumericLiterals Number 10000 should separate every third digit with an underscore 137
NonThreadSafeSingleton Singleton is not thread safe 167170
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 183
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 184
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 214

fr/paris/lutece/plugins/participatoryideation/web/notify/ChangeProposalStatusTaskComponent.java

Rule Violation Line
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 132
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 132

fr/paris/lutece/plugins/participatoryideation/web/notify/NotifyIdeationTaskComponent.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 152
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 152

Priority 4

fr/paris/lutece/plugins/participatoryideation/business/link/Link.java

Rule Violation Line
ShortClassName Avoid short class names like Link 41161

fr/paris/lutece/plugins/participatoryideation/business/proposal/Proposal.java

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

fr/paris/lutece/plugins/participatoryideation/web/etape/FormEtapeLocation.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'java.util.Locale' 38
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.security.LuteceUser' 49
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.security.SecurityService' 50

Files

fr/paris/lutece/plugins/participatoryideation/business/capgeo/QpvQva.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 36146
DefaultPackage Use explicit scoping instead of the default package private level 3 38
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _strType field if you want a default access modifier 3 38
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _strId field if you want a default access modifier 3 39
DefaultPackage Use explicit scoping instead of the default package private level 3 39
DefaultPackage Use explicit scoping instead of the default package private level 3 40
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _strLibelle field if you want a default access modifier 3 40
DefaultPackage Use explicit scoping instead of the default package private level 3 41
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _strGpruNom field if you want a default access modifier 3 41
DefaultPackage Use explicit scoping instead of the default package private level 3 42
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _strExtBp field if you want a default access modifier 3 42
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _strFid field if you want a default access modifier 3 43
DefaultPackage Use explicit scoping instead of the default package private level 3 43

fr/paris/lutece/plugins/participatoryideation/business/capgeo/QpvQvaRestResponse.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 81119
DataClass The class 'QpvQvaRestResponse' is suspected to be a Data Class (WOC=0.000%, NOPA=7, NOAM=1, WMC=1) 3 81119
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _features field if you want a default access modifier 3 91
DefaultPackage Use explicit scoping instead of the default package private level 3 91
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 96

fr/paris/lutece/plugins/participatoryideation/business/link/Link.java

Rule Violation Priority Line
ShortClassName Avoid short class names like Link 4 41161
DataClass The class 'Link' is suspected to be a Data Class (WOC=11.111%, NOPA=0, NOAM=16, WMC=18) 3 41161
CommentRequired Public method and constructor comments are required 3 6063
FormalParameterNamingConventions The method parameter name '_nId' doesn't match '[a-z][a-zA-Z0-9]*' 1 65
CommentRequired Public method and constructor comments are required 3 6568
FormalParameterNamingConventions The method parameter name '_parentId' doesn't match '[a-z][a-zA-Z0-9]*' 1 75
FormalParameterNamingConventions The method parameter name '_childId' doesn't match '[a-z][a-zA-Z0-9]*' 1 85
FormalParameterNamingConventions The method parameter name '_parentCodeCampaign' doesn't match '[a-z][a-zA-Z0-9]*' 1 95
FormalParameterNamingConventions The method parameter name '_childCodeCampaign' doesn't match '[a-z][a-zA-Z0-9]*' 1 105
FormalParameterNamingConventions The method parameter name '_parentCodeProposal' doesn't match '[a-z][a-zA-Z0-9]*' 1 115
FormalParameterNamingConventions The method parameter name '_childCodeProposal' doesn't match '[a-z][a-zA-Z0-9]*' 1 125
FormalParameterNamingConventions The method parameter name '_parentTitle' doesn't match '[a-z][a-zA-Z0-9]*' 1 135
FormalParameterNamingConventions The method parameter name '_childTitle' doesn't match '[a-z][a-zA-Z0-9]*' 1 145

fr/paris/lutece/plugins/participatoryideation/business/link/LinkDAO.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 226
ConfusingTernary Avoid if (x != y) ..; else ..; 3 228
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'result' 3 245
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 149 characters appended. 3 280
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 60 characters appended. 3 284

fr/paris/lutece/plugins/participatoryideation/business/link/LinkSearcher.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 5154
CommentRequired Public method and constructor comments are required 3 5659
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

fr/paris/lutece/plugins/participatoryideation/business/notify/TaskChangeProposalStatusConfigDAO.java

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

fr/paris/lutece/plugins/participatoryideation/business/notify/TaskNotifyIdeationConfigDAO.java

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

fr/paris/lutece/plugins/participatoryideation/business/proposal/IProposalDAO.java

Rule Violation Priority Line
LinguisticNaming Linguistics Antipattern - The method 'hasParent' indicates linguistically it returns a boolean, but it returns 'int' 3 128

fr/paris/lutece/plugins/participatoryideation/business/proposal/Proposal.java

Rule Violation Priority Line
ExcessivePublicCount This class has a bunch of public methods and attributes 3 34914
CyclomaticComplexity The class 'Proposal' has a total cyclomatic complexity of 85 (highest 2). 3 53914
TooManyFields Too many fields 3 53914
FieldNamingConventions The constant name 'valueMap' doesn't match '[A-Z][A-Z_0-9]*' 1 129
FieldNamingConventions The constant name 'listStatusPublished' doesn't match '[A-Z][A-Z_0-9]*' 1 130
FieldNamingConventions The constant name 'listStatusUnPublished' doesn't match '[A-Z][A-Z_0-9]*' 1 131
CommentRequired Public method and constructor comments are required 3 150153
CommentRequired Public method and constructor comments are required 3 155158
CommentRequired Public method and constructor comments are required 3 160163
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 165
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 166
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 167
CommentRequired Public method and constructor comments are required 3 176179
CommentRequired Public method and constructor comments are required 3 181184
CommentRequired Public method and constructor comments are required 3 186189
CommentRequired Public method and constructor comments are required 3 228231
FormalParameterNamingConventions The method parameter name '_dLatitude' doesn't match '[a-z][a-zA-Z0-9]*' 1 233
CommentRequired Public method and constructor comments are required 3 233236
CommentRequired Public method and constructor comments are required 3 322325
CommentRequired Public method and constructor comments are required 3 327330
FormalParameterNamingConventions The method parameter name '_strField4' doesn't match '[a-z][a-zA-Z0-9]*' 1 327
CommentRequired Public method and constructor comments are required 3 332335
CommentRequired Public method and constructor comments are required 3 337340
FormalParameterNamingConventions The method parameter name '_strField4Complement' doesn't match '[a-z][a-zA-Z0-9]*' 1 337
FormalParameterNamingConventions The method parameter name '_nCout' doesn't match '[a-z][a-zA-Z0-9]*' 1 463
CommentRequired Public method and constructor comments are required 3 468471
CommentRequired Public method and constructor comments are required 3 473476
FormalParameterNamingConventions The method parameter name '_strLocationType' doesn't match '[a-z][a-zA-Z0-9]*' 1 473
CommentRequired Public method and constructor comments are required 3 478481
FormalParameterNamingConventions The method parameter name '_strAdress' doesn't match '[a-z][a-zA-Z0-9]*' 1 483
CommentRequired Public method and constructor comments are required 3 483486
CommentRequired Public method and constructor comments are required 3 488491
FormalParameterNamingConventions The method parameter name '_strLocationArdt' doesn't match '[a-z][a-zA-Z0-9]*' 1 493
CommentRequired Public method and constructor comments are required 3 493496
CommentRequired Public method and constructor comments are required 3 498501
CommentRequired Public method and constructor comments are required 3 503506
FormalParameterNamingConventions The method parameter name '_strSubmitterType' doesn't match '[a-z][a-zA-Z0-9]*' 1 503
CommentRequired Public method and constructor comments are required 3 508511
CommentRequired Public method and constructor comments are required 3 513516
FormalParameterNamingConventions The method parameter name '_dLongitude' doesn't match '[a-z][a-zA-Z0-9]*' 1 513
CommentRequired Public method and constructor comments are required 3 518521
FormalParameterNamingConventions The method parameter name '_bAcceptExploit' doesn't match '[a-z][a-zA-Z0-9]*' 1 523
CommentRequired Public method and constructor comments are required 3 523526
CommentRequired Public method and constructor comments are required 3 528531
CommentRequired Public method and constructor comments are required 3 533536
CommentRequired Public method and constructor comments are required 3 538541
CommentRequired Public method and constructor comments are required 3 543546
FormalParameterNamingConventions The method parameter name '_strSubmitter' doesn't match '[a-z][a-zA-Z0-9]*' 1 543
FormalParameterNamingConventions The method parameter name '_creationTimestamp' doesn't match '[a-z][a-zA-Z0-9]*' 1 708
CommentRequired Public method and constructor comments are required 3 803806
CommentRequired Public method and constructor comments are required 3 828831
FormalParameterNamingConventions The method parameter name '_strMotifRecev' doesn't match '[a-z][a-zA-Z0-9]*' 1 833
CommentRequired Public method and constructor comments are required 3 833836
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 884888
FormalParameterNamingConventions The method parameter name '_strCodeCampaign' doesn't match '[a-z][a-zA-Z0-9]*' 1 909

fr/paris/lutece/plugins/participatoryideation/business/proposal/ProposalDAO.java

Rule Violation Priority Line
GodClass Possible God Class (WMC=70, ATFD=130, TCC=0.265%) 3 60991
TooManyMethods This class has too many methods, consider refactoring it. 3 61991
ConfusingTernary Avoid if (x != y) ..; else ..; 3 160167
ConfusingTernary Avoid if (x != y) ..; else ..; 3 178185
ConfusingTernary Avoid if (x != y) ..; else ..; 3 187194
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 202
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 203
ShortVariable Avoid variables with short names like id 3 224
ShortVariable Avoid variables with short names like id 3 229
ShortVariable Avoid variables with short names like id 3 258
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 335
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 336
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 383
AvoidReassigningParameters Avoid reassigning parameters such as 'nCpt' 2 407
AvoidReassigningParameters Avoid reassigning parameters such as 'nCpt' 2 407
AvoidReassigningParameters Avoid reassigning parameters such as 'nCpt' 2 407
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 428
ConfusingTernary Avoid if (x != y) ..; else ..; 3 447454
ConfusingTernary Avoid if (x != y) ..; else ..; 3 456463
ConfusingTernary Avoid if (x != y) ..; else ..; 3 477485
ExcessiveMethodLength Avoid really long methods. 3 512613
NPathComplexity The method 'selectProposalsListSearch(Plugin, ProposalSearcher)' has an NPath complexity of 6480 3 512613
CyclomaticComplexity The method 'selectProposalsListSearch(Plugin, ProposalSearcher)' has a cyclomatic complexity of 18. 3 512613
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 514
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 516
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 543
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 611
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'result' 3 612
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 621
NcssCount The method 'appendFilters(String, ProposalSearcher)' has a NCSS line count of 68. 3 700832
NPathComplexity The method 'appendFilters(String, ProposalSearcher)' has an NPath complexity of 2211840 3 700832
ExcessiveMethodLength Avoid really long methods. 3 700832
CyclomaticComplexity The method 'appendFilters(String, ProposalSearcher)' has a cyclomatic complexity of 26. 3 700832
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 6 consecutive times with literals. Use a single append with a single combined String. 3 728
AvoidDuplicateLiterals The String literal " proposals.type_nqpv_qva != ? AND" appears 6 times in this file; the first occurrence is on line 728 3 728
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 415 characters appended. 3 775
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 788
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 794
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 807
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 817
NPathComplexity The method 'setFilterValues(DAOUtil, ProposalSearcher)' has an NPath complexity of 2304 3 842908
CyclomaticComplexity The method 'setFilterValues(DAOUtil, ProposalSearcher)' has a cyclomatic complexity of 13. 3 842908
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 32 characters appended. 3 912
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 916
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 3 918
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 918
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 919
UnusedPrivateMethod Avoid unused private methods such as 'insertLink(int,int,Plugin)'. 3 955

fr/paris/lutece/plugins/participatoryideation/business/proposal/ProposalHome.java

Rule Violation Priority Line
LinguisticNaming Linguistics Antipattern - The method 'hasParent' indicates linguistically it returns a boolean, but it returns 'int' 3 160163
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 247
LocalVariableNamingConventions The local variable name '_ids' doesn't match '[a-z][a-zA-Z0-9]*' 1 247
LocalVariableNamingConventions The local variable name '_proposal' doesn't match '[a-z][a-zA-Z0-9]*' 1 253
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 259264
LocalVariableNamingConventions The local variable name '_newMethod' doesn't match '[a-z][a-zA-Z0-9]*' 1 261
LocalVariableNamingConventions The local variable name '_nIds' doesn't match '[a-z][a-zA-Z0-9]*' 1 280
LocalVariableNamingConventions The local variable name '_proposal' doesn't match '[a-z][a-zA-Z0-9]*' 1 284
SwitchStmtsShouldHaveDefault Switch statements should have a default label 3 288302
ShortVariable Avoid variables with short names like s 3 306
CyclomaticComplexity The method 'getSubProposalsNicknamesNiceText(int, GetSubProposalsMethod, String)' has a cyclomatic complexity of 23. 3 313380
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 316
LocalVariableNamingConventions The local variable name '_nIds' doesn't match '[a-z][a-zA-Z0-9]*' 1 318
SwitchStmtsShouldHaveDefault Switch statements should have a default label 3 327341
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 352
ControlStatementBraces This statement should have braces 3 363364
ControlStatementBraces This statement should have braces 3 367368
ControlStatementBraces This statement should have braces 3 371372

fr/paris/lutece/plugins/participatoryideation/business/proposal/ProposalSearcher.java

Rule Violation Priority Line
FormalParameterNamingConventions The method parameter name 'CodeCampaign' doesn't match '[a-z][a-zA-Z0-9]*' 1 77
FormalParameterNamingConventions The method parameter name 'CodeTheme' doesn't match '[a-z][a-zA-Z0-9]*' 1 94
CommentRequired Public method and constructor comments are required 3 172175
CommentRequired Public method and constructor comments are required 3 177180
FormalParameterNamingConventions The method parameter name '_strLuteceUserName' doesn't match '[a-z][a-zA-Z0-9]*' 1 230
CommentRequired Public method and constructor comments are required 3 290293
CommentRequired Public method and constructor comments are required 3 295298
FormalParameterNamingConventions The method parameter name '_bIsPublished' doesn't match '[a-z][a-zA-Z0-9]*' 1 295

fr/paris/lutece/plugins/participatoryideation/business/submitter/SubmitterDAO.java

Rule Violation Priority Line
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 220

fr/paris/lutece/plugins/participatoryideation/business/submitter/SubmitterTypeDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 51359
ConfusingTernary Avoid if (x != y) ..; else ..; 3 282
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 331
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 347

fr/paris/lutece/plugins/participatoryideation/service/ExtendableCommentRatingListener.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 47106

fr/paris/lutece/plugins/participatoryideation/service/IIdeationStaticService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3859
UnnecessaryModifier Unnecessary modifier 'public' on method 'fillCampaignStaticContent': the method is declared in an interface type 3 49
UnnecessaryModifier Unnecessary modifier 'public' on method 'fillAllStaticContent': the method is declared in an interface type 3 57

fr/paris/lutece/plugins/participatoryideation/service/IProposalService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4395
CommentRequired Public method and constructor comments are required 3 46
CommentRequired Public method and constructor comments are required 3 48
CommentRequired Public method and constructor comments are required 3 50
CommentRequired Public method and constructor comments are required 3 52
CommentRequired Public method and constructor comments are required 3 64
CommentRequired Public method and constructor comments are required 3 66
CommentRequired Public method and constructor comments are required 3 68
CommentRequired Public method and constructor comments are required 3 70
CommentRequired Public method and constructor comments are required 3 72
CommentRequired Public method and constructor comments are required 3 74
UnnecessaryModifier Unnecessary modifier 'public' on method 'getUniqueUserGuidsProposalsSubmitters': the method is declared in an interface type 3 88
UnnecessaryModifier Unnecessary modifier 'public' on method 'getUniqueUserGuidsProposalsFollowers': the method is declared in an interface type 3 93

fr/paris/lutece/plugins/participatoryideation/service/IProposalUsersService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3639

fr/paris/lutece/plugins/participatoryideation/service/IProposalWSService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 43117
UnnecessaryModifier Unnecessary modifier 'public' on method 'getProposalsList': the method is declared in an interface type 3 51
UnnecessaryModifier Unnecessary modifier 'public' on method 'getProposalsListSearch': the method is declared in an interface type 3 75
UnnecessaryModifier Unnecessary modifier 'public' on method 'updateProposal': the method is declared in an interface type 3 84
UnnecessaryModifier Unnecessary modifier 'public' on method 'updateProposal': the method is declared in an interface type 3 86
CommentRequired Public method and constructor comments are required 3 86
UnnecessaryModifier Unnecessary modifier 'public' on method 'updateProposal': the method is declared in an interface type 3 88
CommentRequired Public method and constructor comments are required 3 88
UnnecessaryModifier Unnecessary modifier 'public' on method 'createComment': the method is declared in an interface type 3 95

fr/paris/lutece/plugins/participatoryideation/service/IdeationErrorException.java

Rule Violation Priority Line
CallSuperInConstructor It is a good practice to call super() in a constructor 3 5255
ConstructorCallsOverridableMethod Overridable method 'setErrorCode' called during object construction 1 54

fr/paris/lutece/plugins/participatoryideation/service/IdeationSessionListener.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like se 3 50
ShortVariable Avoid variables with short names like se 3 59

fr/paris/lutece/plugins/participatoryideation/service/IdeationSolrAddon.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 53145
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 93
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 94
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 104
ShortVariable Avoid variables with short names like h 3 104
UseIndexOfChar String.indexOf(char) is faster than String.indexOf(String). 3 136

fr/paris/lutece/plugins/participatoryideation/service/IdeationStaticService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 56267
CommentRequired Public method and constructor comments are required 3 98105
NonThreadSafeSingleton Singleton is not thread safe 3 100103
CommentRequired Public method and constructor comments are required 3 107110
CallSuperInConstructor It is a good practice to call super() in a constructor 3 107110
CommentRequired Public method and constructor comments are required 3 112115
MissingOverride The method 'getName()' is missing an @Override annotation. 3 112115
MissingOverride The method 'fillCampaignStaticContent(Map, String)' is missing an @Override annotation. 3 125164
LocalVariableNamingConventions The local variable name 'WorkflowStatesReferenceList' doesn't match '[a-z][a-zA-Z0-9]*' 1 144
MissingOverride The method 'fillAllStaticContent(Map)' is missing an @Override annotation. 3 174195
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 207
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 207
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 214
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 214
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 235
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 235
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 243
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 243

fr/paris/lutece/plugins/participatoryideation/service/IdeationUploadHandler.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 55273
UseUnderscoresInNumericLiterals Number 2097152 should separate every third digit with an underscore 3 76
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 81
CyclomaticComplexity The method 'canUploadFiles(HttpServletRequest, String, List, Locale)' has a cyclomatic complexity of 12. 3 122186
NPathComplexity The method 'canUploadFiles(HttpServletRequest, String, List, Locale)' has an NPath complexity of 264 3 122186
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 124
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 125126
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 129
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 248
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 258

fr/paris/lutece/plugins/participatoryideation/service/ProposalCommentListener.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 51191
PositionLiteralsFirstInComparisons Position literals first in String comparisons 3 115
EmptyIfStmt Avoid empty if statements 3 121123
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 148
LocalVariableNamingConventions The local variable name 'nId_Proposal' doesn't match '[a-z][a-zA-Z0-9]*' 1 151
EmptyIfStmt Avoid empty if statements 3 162164
SimplifyBooleanReturns Avoid unnecessary if..then..else statements when returning booleans 3 183187

fr/paris/lutece/plugins/participatoryideation/service/ProposalFollowListener.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4367

fr/paris/lutece/plugins/participatoryideation/service/ProposalIconProvider.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3845
CommentRequired Public method and constructor comments are required 3 4144
MissingOverride The method 'getIcon(String)' is missing an @Override annotation. 3 4144

fr/paris/lutece/plugins/participatoryideation/service/ProposalPopupContentProvider.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4766
MissingOverride The method 'getPopup(HttpServletRequest, String, String)' is missing an @Override annotation. 3 5665
CommentRequired Public method and constructor comments are required 3 5665
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 60
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 60
ShortVariable Avoid variables with short names like t 3 63

fr/paris/lutece/plugins/participatoryideation/service/ProposalRatingListener.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4169

fr/paris/lutece/plugins/participatoryideation/service/ProposalService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 63298
AvoidUsingVolatile Use of modifier volatile is not recommended. 2 79
AvoidUsingVolatile Use of modifier volatile is not recommended. 2 80
AvoidUsingVolatile Use of modifier volatile is not recommended. 2 82
AvoidUsingVolatile Use of modifier volatile is not recommended. 2 83
AvoidUsingVolatile Use of modifier volatile is not recommended. 2 85
AvoidUsingVolatile Use of modifier volatile is not recommended. 2 86
CommentRequired Public method and constructor comments are required 3 97127
NonThreadSafeSingleton Singleton is not thread safe 3 99124
UnusedFormalParameter Avoid unused method parameters such as 'proposal'. 3 129
UnusedFormalParameter Avoid unused method parameters such as 'type'. 3 129
MissingOverride The method 'createProposalDB(Proposal)' is missing an @Override annotation. 3 142147
CommentRequired Public method and constructor comments are required 3 142147
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 142147
MissingOverride The method 'createProposal(Proposal)' is missing an @Override annotation. 3 149153
CommentRequired Public method and constructor comments are required 3 149153
CommentRequired Public method and constructor comments are required 3 155161
MissingOverride The method 'removeProposal(Proposal)' is missing an @Override annotation. 3 163169
CommentRequired Public method and constructor comments are required 3 163169
CommentRequired Public method and constructor comments are required 3 171177
MissingOverride The method 'removeProposalByMdp(Proposal)' is missing an @Override annotation. 3 171177
MissingOverride The method 'getQpvQvaCodesList()' is missing an @Override annotation. 3 192195
MissingOverride The method 'getQpvQvaCodesMap()' is missing an @Override annotation. 3 200203
MissingOverride The method 'getField4CodesList()' is missing an @Override annotation. 3 208211
MissingOverride The method 'getField4CodesMap()' is missing an @Override annotation. 3 216219
MissingOverride The method 'getTypeLocationList()' is missing an @Override annotation. 3 224227
MissingOverride The method 'getTypeLocationMap()' is missing an @Override annotation. 3 232235
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 248
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 277

fr/paris/lutece/plugins/participatoryideation/service/ProposalUsersService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 58284
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 3 59284
NonThreadSafeSingleton Singleton is not thread safe 3 7376
NonThreadSafeSingleton Singleton is not thread safe 3 8790
FormalParameterNamingConventions The method parameter name 'nId_Proposal' doesn't match '[a-z][a-zA-Z0-9]*' 1 99
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 101
FormalParameterNamingConventions The method parameter name 'nId_Proposal' doesn't match '[a-z][a-zA-Z0-9]*' 1 124
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 126
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 165
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 207
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 215
FormalParameterNamingConventions The method parameter name 'nId_Proposal' doesn't match '[a-z][a-zA-Z0-9]*' 1 251
FormalParameterNamingConventions The method parameter name 'nId_Proposal' doesn't match '[a-z][a-zA-Z0-9]*' 1 278

fr/paris/lutece/plugins/participatoryideation/service/ProposalWSService.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34340
CommentRequired Header comments are required 3 71340
NonThreadSafeSingleton Singleton is not thread safe 3 93100
CyclomaticComplexity The method 'updateProposal(Proposal, Proposal, boolean, HttpServletRequest)' has a cyclomatic complexity of 17. 3 143183
EmptyIfStmt Avoid empty if statements 3 161163
AvoidReassigningParameters Avoid reassigning parameters such as 'proposal' 2 186
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 198
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 198
ShortVariable Avoid variables with short names like t 3 202
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 205
AddEmptyString Do not add empty strings 3 212
AddEmptyString Do not add empty strings 3 232
LocalVariableNamingConventions The local variable name '_service' doesn't match '[a-z][a-zA-Z0-9]*' 1 260
CommentRequired Public method and constructor comments are required 3 335338

fr/paris/lutece/plugins/participatoryideation/service/SolrProposalIndexer.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34471
AvoidDuplicateLiterals The String literal "proposal" appears 5 times in this file; the first occurrence is on line 78 3 78
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 97
LocalVariableNamingConventions The local variable name 'SOLR_SERVER' doesn't match '[a-z][a-zA-Z0-9]*' 1 112
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 118
CyclomaticComplexity The method 'getItem(Proposal)' has a cyclomatic complexity of 18. 3 130260
NPathComplexity The method 'getItem(Proposal)' has an NPath complexity of 3840 3 130260
NcssCount The method 'getItem(Proposal)' has a NCSS line count of 75. 3 130260
ExcessiveMethodLength Avoid really long methods. 3 130260
ConfusingTernary Avoid if (x != y) ..; else ..; 3 146169
ConfusingTernary Avoid if (x != y) ..; else ..; 3 177184
ConfusingTernary Avoid if (x != y) ..; else ..; 3 215224
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 238
ShortVariable Avoid variables with short names like sb 3 241
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 3 242
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 3 245
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 3 251
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 3 255
ShortVariable Avoid variables with short names like sb 3 268
MissingOverride The method 'indexDocuments()' is missing an @Override annotation. 3 330382
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 334
LocalVariableNamingConventions The local variable name '_proposalSearcher' doesn't match '[a-z][a-zA-Z0-9]*' 1 338
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 341
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 343
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 348
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 361
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 374
LocalVariableNamingConventions The local variable name 'SOLR_SERVER' doesn't match '[a-z][a-zA-Z0-9]*' 1 429
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 436
ConfusingTernary Avoid if (x != y) ..; else ..; 3 454467

fr/paris/lutece/plugins/participatoryideation/service/campaign/IIdeationCampaignDataProvider.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'WHOLE_AREA': the field is declared in an interface type 3 49
CommentRequired Public method and constructor comments are required 3 57
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaigns': the method is declared in an interface type 3 57
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLastCampaign': the method is declared in an interface type 3 60
CommentRequired Public method and constructor comments are required 3 60
CommentRequired Public method and constructor comments are required 3 68
UnnecessaryModifier Unnecessary modifier 'public' on method 'isBeforeBeginning': the method is declared in an interface type 3 68
CommentRequired Public method and constructor comments are required 3 70
UnnecessaryModifier Unnecessary modifier 'public' on method 'isAfterBeginning': the method is declared in an interface type 3 70
UnnecessaryModifier Unnecessary modifier 'public' on method 'isDuring': the method is declared in an interface type 3 72
CommentRequired Public method and constructor comments are required 3 72
CommentRequired Public method and constructor comments are required 3 74
UnnecessaryModifier Unnecessary modifier 'public' on method 'isBeforeEnd': the method is declared in an interface type 3 74
UnnecessaryModifier Unnecessary modifier 'public' on method 'isAfterEnd': the method is declared in an interface type 3 76
CommentRequired Public method and constructor comments are required 3 76
CommentRequired Public method and constructor comments are required 3 79
UnnecessaryModifier Unnecessary modifier 'public' on method 'isBeforeBeginning': the method is declared in an interface type 3 79
CommentRequired Public method and constructor comments are required 3 81
UnnecessaryModifier Unnecessary modifier 'public' on method 'isAfterBeginning': the method is declared in an interface type 3 81
UnnecessaryModifier Unnecessary modifier 'public' on method 'isDuring': the method is declared in an interface type 3 83
CommentRequired Public method and constructor comments are required 3 83
CommentRequired Public method and constructor comments are required 3 85
UnnecessaryModifier Unnecessary modifier 'public' on method 'isBeforeEnd': the method is declared in an interface type 3 85
CommentRequired Public method and constructor comments are required 3 87
UnnecessaryModifier Unnecessary modifier 'public' on method 'isAfterEnd': the method is declared in an interface type 3 87
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignAllAreaLabels': the method is declared in an interface type 3 96
CommentRequired Public method and constructor comments are required 3 96
CommentRequired Public method and constructor comments are required 3 98
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignAllAreaTypes': the method is declared in an interface type 3 98
CommentRequired Public method and constructor comments are required 3 100
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignWholeAreaLabel': the method is declared in an interface type 3 100
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignLocalizedAreaLabels': the method is declared in an interface type 3 102
CommentRequired Public method and constructor comments are required 3 102
CommentRequired Public method and constructor comments are required 3 104
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignNumberLocalizedAreas': the method is declared in an interface type 3 104
CommentRequired Public method and constructor comments are required 3 108
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLastCampaignAllAreaLabels': the method is declared in an interface type 3 108
CommentRequired Public method and constructor comments are required 3 110
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLastCampaignAllAreaTypes': the method is declared in an interface type 3 110
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLastCampaignWholeAreaLabel': the method is declared in an interface type 3 112
CommentRequired Public method and constructor comments are required 3 112
CommentRequired Public method and constructor comments are required 3 114
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLastCampaignLocalizedAreaLabels': the method is declared in an interface type 3 114
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLastCampaignNumberLocalizedAreas': the method is declared in an interface type 3 116
CommentRequired Public method and constructor comments are required 3 116
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignSubmitterTypes': the method is declared in an interface type 3 124
CommentRequired Public method and constructor comments are required 3 124
CommentRequired Public method and constructor comments are required 3 132
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignThemes': the method is declared in an interface type 3 132
CommentRequired Public method and constructor comments are required 3 135
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLastCampaignThemes': the method is declared in an interface type 3 135
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignThemesFrontRgb': the method is declared in an interface type 3 138
CommentRequired Public method and constructor comments are required 3 138
CommentRequired Public method and constructor comments are required 3 150
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignFieldData': the method is declared in an interface type 3 150
CommentRequired Public method and constructor comments are required 3 153
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignFieldsData': the method is declared in an interface type 3 153

fr/paris/lutece/plugins/participatoryideation/service/campaign/IdeationCampaignDataProvider.java

Rule Violation Priority Line
FieldNamingConventions The static field name 'PROPERTY_PREFIX' doesn't match '_[a-z][a-zA-Z0-9]*' 1 66
FieldNamingConventions The static field name 'PROPERTY_SEP' doesn't match '_[a-z][a-zA-Z0-9]*' 1 67
FieldNamingConventions The static field name 'campaigns' doesn't match '_[a-z][a-zA-Z0-9]*' 1 70
RedundantFieldInitializer Avoid using redundant field initializer for 'campaigns' 3 70
FieldNamingConventions The static field name 'themeLabels' doesn't match '_[a-z][a-zA-Z0-9]*' 1 76
RedundantFieldInitializer Avoid using redundant field initializer for 'themeLabels' 3 76
RedundantFieldInitializer Avoid using redundant field initializer for 'themeFrontRgbs' 3 82
FieldNamingConventions The static field name 'themeFrontRgbs' doesn't match '_[a-z][a-zA-Z0-9]*' 1 82
RedundantFieldInitializer Avoid using redundant field initializer for 'areaLabels' 3 88
FieldNamingConventions The static field name 'areaLabels' doesn't match '_[a-z][a-zA-Z0-9]*' 1 88
RedundantFieldInitializer Avoid using redundant field initializer for 'areaTypes' 3 94
FieldNamingConventions The static field name 'areaTypes' doesn't match '_[a-z][a-zA-Z0-9]*' 1 94
RedundantFieldInitializer Avoid using redundant field initializer for 'dates' 3 100
FieldNamingConventions The static field name 'dates' doesn't match '_[a-z][a-zA-Z0-9]*' 1 100
RedundantFieldInitializer Avoid using redundant field initializer for 'fields' 3 109
FieldNamingConventions The static field name 'fields' doesn't match '_[a-z][a-zA-Z0-9]*' 1 109
CommentRequired Public method and constructor comments are required 3 120128
NonThreadSafeSingleton Singleton is not thread safe 3 122126
ShortVariable Avoid variables with short names like c2 3 147
ShortVariable Avoid variables with short names like c1 3 147
AvoidDuplicateLiterals The String literal "Unexpected phase code '" appears 4 times in this file; the first occurrence is on line 166 3 166
CyclomaticComplexity The method 'loadProperties()' has a cyclomatic complexity of 17. 3 390525
NPathComplexity The method 'loadProperties()' has an NPath complexity of 2700 3 390525
ExcessiveMethodLength Avoid really long methods. 3 390525
NcssCount The method 'loadProperties()' has a NCSS line count of 78. 3 390525
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 404
AvoidDuplicateLiterals The String literal "The property '" appears 4 times in this file; the first occurrence is on line 406 3 406
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 430
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 462
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 490
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 507

fr/paris/lutece/plugins/participatoryideation/service/capgeo/QpvQvaService.java

Rule Violation Priority Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 50145
CommentRequired Header comments are required 3 50145
AvoidDuplicateLiterals The String literal "false" appears 6 times in this file; the first occurrence is on line 66 3 66
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 110
CommentRequired Public method and constructor comments are required 3 110143
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 113
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'features' 3 142

fr/paris/lutece/plugins/participatoryideation/service/fileimage/IdeationFileImageService.java

Rule Violation Priority Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 6770
MissingOverride The method 'getImageResource(int)' is missing an @Override annotation. 3 97116
UnconditionalIfStatement Do not use if statements that are always true or always false 3 99
MissingOverride The method 'getResourceTypeId()' is missing an @Override annotation. 3 123126

fr/paris/lutece/plugins/participatoryideation/service/myinfos/IMyInfosService.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'isUserValid': the method is declared in an interface type 3 44
CommentRequired Public method and constructor comments are required 3 44
CommentRequired Public method and constructor comments are required 3 48
UnnecessaryModifier Unnecessary modifier 'public' on method 'getUrlMyInfosFillAction': the method is declared in an interface type 3 48

fr/paris/lutece/plugins/participatoryideation/service/myinfos/MyInfosService.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 6067
NonThreadSafeSingleton Singleton is not thread safe 3 6265

fr/paris/lutece/plugins/participatoryideation/service/notify/TaskChangeProposalStatus.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'MESSAGE_UNPUBLISHED_PROPOSAL'. 3 71
UnusedPrivateField Avoid unused private fields such as 'MESSAGE_PUBLISHED_PROPOSAL'. 3 72

fr/paris/lutece/plugins/participatoryideation/service/notify/TaskNotifyIdeation.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34388
NPathComplexity The method 'processTask(int, HttpServletRequest, Locale)' has an NPath complexity of 87256 3 126387
ExcessiveMethodLength Avoid really long methods. 3 126387
NcssCount The method 'processTask(int, HttpServletRequest, Locale)' has a NCSS line count of 127. 3 126387
CyclomaticComplexity The method 'processTask(int, HttpServletRequest, Locale)' has a cyclomatic complexity of 49. 3 126387
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 170
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 170
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 191
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 192
AvoidDuplicateLiterals The String literal "[#ftl]\n[#setting date_format=\"dd/MM/yyyy\"]\n" appears 6 times in this file; the first occurrence is on line 240 3 240
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 246
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 248
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 269
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 271
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 320
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 322
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 338
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 340
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 358
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 360
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 377
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 379

fr/paris/lutece/plugins/participatoryideation/service/notify/TaskNotifyIdeationConfigService.java

Rule Violation Priority Line
UselessOverridingMethod Overriding method merely calls super 3 5255
UselessOverridingMethod Overriding method merely calls super 3 6164
UselessOverridingMethod Overriding method merely calls super 3 7073

fr/paris/lutece/plugins/participatoryideation/service/rest/AbstractRestBasedService.java

Rule Violation Priority Line
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 3 55255
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 73
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 3 83
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 90
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 107
AvoidDuplicateLiterals The String literal "status" appears 4 times in this file; the first occurrence is on line 110 3 110
AvoidDuplicateLiterals The String literal "result" appears 6 times in this file; the first occurrence is on line 112 3 112
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 126
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 147
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 163
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 195
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 226
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 248

fr/paris/lutece/plugins/participatoryideation/service/subscription/IdeationSubscriptionProviderService.java

Rule Violation Priority Line
NonThreadSafeSingleton Singleton is not thread safe 3 8491
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 112119
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 3 166
SimplifyBooleanReturns Avoid unnecessary if..then..else statements when returning booleans 3 225228
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 3 225
CommentRequired Public method and constructor comments are required 3 240251
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 256260

fr/paris/lutece/plugins/participatoryideation/util/CsvUtils.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 52202
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 3 53202
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 64
LinguisticNaming Linguistics Antipattern - The getter 'getValuesFromCsv' should not return void linguistically 3 74109
LinguisticNaming Linguistics Antipattern - The variable 'isCsvProperty' indicates linguistically it is a boolean, but it is 'InputStream' 3 77
UseProperClassLoader In J2EE, getClassLoader() might not work as expected. Use Thread.currentThread().getContextClassLoader() instead. 3 77
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 88
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 89
ShortVariable Avoid variables with short names like i 3 95
CommentRequired Public method and constructor comments are required 3 111119
CommentRequired Public method and constructor comments are required 3 121129
CyclomaticComplexity The method 'writeCsv(String, List, OutputStream, Locale)' has a cyclomatic complexity of 10. 3 142201
UseProperClassLoader In J2EE, getClassLoader() might not work as expected. Use Thread.currentThread().getContextClassLoader() instead. 3 147
LinguisticNaming Linguistics Antipattern - The variable 'isCsvProperty' indicates linguistically it is a boolean, but it is 'InputStream' 3 147
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 158
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 180
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 181184

fr/paris/lutece/plugins/participatoryideation/util/ParticipatoryIdeationConstants.java

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

fr/paris/lutece/plugins/participatoryideation/util/ProposalExportUtils.java

Rule Violation Priority Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 39101
CommentRequired Header comments are required 3 39101
ConfusingTernary Avoid if (x != y) ..; else ..; 3 8794

fr/paris/lutece/plugins/participatoryideation/web/DownloadServlet.java

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

fr/paris/lutece/plugins/participatoryideation/web/IdeationApp.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 341476
ExcessiveClassLength Avoid really long classes. 3 1081476
GodClass Possible God Class (WMC=97, ATFD=173, TCC=22.942%) 3 1081476
CyclomaticComplexity The class 'IdeationApp' has a total cyclomatic complexity of 97 (highest 22). 3 1081476
TooManyMethods This class has too many methods, consider refactoring it. 3 1091476
AvoidDuplicateLiterals The String literal "true" appears 4 times in this file; the first occurrence is on line 146 3 146
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _formEtapeLocation field if you want a default access modifier 3 226
DefaultPackage Use explicit scoping instead of the default package private level 3 226
DefaultPackage Use explicit scoping instead of the default package private level 3 227
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _formEtapeTitle field if you want a default access modifier 3 227
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _formEtapeApprox field if you want a default access modifier 3 228
DefaultPackage Use explicit scoping instead of the default package private level 3 228
DefaultPackage Use explicit scoping instead of the default package private level 3 229
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _formEtapeDescription field if you want a default access modifier 3 229
DefaultPackage Use explicit scoping instead of the default package private level 3 230
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _formEtapeUpload field if you want a default access modifier 3 230
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _formEtapeRecap field if you want a default access modifier 3 231
DefaultPackage Use explicit scoping instead of the default package private level 3 231
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _proposalCreate field if you want a default access modifier 3 233
DefaultPackage Use explicit scoping instead of the default package private level 3 233
DefaultPackage Use explicit scoping instead of the default package private level 3 234
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _proposalDisplay field if you want a default access modifier 3 234
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _strNextStep field if you want a default access modifier 3 235
DefaultPackage Use explicit scoping instead of the default package private level 3 235
CallSuperInConstructor It is a good practice to call super() in a constructor 3 242245
CommentRequired Public method and constructor comments are required 3 242245
CyclomaticComplexity The method 'getPage(HttpServletRequest, int, Plugin)' has a cyclomatic complexity of 13. 3 253308
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 255
CollapsibleIfStatements These nested if statements could be combined 3 301304
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 350
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 371
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 387
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 408
CyclomaticComplexity The method 'viewApprox(HttpServletRequest)' has a cyclomatic complexity of 14. 3 409483
NPathComplexity The method 'viewApprox(HttpServletRequest)' has an NPath complexity of 202 3 409483
LocalVariableNamingConventions The local variable name 'results_keyword' doesn't match '[a-z][a-zA-Z0-9]*' 1 412
LocalVariableNamingConventions The local variable name 'results_location' doesn't match '[a-z][a-zA-Z0-9]*' 1 413
LocalVariableNamingConventions The local variable name 'results_previous_campaigns' doesn't match '[a-z][a-zA-Z0-9]*' 1 414
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 424
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 3 427
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 3 436
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 507
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'strGeofiltFq' 3 533
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 557
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 570
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 578
AvoidDuplicateLiterals The String literal "IdeationApp: error during approx search; " appears 6 times in this file; the first occurrence is on line 588 3 588
IdenticalCatchBranches 'catch' branch identical to 'SolrServerException' branch 3 590593
NPathComplexity The method 'getKeywordApproxResults(SolrQuery, SolrClient)' has an NPath complexity of 8448 3 606735
CyclomaticComplexity The method 'getKeywordApproxResults(SolrQuery, SolrClient)' has a cyclomatic complexity of 22. 3 606735
NcssCount The method 'getKeywordApproxResults(SolrQuery, SolrClient)' has a NCSS line count of 62. 3 606735
ExcessiveMethodLength Avoid really long methods. 3 606735
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 613
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 627
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 647
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 3 676
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 680
IdenticalCatchBranches 'catch' branch identical to 'SolrServerException' branch 3 730733
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 762
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 778
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 781
IdenticalCatchBranches 'catch' branch identical to 'SolrServerException' branch 3 802805
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 817
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 831
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 845
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 861
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 883
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 902
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 938
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 954
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 1001
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 1024
ConfusingTernary Avoid if (x != y) ..; else ..; 3 10311048
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 1040
CommentRequired Protected method constructor comments are required 3 11321140
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 1165
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1174
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 1174
DefaultPackage Use explicit scoping instead of the default package private level 3 12031237
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the isValidateFormEtape method if you want a default access modifier 3 12031237
DefaultPackage Use explicit scoping instead of the default package private level 3 12391244
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the isAllEtapeValidated method if you want a default access modifier 3 12391244
NcssCount The method 'convertFormEtapeLocation(FormEtapeLocation, Proposal)' has a NCSS line count of 73. 3 12461363
ExcessiveMethodLength Avoid really long methods. 3 12461363
CyclomaticComplexity The method 'convertFormEtapeLocation(FormEtapeLocation, Proposal)' has a cyclomatic complexity of 14. 3 12461363
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 3 1273
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 1325
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 1424
FieldNamingConventions The constant name 'nameMap' doesn't match '[A-Z][A-Z_0-9]*' 1 1455
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 1458
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'STEPS(String)': enum constructors are implicitly private 3 14651468
CommentRequired Public method and constructor comments are required 3 14701473

fr/paris/lutece/plugins/participatoryideation/web/ManageIdeationJspBean.java

Rule Violation Priority Line
SingularField Perhaps '_nDefaultItemsPerPage' could be replaced by a local variable. 3 64
AddEmptyString Do not add empty strings 3 95

fr/paris/lutece/plugins/participatoryideation/web/ManageIdeationProposalsJspBean.java

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 57136
FieldNamingConventions The public constant name 'RIGHT_MANAGE_participatoryideation_proposals' doesn't match '[A-Z][A-Z_0-9]*' 1 60
SingularField Perhaps '_nDefaultItemsPerPage' could be replaced by a local variable. 3 71
AddEmptyString Do not add empty strings 3 102
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 119
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 125
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 125

fr/paris/lutece/plugins/participatoryideation/web/ManageProposalLinksJspBean.java

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 5098
SingularField Perhaps '_nDefaultItemsPerPage' could be replaced by a local variable. 3 61
AddEmptyString Do not add empty strings 3 92

fr/paris/lutece/plugins/participatoryideation/web/ProposalBoForm.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 36261
CommentRequired Public method and constructor comments are required 3 127130
CommentRequired Public method and constructor comments are required 3 132135
CommentRequired Public method and constructor comments are required 3 221224
FormalParameterNamingConventions The method parameter name '_strTitre' doesn't match '[a-z][a-zA-Z0-9]*' 1 226
CommentRequired Public method and constructor comments are required 3 226229
CommentRequired Public method and constructor comments are required 3 231234
FormalParameterNamingConventions The method parameter name '_strDescription' doesn't match '[a-z][a-zA-Z0-9]*' 1 236
CommentRequired Public method and constructor comments are required 3 236239
CommentRequired Public method and constructor comments are required 3 241244
FormalParameterNamingConventions The method parameter name '_strCout' doesn't match '[a-z][a-zA-Z0-9]*' 1 246
CommentRequired Public method and constructor comments are required 3 246249
CommentRequired Public method and constructor comments are required 3 251254
FormalParameterNamingConventions The method parameter name '_strLocationArdt' doesn't match '[a-z][a-zA-Z0-9]*' 1 256
CommentRequired Public method and constructor comments are required 3 256259

fr/paris/lutece/plugins/participatoryideation/web/ProposalJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 341129
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 831129
ExcessiveClassLength Avoid really long classes. 3 831129
FieldNamingConventions The static field name 'defaultSearcher' doesn't match '_[a-z][a-zA-Z0-9]*' 1 192
NPathComplexity The method 'getManageProposals(HttpServletRequest)' has an NPath complexity of 10250 3 214308
CyclomaticComplexity The method 'getManageProposals(HttpServletRequest)' has a cyclomatic complexity of 16. 3 214308
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 216
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 217
ConfusingTernary Avoid if (x != y) ..; else ..; 3 218
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 293
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 294
AddEmptyString Do not add empty strings 3 297
AddEmptyString Do not add empty strings 3 299
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 322
NcssCount The method 'doSearchProposal(HttpServletRequest)' has a NCSS line count of 64. 3 323461
NPathComplexity The method 'doSearchProposal(HttpServletRequest)' has an NPath complexity of 118098 3 323461
CyclomaticComplexity The method 'doSearchProposal(HttpServletRequest)' has a cyclomatic complexity of 22. 3 323461
ExcessiveMethodLength Avoid really long methods. 3 323461
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 470
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 473
CommentRequired Public method and constructor comments are required 3 486496
CommentRequired Public method and constructor comments are required 3 499530
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 501
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 509
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 509
CyclomaticComplexity The method 'doCreateProposal(HttpServletRequest)' has a cyclomatic complexity of 15. 3 533650
CommentRequired Public method and constructor comments are required 3 533650
NcssCount The method 'doCreateProposal(HttpServletRequest)' has a NCSS line count of 66. 3 533650
NPathComplexity The method 'doCreateProposal(HttpServletRequest)' has an NPath complexity of 486 3 533650
ExcessiveMethodLength Avoid really long methods. 3 533650
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 3 572
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 624
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 646
ConfusingTernary Avoid if (x != y) ..; else ..; 3 682689
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 732
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 788
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 788
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 822
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 822
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 857
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 862
ShortVariable Avoid variables with short names like os 3 935
CyclomaticComplexity The method 'copyProposalBoFormToProposal(ProposalBoForm, Proposal)' has a cyclomatic complexity of 14. 3 9581051
NPathComplexity The method 'copyProposalBoFormToProposal(ProposalBoForm, Proposal)' has an NPath complexity of 2560 3 9581051
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 1119

fr/paris/lutece/plugins/participatoryideation/web/ProposalLinksJspBean.java

Rule Violation Priority Line
FieldNamingConventions The static field name 'defaultSearcher' doesn't match '_[a-z][a-zA-Z0-9]*' 1 138
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 160
ConfusingTernary Avoid if (x != y) ..; else ..; 3 161
ConfusingTernary Avoid if (x != y) ..; else ..; 3 205
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 287
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 287
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 288
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 452
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 511
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 514
FormalParameterNamingConventions The method parameter name '_str' doesn't match '[a-z][a-zA-Z0-9]*' 1 526
FormalParameterNamingConventions The method parameter name '_link' doesn't match '[a-z][a-zA-Z0-9]*' 1 548
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 548

fr/paris/lutece/plugins/participatoryideation/web/ProposalSubscriberXPage.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34333
ImmutableField Private field '_resourceExtenderHistoryService' could be made final; it is only initialized in the declaration or constructor. 3 121
ControlStatementBraces This statement should have braces 3 138
LocalVariableNamingConventions The local variable name '_proposalSearcher' doesn't match '[a-z][a-zA-Z0-9]*' 1 140
LocalVariableNamingConventions The local variable name '_commentFilter' doesn't match '[a-z][a-zA-Z0-9]*' 1 146
UseUnderscoresInNumericLiterals Number 10000 should separate every third digit with an underscore 3 150
UnusedLocalVariable Avoid unused local variables such as 'wrapper'. 3 169
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 169
ControlStatementBraces This statement should have braces 3 194
LocalVariableNamingConventions The local variable name '_proposalSearcher' doesn't match '[a-z][a-zA-Z0-9]*' 1 206
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 234
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 234
NonThreadSafeSingleton Singleton is not thread safe 3 266269
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 282
LocalVariableNamingConventions The local variable name 'IdExtendableResourceList' doesn't match '[a-z][a-zA-Z0-9]*' 1 283
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 283
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 313

fr/paris/lutece/plugins/participatoryideation/web/ProposalSubscriptionXPage.java

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 61167
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 91
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 120
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 140148

fr/paris/lutece/plugins/participatoryideation/web/ProposalXPage.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34373
AvoidDuplicateLiterals The String literal "proposal" appears 4 times in this file; the first occurrence is on line 76 3 76
NPathComplexity The method 'getViewProposal(HttpServletRequest)' has an NPath complexity of 576 3 145236
CyclomaticComplexity The method 'getViewProposal(HttpServletRequest)' has a cyclomatic complexity of 16. 3 145236
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 155
LocalVariableNamingConventions The local variable name '_proposal' doesn't match '[a-z][a-zA-Z0-9]*' 1 158
ConfusingTernary Avoid if (x != y) ..; else ..; 3 159166
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 165
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 168
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 170
CollapsibleIfStatements These nested if statements could be combined 3 176179
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 220223
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 238
CommentRequired Public method and constructor comments are required 3 239339
ExcessiveMethodLength Avoid really long methods. 3 239339
NPathComplexity The method 'doContacterSubmitter(HttpServletRequest)' has an NPath complexity of 2304 3 239339
CyclomaticComplexity The method 'doContacterSubmitter(HttpServletRequest)' has a cyclomatic complexity of 15. 3 239339
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 250
LocalVariableNamingConventions The local variable name '_proposal' doesn't match '[a-z][a-zA-Z0-9]*' 1 253
ConfusingTernary Avoid if (x != y) ..; else ..; 3 254261
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 260
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 263
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 263
AddEmptyString Do not add empty strings 3 265
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 285
ConfusingTernary Avoid if (x != y) ..; else ..; 3 285
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 288
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 291
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 291
ShortVariable Avoid variables with short names like t 3 313
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 316
ConfusingTernary Avoid if (x != y) ..; else ..; 3 325336
ConfusingTernary Avoid if (x != y) ..; else ..; 3 365
AddEmptyString Do not add empty strings 3 365

fr/paris/lutece/plugins/participatoryideation/web/ProposalsXpage.java

Rule Violation Priority Line
FieldNamingConventions The constant name 'strSearchSolrUrl' doesn't match '[A-Z][A-Z_0-9]*' 1 76
FieldNamingConventions The constant name 'strAmpSymbol' doesn't match '[A-Z][A-Z_0-9]*' 1 77
FieldNamingConventions The constant name 'strEqualSymbol' doesn't match '[A-Z][A-Z_0-9]*' 1 78
CommentRequired Public method and constructor comments are required 3 81144
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 3 106
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 3 116
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 3 127
GuardLogStatement Logger calls should be surrounded by log level guards. 2 134

fr/paris/lutece/plugins/participatoryideation/web/SubmitterJspBean.java

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 54245
UnusedPrivateField Avoid unused private fields such as 'PROPERTY_DEFAULT_LIST_SUBMITTER_PER_PAGE'. 3 81
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 114
ConfusingTernary Avoid if (x != y) ..; else ..; 3 131

fr/paris/lutece/plugins/participatoryideation/web/SubmitterTypeJspBean.java

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 54245
UnusedPrivateField Avoid unused private fields such as 'PROPERTY_DEFAULT_LIST_SUBMITTER_PER_PAGE'. 3 81
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 114
ConfusingTernary Avoid if (x != y) ..; else ..; 3 131

fr/paris/lutece/plugins/participatoryideation/web/etape/AbstractFormEtape.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4369
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _bValidated field if you want a default access modifier 3 46
DefaultPackage Use explicit scoping instead of the default package private level 3 46
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 4952
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 5558
MissingOverride The method 'isValidated()' is missing an @Override annotation. 3 6063
CommentRequired Public method and constructor comments are required 3 6063
CommentRequired Public method and constructor comments are required 3 6568
MissingOverride The method 'setValidated(boolean)' is missing an @Override annotation. 3 6568
FormalParameterNamingConventions The method parameter name '_bValidated' doesn't match '[a-z][a-zA-Z0-9]*' 1 65

fr/paris/lutece/plugins/participatoryideation/web/etape/FormEtapeApprox.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3639

fr/paris/lutece/plugins/participatoryideation/web/etape/FormEtapeDescription.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 55271
UnusedPrivateField Avoid unused private fields such as 'I18N_ERROR_FIELD4_COMPLEMENT_MIN_LENGTH'. 3 68
UnusedPrivateField Avoid unused private fields such as 'I18N_ERROR_FIELD4_COMPLEMENT_MAX_LENGTH'. 3 69
UnusedPrivateField Avoid unused private fields such as 'DSKEY_FIELD4_COMPLEMENT_MIN_LENGTH'. 3 73
UnusedPrivateField Avoid unused private fields such as 'DSKEY_FIELD4_COMPLEMENT_MAX_LENGTH'. 3 74
UseUnderscoresInNumericLiterals Number 10000 should separate every third digit with an underscore 3 77
CommentRequired Public method and constructor comments are required 3 8487
FormalParameterNamingConventions The method parameter name '_strDescription' doesn't match '[a-z][a-zA-Z0-9]*' 1 89
CommentRequired Public method and constructor comments are required 3 8992
CommentRequired Public method and constructor comments are required 3 9699
CommentRequired Public method and constructor comments are required 3 101104
FormalParameterNamingConventions The method parameter name '_strCout' doesn't match '[a-z][a-zA-Z0-9]*' 1 101
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 108
CommentRequired Public method and constructor comments are required 3 110113
CommentRequired Public method and constructor comments are required 3 115118
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 122
CommentRequired Public method and constructor comments are required 3 124127
CommentRequired Public method and constructor comments are required 3 129132
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 136
CommentRequired Public method and constructor comments are required 3 138141
CommentRequired Public method and constructor comments are required 3 143146
NPathComplexity The method 'checkValidationErrorsLocalized(HttpServletRequest, Proposal, Locale)' has an NPath complexity of 4992 3 151269
CyclomaticComplexity The method 'checkValidationErrorsLocalized(HttpServletRequest, Proposal, Locale)' has a cyclomatic complexity of 23. 3 151269
ExcessiveMethodLength Avoid really long methods. 3 151269
UnusedLocalVariable Avoid unused local variables such as 'userUid'. 3 154
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 164
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 184
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 214
AddEmptyString Do not add empty strings 3 225
AddEmptyString Do not add empty strings 3 232
CollapsibleIfStatements These nested if statements could be combined 3 241265
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 243
AddEmptyString Do not add empty strings 3 254
AddEmptyString Do not add empty strings 3 261

fr/paris/lutece/plugins/participatoryideation/web/etape/FormEtapeLocation.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'java.util.Locale' 4 38
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.security.LuteceUser' 4 49
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.security.SecurityService' 4 50
CommentRequired Header comments are required 3 52238
UnusedPrivateField Avoid unused private fields such as 'I18N_ERROR_ADRESS_FORMAT'. 3 56
UnusedPrivateField Avoid unused private fields such as 'I18N_ERROR_ADRESS_NOT_VALID'. 3 57
UnusedPrivateField Avoid unused private fields such as 'I18N_ERROR_ADRESS_ARDT_MISMATCH'. 3 58
CommentRequired Public method and constructor comments are required 3 99102
CommentRequired Public method and constructor comments are required 3 104107
CommentRequired Public method and constructor comments are required 3 130133
CommentRequired Public method and constructor comments are required 3 135138
FormalParameterNamingConventions The method parameter name '_strGeojson' doesn't match '[a-z][a-zA-Z0-9]*' 1 135
CommentRequired Public method and constructor comments are required 3 203206
FormalParameterNamingConventions The method parameter name '_strAdress' doesn't match '[a-z][a-zA-Z0-9]*' 1 208
CommentRequired Public method and constructor comments are required 3 208211
CommentRequired Public method and constructor comments are required 3 213216
CommentRequired Public method and constructor comments are required 3 218221
FormalParameterNamingConventions The method parameter name '_strSubmitterType' doesn't match '[a-z][a-zA-Z0-9]*' 1 218
CommentRequired Public method and constructor comments are required 3 223226
CommentRequired Public method and constructor comments are required 3 228231
FormalParameterNamingConventions The method parameter name '_strConseilQuartier' doesn't match '[a-z][a-zA-Z0-9]*' 1 228
CommentRequired Public method and constructor comments are required 3 233237

fr/paris/lutece/plugins/participatoryideation/web/etape/FormEtapeRecap.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3657

fr/paris/lutece/plugins/participatoryideation/web/etape/FormEtapeTitle.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 52217
CommentRequired Public method and constructor comments are required 3 7780
CommentRequired Public method and constructor comments are required 3 8285
CommentRequired Public method and constructor comments are required 3 8790
CommentRequired Public method and constructor comments are required 3 9295
CommentRequired Public method and constructor comments are required 3 97100
CommentRequired Public method and constructor comments are required 3 102105
NPathComplexity The method 'checkValidationErrorsLocalized(HttpServletRequest, Proposal, Locale)' has an NPath complexity of 2304 3 108215
CyclomaticComplexity The method 'checkValidationErrorsLocalized(HttpServletRequest, Proposal, Locale)' has a cyclomatic complexity of 21. 3 108215
ExcessiveMethodLength Avoid really long methods. 3 108215
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 115
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 134
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 163
AddEmptyString Do not add empty strings 3 174
AddEmptyString Do not add empty strings 3 181
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 190
AddEmptyString Do not add empty strings 3 201
AddEmptyString Do not add empty strings 3 208

fr/paris/lutece/plugins/participatoryideation/web/etape/FormEtapeUpload.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 45117
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _ideationUploadHandler field if you want a default access modifier 3 52
DefaultPackage Use explicit scoping instead of the default package private level 3 52
CommentRequired Public method and constructor comments are required 3 5457
FormalParameterNamingConventions The method parameter name '_strAcceptExploit' doesn't match '[a-z][a-zA-Z0-9]*' 1 59
CommentRequired Public method and constructor comments are required 3 5962
CommentRequired Public method and constructor comments are required 3 6471
AvoidDuplicateLiterals The String literal "participatoryideation.ProposalAsynchronousHandler" appears 4 times in this file; the first occurrence is on line 68 3 68
CommentRequired Public method and constructor comments are required 3 7380
CommentRequired Public method and constructor comments are required 3 8289

fr/paris/lutece/plugins/participatoryideation/web/etape/IFormEtape.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4353
CommentRequired Public method and constructor comments are required 3 46
CommentRequired Public method and constructor comments are required 3 48
CommentRequired Public method and constructor comments are required 3 50
FormalParameterNamingConventions The method parameter name '_bValidated' doesn't match '[a-z][a-zA-Z0-9]*' 1 52
CommentRequired Public method and constructor comments are required 3 52

fr/paris/lutece/plugins/participatoryideation/web/include/HeaderInclude.java

Rule Violation Priority Line
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 114
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 114
LocalVariableNamingConventions The local variable name '_user' doesn't match '[a-z][a-zA-Z0-9]*' 1 117
LocalVariableNamingConventions The local variable name '_proposalSearcher' doesn't match '[a-z][a-zA-Z0-9]*' 1 127
LocalVariableNamingConventions The local variable name '_commentFilter' doesn't match '[a-z][a-zA-Z0-9]*' 1 133
UseUnderscoresInNumericLiterals Number 10000 should separate every third digit with an underscore 3 137
NonThreadSafeSingleton Singleton is not thread safe 3 167170
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 183
LocalVariableNamingConventions The local variable name 'IdExtendableResourceList' doesn't match '[a-z][a-zA-Z0-9]*' 1 184
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 184
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 214

fr/paris/lutece/plugins/participatoryideation/web/notify/ChangeProposalStatusTaskComponent.java

Rule Violation Priority Line
FieldNamingConventions The constant name 'TEMPLATE_CHANGE_Proposal_Status_CONFIG' doesn't match '[A-Z][A-Z_0-9]*' 1 74
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 132
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 132

fr/paris/lutece/plugins/participatoryideation/web/notify/NotifyIdeationTaskComponent.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 152
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 152