Fork me on GitHub

Résultats PMD

Le document suivant contient les résultats de PMD 6.13.0.

Violations By Priority

Priority 1

fr/paris/lutece/plugins/suggest/service/suggestsearch/SuggestSearchItem.java

Rule Violation Ligne
ConstructorCallsOverridableMethod Overridable method 'setIdSuggest' called during object construction 59
ConstructorCallsOverridableMethod Overridable method 'setIdSuggestSubmit' called during object construction 60

fr/paris/lutece/plugins/suggest/service/workflow/SuggestWorkflowService.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 49123

fr/paris/lutece/plugins/suggest/utils/ProcessBBCode.java

Rule Violation Ligne
FieldNamingConventions The field name 'acceptHTML' doesn't match '_[a-z][a-zA-Z0-9]*' 75
FieldNamingConventions The field name 'acceptBBCode' doesn't match '_[a-z][a-zA-Z0-9]*' 78

fr/paris/lutece/plugins/suggest/web/SuggestVideoResourceServlet.java

Rule Violation Ligne
FieldNamingConventions The constant name '_cache' doesn't match '[A-Z][A-Z_0-9]*' 60

Priority 2

fr/paris/lutece/plugins/suggest/utils/ProcessBBCode.java

Rule Violation Ligne
AvoidReassigningParameters Avoid reassigning parameters such as 'texto' 118
AvoidReassigningParameters Avoid reassigning parameters such as 'texto' 118
AvoidReassigningParameters Avoid reassigning parameters such as 'string' 137
AvoidReassigningParameters Avoid reassigning parameters such as 'content' 227
AvoidReassigningParameters Avoid reassigning parameters such as 'content' 227
AvoidReassigningParameters Avoid reassigning parameters such as 'content' 227
AvoidReassigningParameters Avoid reassigning parameters such as 'content' 227
AvoidReassigningParameters Avoid reassigning parameters such as 'content' 248

Priority 3

fr/paris/lutece/plugins/suggest/business/Category.java

Rule Violation Ligne
MissingOverride The method 'equals(Object)' is missing an @Override annotation. 101105
OverrideBothEqualsAndHashcode Ensure you override both equals() and hashCode() 101
MissingOverride The method 'getResourceTypeCode()' is missing an @Override annotation. 112115
MissingOverride The method 'getResourceId()' is missing an @Override annotation. 122125

fr/paris/lutece/plugins/suggest/business/CommentSubmitDAO.java

Rule Violation Ligne
NPathComplexity The method 'selectListByFilter(SubmitFilter, Integer, Plugin)' has an NPath complexity of 2448 209296
CyclomaticComplexity The method 'selectListByFilter(SubmitFilter, Integer, Plugin)' has a cyclomatic complexity of 13. 209296
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 247
CyclomaticComplexity The method 'selectCountByFilter(SubmitFilter, Plugin)' has a cyclomatic complexity of 10. 337396
NPathComplexity The method 'selectCountByFilter(SubmitFilter, Plugin)' has an NPath complexity of 408 337396
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 448

fr/paris/lutece/plugins/suggest/business/DefaultMessage.java

Rule Violation Ligne
MissingOverride The method 'getResourceTypeCode()' is missing an @Override annotation. 178181
MissingOverride The method 'getResourceId()' is missing an @Override annotation. 188191

fr/paris/lutece/plugins/suggest/business/Entry.java

Rule Violation Ligne
MissingOverride The method 'getComment()' is missing an @Override annotation. 111114
MissingOverride The method 'getEntryType()' is missing an @Override annotation. 119122
MissingOverride The method 'getHelpMessage()' is missing an @Override annotation. 127130
MissingOverride The method 'getIdEntry()' is missing an @Override annotation. 135138
MissingOverride The method 'getPosition()' is missing an @Override annotation. 143146
MissingOverride The method 'getTitle()' is missing an @Override annotation. 151154
MissingOverride The method 'isMandatory()' is missing an @Override annotation. 159162
MissingOverride The method 'isShowInSuggestSubmitList()' is missing an @Override annotation. 167170
MissingOverride The method 'setComment(String)' is missing an @Override annotation. 178181
MissingOverride The method 'setEntryType(EntryType)' is missing an @Override annotation. 189192
MissingOverride The method 'setHelpMessage(String)' is missing an @Override annotation. 200203
MissingOverride The method 'setIdEntry(int)' is missing an @Override annotation. 211214
MissingOverride The method 'setShowInSuggestSubmitList(boolean)' is missing an @Override annotation. 222225
MissingOverride The method 'setMandatory(boolean)' is missing an @Override annotation. 233236
MissingOverride The method 'setPosition(int)' is missing an @Override annotation. 244247
MissingOverride The method 'setTitle(String)' is missing an @Override annotation. 255258
MissingOverride The method 'getSuggest()' is missing an @Override annotation. 264267
MissingOverride The method 'setSuggest(Suggest)' is missing an @Override annotation. 275278
MissingOverride The method 'getRegularExpressionList()' is missing an @Override annotation. 284287
MissingOverride The method 'setRegularExpressionList(List)' is missing an @Override annotation. 295298
MissingOverride The method 'getDefaultValue()' is missing an @Override annotation. 304307
MissingOverride The method 'setDefaultValue(String)' is missing an @Override annotation. 315318
MissingOverride The method 'getWidth()' is missing an @Override annotation. 324327
MissingOverride The method 'setWidth(int)' is missing an @Override annotation. 335338
MissingOverride The method 'getHeight()' is missing an @Override annotation. 344347
MissingOverride The method 'setHeight(int)' is missing an @Override annotation. 355358
MissingOverride The method 'getMaxSizeEnter()' is missing an @Override annotation. 364367
MissingOverride The method 'setMaxSizeEnter(int)' is missing an @Override annotation. 375378
MissingOverride The method 'getTemplateHtmlCodeForm()' is missing an @Override annotation. 386389
MissingOverride The method 'getTemplateHtmlCodeResponse()' is missing an @Override annotation. 396399
MissingOverride The method 'getRequestData(HttpServletRequest, Locale)' is missing an @Override annotation. 410413
MissingOverride The method 'getResponseData(HttpServletRequest, List, Locale)' is missing an @Override annotation. 426429
MissingOverride The method 'getResponseData(int, HttpServletRequest, List, Locale, Plugin)' is missing an @Override annotation. 446449
MissingOverride The method 'getTemplateCreate()' is missing an @Override annotation. 456459
MissingOverride The method 'getTemplateModify()' is missing an @Override annotation. 466469
MissingOverride The method 'getPaginator(int, String, String, String)' is missing an @Override annotation. 484487
MissingOverride The method 'getReferenceListRegularExpression(IEntry, Plugin)' is missing an @Override annotation. 498501
MissingOverride The method 'getEntryAdditionalAttributeList()' is missing an @Override annotation. 507510
MissingOverride The method 'setEntryAdditionalAttributeList(List)' is missing an @Override annotation. 518521

fr/paris/lutece/plugins/suggest/business/EntryAdditionalAttributeDAO.java

Rule Violation Ligne
MissingOverride The method 'insert(EntryAdditionalAttribute, Plugin)' is missing an @Override annotation. 6171
MissingOverride The method 'selectEntryAdditionalAttributeList(int, Plugin)' is missing an @Override annotation. 82102
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 112119
MissingOverride The method 'store(EntryAdditionalAttribute, Plugin)' is missing an @Override annotation. 129139

fr/paris/lutece/plugins/suggest/business/EntryDAO.java

Rule Violation Ligne
TooManyMethods This class has too many methods, consider refactoring it. 47481
MissingOverride The method 'insert(IEntry, Plugin)' is missing an @Override annotation. 136160
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 171224
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 234241
MissingOverride The method 'store(IEntry, Plugin)' is missing an @Override annotation. 251272
MissingOverride The method 'selectEntryListByFilter(EntryFilter, Plugin)' is missing an @Override annotation. 283347
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 291
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 293
MissingOverride The method 'selectNumberEntryByFilter(EntryFilter, Plugin)' is missing an @Override annotation. 358386
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 362
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 364
MissingOverride The method 'deleteVerifyBy(int, int, Plugin)' is missing an @Override annotation. 398406
MissingOverride The method 'insertVerifyBy(int, int, Plugin)' is missing an @Override annotation. 418426
MissingOverride The method 'selectListRegularExpressionKeyByIdEntry(int, Plugin)' is missing an @Override annotation. 437453
MissingOverride The method 'isRegularExpressionIsUse(int, Plugin)' is missing an @Override annotation. 464480

fr/paris/lutece/plugins/suggest/business/EntryHome.java

Rule Violation Ligne
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 172175

fr/paris/lutece/plugins/suggest/business/EntryTypeDAO.java

Rule Violation Ligne
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 6180
MissingOverride The method 'select(Plugin)' is missing an @Override annotation. 89110

fr/paris/lutece/plugins/suggest/business/EntryTypeEditorBbcode.java

Rule Violation Ligne
CommentRequired Public method and constructor comments are required 7174

fr/paris/lutece/plugins/suggest/business/EntryTypeImage.java

Rule Violation Ligne
CyclomaticComplexity The method 'getRequestData(HttpServletRequest, Locale)' has a cyclomatic complexity of 11. 88163
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 91
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 92
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 93
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 94
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 95
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 96
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 97
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 99
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 100
ConfusingTernary Avoid if (x != y) ..; else ..; 213231

fr/paris/lutece/plugins/suggest/business/EntryTypeText.java

Rule Violation Ligne
CyclomaticComplexity The method 'getRequestData(HttpServletRequest, Locale)' has a cyclomatic complexity of 11. 85163
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 88
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 89
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 90
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 91
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 93
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 94
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 96
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 97

fr/paris/lutece/plugins/suggest/business/EntryTypeTextArea.java

Rule Violation Ligne
NPathComplexity The method 'getRequestData(HttpServletRequest, Locale)' has an NPath complexity of 336 83169
CyclomaticComplexity The method 'getRequestData(HttpServletRequest, Locale)' has a cyclomatic complexity of 13. 83169
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 86
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 87
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 88
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 89
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 92
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 93
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 95
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 96
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 97

fr/paris/lutece/plugins/suggest/business/EntryTypeUrl.java

Rule Violation Ligne
CyclomaticComplexity The method 'getRequestData(HttpServletRequest, Locale)' has a cyclomatic complexity of 11. 85163
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 88
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 89
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 90
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 91
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 93
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 94
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 96
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 97

fr/paris/lutece/plugins/suggest/business/EntryTypeVideo.java

Rule Violation Ligne
ExcessiveMethodLength Avoid really long methods. 96204
NcssCount The method 'getRequestData(HttpServletRequest, Locale)' has a NCSS line count of 64. 96204
CyclomaticComplexity The method 'getRequestData(HttpServletRequest, Locale)' has a cyclomatic complexity of 11. 96204
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 99
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 100
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 101
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 102
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 103
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 104
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 105
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 106
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 107
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 108
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 109
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 110
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 112
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 113
ConfusingTernary Avoid if (x != y) ..; else ..; 256334
AvoidDuplicateLiterals The String literal "');" appears 6 times in this file; the first occurrence is on line 300 300
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 306

fr/paris/lutece/plugins/suggest/business/ExportFormat.java

Rule Violation Ligne
MethodReturnsInternalArray Returning '_xsl' may expose an internal array. 118
ArrayIsStoredDirectly The user-supplied array 'donnees' is stored directly. 127
MissingOverride The method 'getResourceTypeCode()' is missing an @Override annotation. 137140
MissingOverride The method 'getResourceId()' is missing an @Override annotation. 147150
AddEmptyString Do not add empty strings 149

fr/paris/lutece/plugins/suggest/business/ExportFormatDAO.java

Rule Violation Ligne
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 91103
MissingOverride The method 'insert(ExportFormat, Plugin)' is missing an @Override annotation. 91103

fr/paris/lutece/plugins/suggest/business/IEntry.java

Rule Violation Ligne
LinguisticNaming Linguistics Antipattern - The getter 'getXml' should not return void linguistically 359

fr/paris/lutece/plugins/suggest/business/ImageResourceDAO.java

Rule Violation Ligne
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 5265

fr/paris/lutece/plugins/suggest/business/ReportedMessageDAO.java

Rule Violation Ligne
CommentRequired Header comments are required 42171

fr/paris/lutece/plugins/suggest/business/ResponseDAO.java

Rule Violation Ligne
ConfusingTernary Avoid if (x != y) ..; else ..; 104111
ConfusingTernary Avoid if (x != y) ..; else ..; 221228
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 256
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 257
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 258

fr/paris/lutece/plugins/suggest/business/SearchFields.java

Rule Violation Ligne
CommentRequired Header comments are required 38118
CommentRequired Public method and constructor comments are required 4952
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 6467
CommentRequired Public method and constructor comments are required 6972
CommentRequired Public method and constructor comments are required 7477
CommentRequired Public method and constructor comments are required 7982
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 9497
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 109112
CommentRequired Public method and constructor comments are required 114117

fr/paris/lutece/plugins/suggest/business/SubmitFilter.java

Rule Violation Ligne
ExcessivePublicCount This class has a bunch of public methods and attributes 34581
TooManyFields Too many fields 47581
GodClass Possible God Class (WMC=55, ATFD=6, TCC=9.224%) 47581
TooManyMethods This class has too many methods, consider refactoring it. 48581
RedundantFieldInitializer Avoid using redundant field initializer for '_strLuteceUserKey' 83

fr/paris/lutece/plugins/suggest/business/Suggest.java

Rule Violation Ligne
ExcessivePublicCount This class has a bunch of public methods and attributes 341532
TooManyFields Too many fields 591532
CyclomaticComplexity The class 'Suggest' has a total cyclomatic complexity of 136 (highest 4). 591532
ExcessiveClassLength Avoid really long classes. 591532
NonThreadSafeSingleton Singleton is not thread safe 160164
NonThreadSafeSingleton Singleton is not thread safe 166170
NonThreadSafeSingleton Singleton is not thread safe 172176
MissingOverride The method 'getWorkgroup()' is missing an @Override annotation. 303306
MissingOverride The method 'getResourceTypeCode()' is missing an @Override annotation. 404407
MissingOverride The method 'getResourceId()' is missing an @Override annotation. 414417
AddEmptyString Do not add empty strings 416

fr/paris/lutece/plugins/suggest/business/SuggestAction.java

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

fr/paris/lutece/plugins/suggest/business/SuggestActionDAO.java

Rule Violation Ligne
MissingOverride The method 'selectActionsBySuggestState(int, Plugin)' is missing an @Override annotation. 5982

fr/paris/lutece/plugins/suggest/business/SuggestDAO.java

Rule Violation Ligne
NPathComplexity The method 'selectSuggestList(SuggestFilter, Plugin)' has an NPath complexity of 528 374492
NcssCount The method 'selectSuggestList(SuggestFilter, Plugin)' has a NCSS line count of 81. 374492
CyclomaticComplexity The method 'selectSuggestList(SuggestFilter, Plugin)' has a cyclomatic complexity of 10. 374492
ExcessiveMethodLength Avoid really long methods. 374492
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 525

fr/paris/lutece/plugins/suggest/business/SuggestHome.java

Rule Violation Ligne
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'entry' 112
ConfusingTernary Avoid if (x != y) ..; else ..; 147154

fr/paris/lutece/plugins/suggest/business/SuggestRegularExpressionRemovalListener.java

Rule Violation Ligne
MissingOverride The method 'canBeRemoved(String)' is missing an @Override annotation. 5868
MissingOverride The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. 7983

fr/paris/lutece/plugins/suggest/business/SuggestRoleRemovalListener.java

Rule Violation Ligne
MissingOverride The method 'canBeRemoved(String)' is missing an @Override annotation. 5876
SimplifyBooleanReturns Avoid unnecessary if..then..else statements when returning booleans 7073
MissingOverride The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. 8791

fr/paris/lutece/plugins/suggest/business/SuggestSubmit.java

Rule Violation Ligne
ExcessivePublicCount This class has a bunch of public methods and attributes 34748
TooManyFields Too many fields 56748
GodClass Possible God Class (WMC=63, ATFD=9, TCC=1.633%) 56748
CyclomaticComplexity The method 'getXml(HttpServletRequest, Locale)' has a cyclomatic complexity of 11. 442501
ConfusingTernary Avoid if (x != y) ..; else ..; 450451
ConfusingTernary Avoid if (x != y) ..; else ..; 452453

fr/paris/lutece/plugins/suggest/business/SuggestSubmitDAO.java

Rule Violation Ligne
ConfusingTernary Avoid if (x != y) ..; else ..; 156163
ConfusingTernary Avoid if (x != y) ..; else ..; 173180
ConfusingTernary Avoid if (x != y) ..; else ..; 187194
MissingOverride The method 'store(SuggestSubmit, Plugin)' is missing an @Override annotation. 257312
ConfusingTernary Avoid if (x != y) ..; else ..; 267274
ConfusingTernary Avoid if (x != y) ..; else ..; 284291
ConfusingTernary Avoid if (x != y) ..; else ..; 298305
NcssCount The method 'selectListByFilter(SubmitFilter, Plugin)' has a NCSS line count of 65. 324469
ExcessiveMethodLength Avoid really long methods. 324469
CyclomaticComplexity The method 'selectListByFilter(SubmitFilter, Plugin)' has a cyclomatic complexity of 25. 324469
NPathComplexity The method 'selectListByFilter(SubmitFilter, Plugin)' has an NPath complexity of 12589056 324469
CyclomaticComplexity The method 'selectIdListByFilter(SubmitFilter, Plugin)' has a cyclomatic complexity of 27. 481633
NcssCount The method 'selectIdListByFilter(SubmitFilter, Plugin)' has a NCSS line count of 69. 481633
NPathComplexity The method 'selectIdListByFilter(SubmitFilter, Plugin)' has an NPath complexity of 50343936 481633
ExcessiveMethodLength Avoid really long methods. 481633
NPathComplexity The method 'selectCountByFilter(SubmitFilter, Plugin)' has an NPath complexity of 25171968 645791
CyclomaticComplexity The method 'selectCountByFilter(SubmitFilter, Plugin)' has a cyclomatic complexity of 26. 645791
ExcessiveMethodLength Avoid really long methods. 645791
NcssCount The method 'selectCountByFilter(SubmitFilter, Plugin)' has a NCSS line count of 66. 645791
CyclomaticComplexity The method 'getOrderBy(List)' has a cyclomatic complexity of 17. 800890
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 877
MissingOverride The method 'storeSuggestSubmitOrder(int, int, Plugin)' is missing an @Override annotation. 905913

fr/paris/lutece/plugins/suggest/business/SuggestSubmitType.java

Rule Violation Ligne
MissingOverride The method 'getResourceTypeCode()' is missing an @Override annotation. 148151
MissingOverride The method 'getResourceId()' is missing an @Override annotation. 158161
AddEmptyString Do not add empty strings 160
OverrideBothEqualsAndHashcode Ensure you override both equals() and hashCode() 186
MissingOverride The method 'equals(Object)' is missing an @Override annotation. 186189

fr/paris/lutece/plugins/suggest/business/SuggestSubmitTypeDAO.java

Rule Violation Ligne
MissingOverride The method 'insert(SuggestSubmitType, Plugin)' is missing an @Override annotation. 100125
ConfusingTernary Avoid if (x != y) ..; else ..; 112119
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 136152
MissingOverride The method 'selectList(Plugin)' is missing an @Override annotation. 161176
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 186193
MissingOverride The method 'store(SuggestSubmitType, Plugin)' is missing an @Override annotation. 203225
ConfusingTernary Avoid if (x != y) ..; else ..; 212219
MissingOverride The method 'selectListByIdSuggest(int, Plugin)' is missing an @Override annotation. 259275
MissingOverride The method 'isAssociateToSuggest(int, Plugin)' is missing an @Override annotation. 286295

fr/paris/lutece/plugins/suggest/business/SuggestSubmitTypeHome.java

Rule Violation Ligne
ConfusingTernary Avoid if (x != y) ..; else ..; 99106

fr/paris/lutece/plugins/suggest/business/SuggestUserInfo.java

Rule Violation Ligne
CommentRequired Header comments are required 38154
CommentRequired Public method and constructor comments are required 4750
CommentRequired Public method and constructor comments are required 5255
CommentRequired Public method and constructor comments are required 5760
CommentRequired Public method and constructor comments are required 6265
CommentRequired Public method and constructor comments are required 6770
CommentRequired Public method and constructor comments are required 7275
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
MissingOverride The method 'toString()' is missing an @Override annotation. 150153

fr/paris/lutece/plugins/suggest/business/SuggestUserInfoDAO.java

Rule Violation Ligne
CommentRequired Header comments are required 39133

fr/paris/lutece/plugins/suggest/business/SuggestWorkgroupRemovalListener.java

Rule Violation Ligne
MissingOverride The method 'canBeRemoved(String)' is missing an @Override annotation. 5871
MissingOverride The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. 8286

fr/paris/lutece/plugins/suggest/business/VideoType.java

Rule Violation Ligne
ArrayIsStoredDirectly The user-supplied array 'video' is stored directly. 109
MethodReturnsInternalArray Returning '_video' may expose an internal array. 119

fr/paris/lutece/plugins/suggest/business/VideoTypeDAO.java

Rule Violation Ligne
MissingOverride The method 'insert(VideoType, Plugin)' is missing an @Override annotation. 6485
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 77
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 79
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 96117
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 127134
MissingOverride The method 'store(VideoType, Plugin)' is missing an @Override annotation. 144155

fr/paris/lutece/plugins/suggest/business/VoteButton.java

Rule Violation Ligne
MethodReturnsInternalArray Returning '_byIconContent' may expose an internal array. 135
ArrayIsStoredDirectly The user-supplied array 'iconContent' is stored directly. 144

fr/paris/lutece/plugins/suggest/business/VoteDAO.java

Rule Violation Ligne
MissingOverride The method 'insert(Vote, Plugin)' is missing an @Override annotation. 6573
MissingOverride The method 'selectVoteByIdSuggestSubmit(int, Plugin)' is missing an @Override annotation. 84106
MissingOverride The method 'selectCountVoteByIdSuggestSubmitAndLuteceUserKey(int, String, Plugin)' is missing an @Override annotation. 119136
MissingOverride The method 'selectCountVoteByIdSuggestSubmit(int, Plugin)' is missing an @Override annotation. 147163

fr/paris/lutece/plugins/suggest/business/VoteTypeDAO.java

Rule Violation Ligne
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 6789
MissingOverride The method 'select(Plugin)' is missing an @Override annotation. 98121

fr/paris/lutece/plugins/suggest/business/attribute/SuggestAttributeDAO.java

Rule Violation Ligne
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 5675
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 58
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 8093
MissingOverride The method 'insert(int, String, Object, Plugin)' is missing an @Override annotation. 8093
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 88
ConfusingTernary Avoid if (x != y) ..; else ..; 88
MissingOverride The method 'remove(int, Plugin)' is missing an @Override annotation. 98105

fr/paris/lutece/plugins/suggest/business/rss/SuggestResourceRss.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34893
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 317
PositionLiteralsFirstInComparisons Position literals first in String comparisons 334
AvoidDuplicateLiterals The String literal "<div[^>]+>" appears 7 times in this file; the first occurrence is on line 347 347
AvoidDuplicateLiterals The String literal "</div>" appears 7 times in this file; the first occurrence is on line 347 347
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 374
ConfusingTernary Avoid if (x != y) ..; else ..; 418427
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 429
ConfusingTernary Avoid if (x != y) ..; else ..; 449458
NcssCount The method 'createHtmlRss()' has a NCSS line count of 77. 472605
ExcessiveMethodLength Avoid really long methods. 472605
ConfusingTernary Avoid if (x != y) ..; else ..; 519526
NcssCount The method 'getFeed()' has a NCSS line count of 99. 611803
ExcessiveMethodLength Avoid really long methods. 611803
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 651
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 681
ConfusingTernary Avoid if (x != y) ..; else ..; 683690
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 767
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 821

fr/paris/lutece/plugins/suggest/business/rss/SuggestResourceRssConfigDAO.java

Rule Violation Ligne
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 6578
MissingOverride The method 'insert(SuggestResourceRssConfig, Plugin)' is missing an @Override annotation. 6578
MissingOverride The method 'store(SuggestResourceRssConfig, Plugin)' is missing an @Override annotation. 88102
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 114137
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 147154
MissingOverride The method 'loadAll(Plugin)' is missing an @Override annotation. 163186

fr/paris/lutece/plugins/suggest/service/CategoryResourceIdService.java

Rule Violation Ligne
CallSuperInConstructor It is a good practice to call super() in a constructor 6265
MissingOverride The method 'register()' is missing an @Override annotation. 7083
ShortVariable Avoid variables with short names like rt 72
ShortVariable Avoid variables with short names like p 78
MissingOverride The method 'getResourceIdList(Locale)' is missing an @Override annotation. 9295
MissingOverride The method 'getTitle(String, Locale)' is missing an @Override annotation. 106122

fr/paris/lutece/plugins/suggest/service/CommentSubmitService.java

Rule Violation Ligne
CommentRequired Header comments are required 45183
NonThreadSafeSingleton Singleton is not thread safe 176179

fr/paris/lutece/plugins/suggest/service/DefaultMessageResourceIdService.java

Rule Violation Ligne
CallSuperInConstructor It is a good practice to call super() in a constructor 5861
MissingOverride The method 'register()' is missing an @Override annotation. 6679
ShortVariable Avoid variables with short names like rt 68
ShortVariable Avoid variables with short names like p 74
MissingOverride The method 'getResourceIdList(Locale)' is missing an @Override annotation. 8891
MissingOverride The method 'getTitle(String, Locale)' is missing an @Override annotation. 102105

fr/paris/lutece/plugins/suggest/service/ExportFormatResourceIdService.java

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

fr/paris/lutece/plugins/suggest/service/FileManager.java

Rule Violation Ligne
UnusedPrivateField Avoid unused private fields such as 'TAG_FILE_RESOURCE'. 41
UnusedPrivateField Avoid unused private fields such as 'TAG_DOCUMENT_ID'. 42
UnusedPrivateField Avoid unused private fields such as 'TAG_ATTRIBUTE_ID'. 43
UnusedPrivateField Avoid unused private fields such as 'TAG_CONTENT_TYPE'. 44
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getCreateTemplate method if you want a default access modifier 5356
DefaultPackage Use explicit scoping instead of the default package private level 5356
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getModifyTemplate method if you want a default access modifier 6366
DefaultPackage Use explicit scoping instead of the default package private level 6366
DefaultPackage Use explicit scoping instead of the default package private level 7376
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getCreateParametersTemplate method if you want a default access modifier 7376
DefaultPackage Use explicit scoping instead of the default package private level 8386
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getModifyParametersTemplate method if you want a default access modifier 8386

fr/paris/lutece/plugins/suggest/service/ICommentSubmitService.java

Rule Violation Ligne
CommentRequired Header comments are required 44130
AvoidDuplicateLiterals The String literal "suggest.transactionManager" appears 7 times in this file; the first occurrence is on line 55 55

fr/paris/lutece/plugins/suggest/service/ISuggestSubmitService.java

Rule Violation Ligne
CommentRequired Header comments are required 50297
TooManyMethods This class has too many methods, consider refactoring it. 51297
AvoidDuplicateLiterals The String literal "suggest.transactionManager" appears 8 times in this file; the first occurrence is on line 63 63

fr/paris/lutece/plugins/suggest/service/ImageFileManager.java

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

fr/paris/lutece/plugins/suggest/service/ImageService.java

Rule Violation Ligne
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the ImageService constructor if you want a default access modifier 5558
MissingOverride The method 'getImageResource(int)' is missing an @Override annotation. 7780
MissingOverride The method 'getResourceTypeId()' is missing an @Override annotation. 8790

fr/paris/lutece/plugins/suggest/service/SuggestCategoryCacheService.java

Rule Violation Ligne
CallSuperInConstructor It is a good practice to call super() in a constructor 4649

fr/paris/lutece/plugins/suggest/service/SuggestPlugin.java

Rule Violation Ligne
MissingOverride The method 'getXPageTheme(HttpServletRequest)' is missing an @Override annotation. 7276

fr/paris/lutece/plugins/suggest/service/SuggestResourceIdService.java

Rule Violation Ligne
CallSuperInConstructor It is a good practice to call super() in a constructor 9093
MissingOverride The method 'register()' is missing an @Override annotation. 98142
ShortVariable Avoid variables with short names like rt 100
ShortVariable Avoid variables with short names like p 106
MissingOverride The method 'getResourceIdList(Locale)' is missing an @Override annotation. 151162
MissingOverride The method 'getTitle(String, Locale)' is missing an @Override annotation. 173189

fr/paris/lutece/plugins/suggest/service/SuggestService.java

Rule Violation Ligne
ConfusingTernary Avoid if (x != y) ..; else ..; 124125

fr/paris/lutece/plugins/suggest/service/SuggestSubmitService.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34561
CommentRequired Header comments are required 70561
TooManyMethods This class has too many methods, consider refactoring it. 71561
AvoidDuplicateLiterals The String literal "suggest.transactionManager" appears 6 times in this file; the first occurrence is on line 79 79
CyclomaticComplexity The method 'updateSuggestSubmitOrder(Integer, Integer, int, boolean, Plugin)' has a cyclomatic complexity of 12. 203235
CollapsibleIfStatements These nested if statements could be combined 220224
ConfusingTernary Avoid if (x != y) ..; else ..; 350365
ConfusingTernary Avoid if (x != y) ..; else ..; 376393
ConfusingTernary Avoid if (x != y) ..; else ..; 404419
NonThreadSafeSingleton Singleton is not thread safe 441444
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 555

fr/paris/lutece/plugins/suggest/service/SuggestSubmitTypeCacheService.java

Rule Violation Ligne
CallSuperInConstructor It is a good practice to call super() in a constructor 4649

fr/paris/lutece/plugins/suggest/service/SuggestUserInfoService.java

Rule Violation Ligne
NonThreadSafeSingleton Singleton is not thread safe 5962

fr/paris/lutece/plugins/suggest/service/publication/DaemonPublication.java

Rule Violation Ligne
MissingOverride The method 'run()' is missing an @Override annotation. 4750

fr/paris/lutece/plugins/suggest/service/publication/PublicationService.java

Rule Violation Ligne
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'suggestSubmit' 103

fr/paris/lutece/plugins/suggest/service/search/SuggestIndexer.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34351
MissingOverride The method 'getDescription()' is missing an @Override annotation. 105108
MissingOverride The method 'indexDocuments()' is missing an @Override annotation. 120163
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 148
MissingOverride The method 'getDocuments(String)' is missing an @Override annotation. 178201
ShortVariable Avoid variables with short names like ft 222
UselessStringValueOf No need to call String.valueOf to append to a string. 240
ShortVariable Avoid variables with short names like sb 269
MissingOverride The method 'getName()' is missing an @Override annotation. 299302
MissingOverride The method 'getVersion()' is missing an @Override annotation. 309312
MissingOverride The method 'isEnable()' is missing an @Override annotation. 319331
MissingOverride The method 'getListType()' is missing an @Override annotation. 336342
MissingOverride The method 'getSpecificSearchAppUrl()' is missing an @Override annotation. 347350

fr/paris/lutece/plugins/suggest/service/subscription/SuggestSubscribersNotificationDaemon.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34488
NPathComplexity The method 'run()' has an NPath complexity of 1478 88213
ExcessiveMethodLength Avoid really long methods. 88213
CyclomaticComplexity The method 'run()' has a cyclomatic complexity of 31. 88213
NcssCount The method 'run()' has a NCSS line count of 61. 88213
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 107
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 124144
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 143
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 161180
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 187205
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 348
ConfusingTernary Avoid if (x != y) ..; else ..; 356357
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 458
ConfusingTernary Avoid if (x != y) ..; else ..; 465466

fr/paris/lutece/plugins/suggest/service/subscription/SuggestSubscriptionProviderService.java

Rule Violation Ligne
TooManyMethods This class has too many methods, consider refactoring it. 61377
NonThreadSafeSingleton Singleton is not thread safe 8288
CyclomaticComplexity The method 'getSubscriptionHtmlDescription(LuteceUser, String, String, Locale)' has a cyclomatic complexity of 10. 106157
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 145152

fr/paris/lutece/plugins/suggest/service/suggestsearch/SuggestLuceneSearchEngine.java

Rule Violation Ligne
MissingOverride The method 'getSearchResults(String, SubmitFilter)' is missing an @Override annotation. 73141
ShortVariable Avoid variables with short names like ir 80
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 120
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 121
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 122
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 127133
ShortVariable Avoid variables with short names like si 131
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 135

fr/paris/lutece/plugins/suggest/service/suggestsearch/SuggestSearchService.java

Rule Violation Ligne
NonThreadSafeSingleton Singleton is not thread safe 6568
CyclomaticComplexity The method 'getSearchResults(String, SubmitFilter, Plugin)' has a cyclomatic complexity of 11. 84113

fr/paris/lutece/plugins/suggest/utils/ProcessBBCode.java

Rule Violation Ligne
RedundantFieldInitializer Avoid using redundant field initializer for 'acceptHTML' 75
UnusedPrivateMethod Avoid unused private methods such as 'replaceAll(String,char,String)'. 261
ShortVariable Avoid variables with short names like c 267
ExcessiveMethodLength Avoid really long methods. 300445
ExcessiveParameterList Avoid long parameter lists. 300302
CyclomaticComplexity The method 'processNestedTags(StringBuffer, String, String, String, String, String, String, boolean, boolean, boolean)' has a cyclomatic complexity of 23. 300445
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 300302
NcssCount The method 'processNestedTags(StringBuffer, String, String, String, String, String, String, boolean, boolean, boolean)' has a NCSS line count of 73. 300445
NPathComplexity The method 'processNestedTags(StringBuffer, String, String, String, String, String, String, boolean, boolean, boolean)' has an NPath complexity of 1188 300445
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 319
ConfusingTernary Avoid if (x != y) ..; else ..; 351381
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 355
ConfusingTernary Avoid if (x != y) ..; else ..; 363381
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 369
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 369
MissingOverride The method 'compare(MutableCharSequence, MutableCharSequence)' is missing an @Override annotation. 391394
CommentRequired Public method and constructor comments are required 391394
ShortVariable Avoid variables with short names like o2 391
ShortVariable Avoid variables with short names like o1 391
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 393
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 393
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 404
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 408
ConfusingTernary Avoid if (x != y) ..; else ..; 408415
ShortVariable Avoid variables with short names like m 425
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 425
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 425
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 425
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 429
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 432
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 441
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 441
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the MutableCharSequence nested class if you want a default access modifier 447531
CommentRequired Header comments are required 447531
RedundantFieldInitializer Avoid using redundant field initializer for '_param' 459
MissingOverride The method 'length()' is missing an @Override annotation. 481484
MissingOverride The method 'charAt(int)' is missing an @Override annotation. 489492
MissingOverride The method 'subSequence(int, int)' is missing an @Override annotation. 497500
MissingOverride The method 'toString()' is missing an @Override annotation. 520530
ShortVariable Avoid variables with short names like sb 522

fr/paris/lutece/plugins/suggest/utils/SuggestIndexerUtils.java

Rule Violation Ligne
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. 4685

fr/paris/lutece/plugins/suggest/utils/SuggestUtils.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 341673
ExcessivePublicCount This class has a bunch of public methods and attributes 341673
ExcessiveClassLength Avoid really long classes. 1021673
GodClass Possible God Class (WMC=143, ATFD=335, TCC=2.902%) 1021673
CyclomaticComplexity The class 'SuggestUtils' has a total cyclomatic complexity of 143 (highest 11). 1021673
TooManyMethods This class has too many methods, consider refactoring it. 1031673
AvoidDuplicateLiterals The String literal "src='image?" appears 4 times in this file; the first occurrence is on line 202 202
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 209
ShortVariable Avoid variables with short names like t 214
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 223
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 255
ShortVariable Avoid variables with short names like t 259
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 268
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 295
ShortVariable Avoid variables with short names like t 300
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 309
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 336
ShortVariable Avoid variables with short names like t 341
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 350
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 597
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 598
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 673
LinguisticNaming Linguistics Antipattern - The getter 'getHtmlFormEntry' should not return void linguistically 751760
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 753
LinguisticNaming Linguistics Antipattern - The getter 'getHtmlResponseEntry' should not return void linguistically 774785
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 778
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 803
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 842
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 857
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 957
ConfusingTernary Avoid if (x != y) ..; else ..; 960969
CyclomaticComplexity The method 'initSubmitFilterBySort(SubmitFilter, int)' has a cyclomatic complexity of 11. 10761142
AssignmentInOperand Avoid assignments in operands 1445
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 1445
ShortVariable Avoid variables with short names like it 1477
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 1480
ShortVariable Avoid variables with short names like ts 1480
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 1503
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1558
ConfusingTernary Avoid if (x != y) ..; else ..; 16591667

fr/paris/lutece/plugins/suggest/web/CategoryJspBean.java

Rule Violation Ligne
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 106
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 121
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 155
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 199
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 200
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 201
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 203
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 203
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 244
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 245

fr/paris/lutece/plugins/suggest/web/DefaultMessageJspBean.java

Rule Violation Ligne
CyclomaticComplexity The method 'getDefaultMessageData(HttpServletRequest, DefaultMessage)' has a cyclomatic complexity of 15. 172286
NcssCount The method 'getDefaultMessageData(HttpServletRequest, DefaultMessage)' has a NCSS line count of 64. 172286
ExcessiveMethodLength Avoid really long methods. 172286
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 185
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 186
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 187

fr/paris/lutece/plugins/suggest/web/ExportFormatJspBean.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34543
GodClass Possible God Class (WMC=50, ATFD=75, TCC=30.909%) 84543
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 132
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 147
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 182
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 227
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 228
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 229
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 231
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 231
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 272
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 273
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 341
CyclomaticComplexity The method 'getExportFormatData(MultipartHttpServletRequest, ExportFormat)' has a cyclomatic complexity of 16. 378442
NPathComplexity The method 'getExportFormatData(MultipartHttpServletRequest, ExportFormat)' has an NPath complexity of 240 378442
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 455
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 456
ShortVariable Avoid variables with short names like os 490
LinguisticNaming Linguistics Antipattern - The method 'isValid' indicates linguistically it returns a boolean, but it returns 'String' 512530
ShortVariable Avoid variables with short names like is 521
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 524

fr/paris/lutece/plugins/suggest/web/ManageSuggestJspBean.java

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

fr/paris/lutece/plugins/suggest/web/ResourceServletCache.java

Rule Violation Ligne
CallSuperInConstructor It is a good practice to call super() in a constructor 5058
PositionLiteralsFirstInCaseInsensitiveComparisons Position literals first in String comparisons for EqualsIgnoreCase 54

fr/paris/lutece/plugins/suggest/web/ResourceValueObject.java

Rule Violation Ligne
MethodReturnsInternalArray Returning '_content' may expose an internal array. 75
ArrayIsStoredDirectly The user-supplied array 'content' is stored directly. 84

fr/paris/lutece/plugins/suggest/web/SuggestApp.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 342037
ExcessiveClassLength Avoid really long classes. 1102037
CyclomaticComplexity The class 'SuggestApp' has a total cyclomatic complexity of 205 (highest 21). 1102037
TooManyMethods This class has too many methods, consider refactoring it. 1112037
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 260
ImmutableField Private field '_suggestSubmitService' could be made final; it is only initialized in the declaration or constructor. 265
ImmutableField Private field '_commentSubmitService' could be made final; it is only initialized in the declaration or constructor. 266
MissingOverride The method 'getPage(HttpServletRequest, int, Plugin)' is missing an @Override annotation. 283387
CyclomaticComplexity The method 'getPage(HttpServletRequest, int, Plugin)' has a cyclomatic complexity of 18. 283387
ExcessiveMethodLength Avoid really long methods. 283387
ConfusingTernary Avoid if (x != y) ..; else ..; 375383
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 406
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 453
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 515
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 570
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 599
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 619
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 658
CyclomaticComplexity The method 'doCreateSuggestSubmit(XPage, int, HttpServletRequest)' has a cyclomatic complexity of 20. 687769
NPathComplexity The method 'doCreateSuggestSubmit(XPage, int, HttpServletRequest)' has an NPath complexity of 10368 687769
CollapsibleIfStatements These nested if statements could be combined 725728
CollapsibleIfStatements These nested if statements could be combined 734737
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 758
CyclomaticComplexity The method 'doCreateComment(XPage, int, HttpServletRequest)' has a cyclomatic complexity of 21. 9581040
NPathComplexity The method 'doCreateComment(XPage, int, HttpServletRequest)' has an NPath complexity of 12960 9581040
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 971
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1028
NPathComplexity The method 'doReport(XPage, int, HttpServletRequest)' has an NPath complexity of 288 10571122
CyclomaticComplexity The method 'doReport(XPage, int, HttpServletRequest)' has a cyclomatic complexity of 13. 10571122
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1113
CyclomaticComplexity The method 'doVote(XPage, int, HttpServletRequest)' has a cyclomatic complexity of 10. 11381181
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1230
ConfusingTernary Avoid if (x != y) ..; else ..; 12401241
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1347
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1389
ConfusingTernary Avoid if (x != y) ..; else ..; 14031404
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1404
UnusedFormalParameter Avoid unused method parameters such as 'nMode'. 1431
CyclomaticComplexity The method 'getHtmlSuggestSubmitDetail(HttpServletRequest, int, Plugin, SuggestSubmit, LuteceUser)' has a cyclomatic complexity of 10. 14311491
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1434
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1435
UnusedFormalParameter Avoid unused method parameters such as 'plugin'. 1544
UnusedFormalParameter Avoid unused method parameters such as 'nMode'. 1544
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1546
UnusedFormalParameter Avoid unused method parameters such as 'nMode'. 1616
CyclomaticComplexity The method 'doInsertSuggestSubmit(HttpServletRequest, int, Plugin, Suggest, int, int, LuteceUser)' has a cyclomatic complexity of 10. 16491726
UnusedFormalParameter Avoid unused method parameters such as 'nMode'. 1649
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 1713
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1751
NPathComplexity The method 'getSearchFields(HttpServletRequest)' has an NPath complexity of 256 18441877
ConfusingTernary Avoid if (x != y) ..; else ..; 18601861
ConfusingTernary Avoid if (x != y) ..; else ..; 1862
ConfusingTernary Avoid if (x != y) ..; else ..; 1864
ConfusingTernary Avoid if (x != y) ..; else ..; 1865
ConfusingTernary Avoid if (x != y) ..; else ..; 1866
ConfusingTernary Avoid if (x != y) ..; else ..; 18671868
ConfusingTernary Avoid if (x != y) ..; else ..; 1869
ConfusingTernary Avoid if (x != y) ..; else ..; 1871

fr/paris/lutece/plugins/suggest/web/SuggestJspBean.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 343720
ExcessivePublicCount This class has a bunch of public methods and attributes 343720
NcssCount The class 'SuggestJspBean' has a NCSS line count of 1751 (Highest = 199). 1453720
CyclomaticComplexity The class 'SuggestJspBean' has a total cyclomatic complexity of 411 (highest 67). 1453720
TooManyFields Too many fields 1453720
ExcessiveClassLength Avoid really long classes. 1453720
TooManyMethods This class has too many methods, consider refactoring it. 1463720
ImmutableField Private field '_searchFields' could be made final; it is only initialized in the declaration or constructor. 435
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 436
ImmutableField Private field '_suggestSubmitService' could be made final; it is only initialized in the declaration or constructor. 456
ImmutableField Private field '_commentSubmitService' could be made final; it is only initialized in the declaration or constructor. 457
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 505
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 506507
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 568
NcssCount The method 'getManageSuggestSubmit(HttpServletRequest, HttpServletResponse)' has a NCSS line count of 92. 609785
CyclomaticComplexity The method 'getManageSuggestSubmit(HttpServletRequest, HttpServletResponse)' has a cyclomatic complexity of 22. 609785
NPathComplexity The method 'getManageSuggestSubmit(HttpServletRequest, HttpServletResponse)' has an NPath complexity of 29160 609785
ExcessiveMethodLength Avoid really long methods. 609785
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 611
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 612
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 613
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 616
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 616
AvoidDuplicateLiterals The String literal "Access denied" appears 6 times in this file; the first occurrence is on line 635 635
ConfusingTernary Avoid if (x != y) ..; else ..; 642654
ConfusingTernary Avoid if (x != y) ..; else ..; 678697
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 702
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 703704
ConfusingTernary Avoid if (x != y) ..; else ..; 739749
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 799
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 805
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 805
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 830
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 831832
CyclomaticComplexity The method 'doCreateSuggestSubmit(HttpServletRequest)' has a cyclomatic complexity of 15. 904990
NPathComplexity The method 'doCreateSuggestSubmit(HttpServletRequest)' has an NPath complexity of 582 904990
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 919
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 919
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 922
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 923
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 924
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 925
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 926
CollapsibleIfStatements These nested if statements could be combined 931934
CollapsibleIfStatements These nested if statements could be combined 940943
ExcessiveMethodLength Avoid really long methods. 10011104
CyclomaticComplexity The method 'getManageCommentSubmit(HttpServletRequest)' has a cyclomatic complexity of 12. 10011104
NPathComplexity The method 'getManageCommentSubmit(HttpServletRequest)' has an NPath complexity of 324 10011104
NcssCount The method 'getManageCommentSubmit(HttpServletRequest)' has a NCSS line count of 61. 10011104
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1004
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1010
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1027
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1039
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1071
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 10721073
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1116
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1118
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1159
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1160
ConfusingTernary Avoid if (x != y) ..; else ..; 11791187
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1205
CyclomaticComplexity The method 'getConfirmMassChangeSuggestSubmitCategory(HttpServletRequest)' has a cyclomatic complexity of 10. 12421284
CyclomaticComplexity The method 'doMassChangeSuggestSubmitCategory(HttpServletRequest)' has a cyclomatic complexity of 11. 12951341
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1301
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1302
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1354
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1361
ConfusingTernary Avoid if (x != y) ..; else ..; 13931422
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1397
ConfusingTernary Avoid if (x != y) ..; else ..; 14141422
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1438
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1441
ExcessiveMethodLength Avoid really long methods. 16291949
CyclomaticComplexity The method 'getSuggestData(MultipartHttpServletRequest, Suggest)' has a cyclomatic complexity of 67. 16291949
NcssCount The method 'getSuggestData(MultipartHttpServletRequest, Suggest)' has a NCSS line count of 199. 16291949
NPathComplexity The method 'getSuggestData(MultipartHttpServletRequest, Suggest)' has an NPath complexity of 829440000 16291949
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1632
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1633
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1637
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1639
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1645
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1647
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1648
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1649
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1651
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1652
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1656
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1657
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1658
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1659
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1661
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1663
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1666
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1667
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1668
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1670
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1674
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1675
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1676
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1677
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1678
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1679
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1680
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1683
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1688
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1689
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1690
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1691
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1692
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1693
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1694
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1695
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1696
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1697
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1701
ConfusingTernary Avoid if (x != y) ..; else ..; 19021909
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1990
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 2035
NcssCount The method 'getModifySuggest(HttpServletRequest)' has a NCSS line count of 86. 20632189
ExcessiveMethodLength Avoid really long methods. 20632189
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 2066
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 2067
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 2068
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 2071
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 2072
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 2074
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2094
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 21052106
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 2151
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 2364
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 2366
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 2405
UnusedLocalVariable Avoid unused local variables such as 'plugin'. 2405
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 2427
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 2428
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 2479
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 2544
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 2549
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 2557
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 2648
ConfusingTernary Avoid if (x != y) ..; else ..; 3030
UnusedFormalParameter Avoid unused method parameters such as 'locale'. 3068
UnusedFormalParameter Avoid unused method parameters such as 'locale'. 3090
ExcessiveMethodLength Avoid really long methods. 32773441
NPathComplexity The method 'getStatistics(HttpServletRequest)' has an NPath complexity of 24576 32773441
CyclomaticComplexity The method 'getStatistics(HttpServletRequest)' has a cyclomatic complexity of 21. 32773441
NcssCount The method 'getStatistics(HttpServletRequest)' has a NCSS line count of 92. 32773441
ConfusingTernary Avoid if (x != y) ..; else ..; 32973305
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 3302
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3315
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3317
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3327
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3329
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3383
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3385
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3386
ShortVariable Avoid variables with short names like fV 3391
ShortVariable Avoid variables with short names like fC 3392
ShortVariable Avoid variables with short names like bd 3394
AvoidDecimalLiteralsInBigDecimalConstructor Avoid creating BigDecimal with a decimal (float/double) literal. Use a String literal 3394
AvoidDecimalLiteralsInBigDecimalConstructor Avoid creating BigDecimal with a decimal (float/double) literal. Use a String literal 3397
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3499
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3500
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3502
NPathComplexity The method 'updateSearchFieldsData(HttpServletRequest)' has an NPath complexity of 4374 35383589
CyclomaticComplexity The method 'updateSearchFieldsData(HttpServletRequest)' has a cyclomatic complexity of 16. 35383589
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3613
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3672

fr/paris/lutece/plugins/suggest/web/SuggestSubmitTypeJspBean.java

Rule Violation Ligne
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 113
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 128
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 133134
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 156
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 196
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 197
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 198
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 200
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 200
ConfusingTernary Avoid if (x != y) ..; else ..; 203219
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 240
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 241
ConfusingTernary Avoid if (x != y) ..; else ..; 245261
CyclomaticComplexity The method 'getSuggestSubmitTypeData(MultipartHttpServletRequest, SuggestSubmitType)' has a cyclomatic complexity of 10. 335386
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 338
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 343
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 344

fr/paris/lutece/plugins/suggest/web/SuggestVideoResourceServlet.java

Rule Violation Ligne
ShortVariable Avoid variables with short names like r 87
ShortVariable Avoid variables with short names like r 137

fr/paris/lutece/plugins/suggest/web/action/ExportSuggestSubmitAction.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34255
ExcessiveMethodLength Avoid really long methods. 143244
CyclomaticComplexity The method 'process(HttpServletRequest, HttpServletResponse, AdminUser, SuggestAdminSearchFields)' has a cyclomatic complexity of 10. 143244
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 147
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 151
ConfusingTernary Avoid if (x != y) ..; else ..; 217
ShortVariable Avoid variables with short names like os 229

fr/paris/lutece/plugins/suggest/web/action/MassChangeCategorySuggestSubmitAction.java

Rule Violation Ligne
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 120
ConfusingTernary Avoid if (x != y) ..; else ..; 129159

fr/paris/lutece/plugins/suggest/web/action/MassChangeCommentSuggestSubmitAction.java

Rule Violation Ligne
UncommentedEmptyMethodBody Document empty method body 7879
CyclomaticComplexity The method 'process(HttpServletRequest, HttpServletResponse, AdminUser, SuggestAdminSearchFields)' has a cyclomatic complexity of 12. 112163
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 115
ConfusingTernary Avoid if (x != y) ..; else ..; 120158

fr/paris/lutece/plugins/suggest/web/action/MassChangeVoteSuggestSubmitAction.java

Rule Violation Ligne
UncommentedEmptyMethodBody Document empty method body 7879
CyclomaticComplexity The method 'process(HttpServletRequest, HttpServletResponse, AdminUser, SuggestAdminSearchFields)' has a cyclomatic complexity of 12. 112163
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 115
ConfusingTernary Avoid if (x != y) ..; else ..; 120158

fr/paris/lutece/plugins/suggest/web/action/MassPinnedSuggestSubmitAction.java

Rule Violation Ligne
UncommentedEmptyMethodBody Document empty method body 7879
CyclomaticComplexity The method 'process(HttpServletRequest, HttpServletResponse, AdminUser, SuggestAdminSearchFields)' has a cyclomatic complexity of 12. 112167
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 115
ConfusingTernary Avoid if (x != y) ..; else ..; 120162

fr/paris/lutece/plugins/suggest/web/action/SuggestAdminSearchFields.java

Rule Violation Ligne
CommentRequired Public method and constructor comments are required 6164
CommentRequired Public method and constructor comments are required 6669
CommentRequired Public method and constructor comments are required 7174
CommentRequired Public method and constructor comments are required 7679
CommentRequired Public method and constructor comments are required 8184
CommentRequired Public method and constructor comments are required 8689
CommentRequired Public method and constructor comments are required 9194
CommentRequired Public method and constructor comments are required 9699
CommentRequired Public method and constructor comments are required 111114
CommentRequired Public method and constructor comments are required 116119
CommentRequired Public method and constructor comments are required 121124
CommentRequired Public method and constructor comments are required 126129
CommentRequired Public method and constructor comments are required 131134
CommentRequired Public method and constructor comments are required 136139
CommentRequired Public method and constructor comments are required 141144
CommentRequired Public method and constructor comments are required 146149

Priority 4

fr/paris/lutece/plugins/suggest/business/SuggestDAO.java

Rule Violation Ligne
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 144

fr/paris/lutece/plugins/suggest/business/SuggestSubmitDAO.java

Rule Violation Ligne
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 141

fr/paris/lutece/plugins/suggest/business/Vote.java

Rule Violation Ligne
ShortClassName Avoid short class names like Vote 4186

fr/paris/lutece/plugins/suggest/service/search/SuggestIndexer.java

Rule Violation Ligne
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' 180
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' 196
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' 217
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' 220
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' 220

fr/paris/lutece/plugins/suggest/utils/ProcessBBCode.java

Rule Violation Ligne
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 8386
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 100103
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 261

fr/paris/lutece/plugins/suggest/web/action/ISuggestAction.java

Rule Violation Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.business.user.AdminUser' 36
UnusedImports Avoid unused imports such as 'java.util.Map' 40
UnusedImports Avoid unused imports such as 'javax.servlet.http.HttpServletRequest' 42
UnusedImports Avoid unused imports such as 'javax.servlet.http.HttpServletResponse' 43

Fichiers

fr/paris/lutece/plugins/suggest/business/Category.java

Rule Violation Priority Ligne
MissingOverride The method 'equals(Object)' is missing an @Override annotation. 3 101105
OverrideBothEqualsAndHashcode Ensure you override both equals() and hashCode() 3 101
MissingOverride The method 'getResourceTypeCode()' is missing an @Override annotation. 3 112115
MissingOverride The method 'getResourceId()' is missing an @Override annotation. 3 122125

fr/paris/lutece/plugins/suggest/business/CommentSubmitDAO.java

Rule Violation Priority Ligne
NPathComplexity The method 'selectListByFilter(SubmitFilter, Integer, Plugin)' has an NPath complexity of 2448 3 209296
CyclomaticComplexity The method 'selectListByFilter(SubmitFilter, Integer, Plugin)' has a cyclomatic complexity of 13. 3 209296
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 247
CyclomaticComplexity The method 'selectCountByFilter(SubmitFilter, Plugin)' has a cyclomatic complexity of 10. 3 337396
NPathComplexity The method 'selectCountByFilter(SubmitFilter, Plugin)' has an NPath complexity of 408 3 337396
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 448

fr/paris/lutece/plugins/suggest/business/DefaultMessage.java

Rule Violation Priority Ligne
MissingOverride The method 'getResourceTypeCode()' is missing an @Override annotation. 3 178181
MissingOverride The method 'getResourceId()' is missing an @Override annotation. 3 188191

fr/paris/lutece/plugins/suggest/business/Entry.java

Rule Violation Priority Ligne
MissingOverride The method 'getComment()' is missing an @Override annotation. 3 111114
MissingOverride The method 'getEntryType()' is missing an @Override annotation. 3 119122
MissingOverride The method 'getHelpMessage()' is missing an @Override annotation. 3 127130
MissingOverride The method 'getIdEntry()' is missing an @Override annotation. 3 135138
MissingOverride The method 'getPosition()' is missing an @Override annotation. 3 143146
MissingOverride The method 'getTitle()' is missing an @Override annotation. 3 151154
MissingOverride The method 'isMandatory()' is missing an @Override annotation. 3 159162
MissingOverride The method 'isShowInSuggestSubmitList()' is missing an @Override annotation. 3 167170
MissingOverride The method 'setComment(String)' is missing an @Override annotation. 3 178181
MissingOverride The method 'setEntryType(EntryType)' is missing an @Override annotation. 3 189192
MissingOverride The method 'setHelpMessage(String)' is missing an @Override annotation. 3 200203
MissingOverride The method 'setIdEntry(int)' is missing an @Override annotation. 3 211214
MissingOverride The method 'setShowInSuggestSubmitList(boolean)' is missing an @Override annotation. 3 222225
MissingOverride The method 'setMandatory(boolean)' is missing an @Override annotation. 3 233236
MissingOverride The method 'setPosition(int)' is missing an @Override annotation. 3 244247
MissingOverride The method 'setTitle(String)' is missing an @Override annotation. 3 255258
MissingOverride The method 'getSuggest()' is missing an @Override annotation. 3 264267
MissingOverride The method 'setSuggest(Suggest)' is missing an @Override annotation. 3 275278
MissingOverride The method 'getRegularExpressionList()' is missing an @Override annotation. 3 284287
MissingOverride The method 'setRegularExpressionList(List)' is missing an @Override annotation. 3 295298
MissingOverride The method 'getDefaultValue()' is missing an @Override annotation. 3 304307
MissingOverride The method 'setDefaultValue(String)' is missing an @Override annotation. 3 315318
MissingOverride The method 'getWidth()' is missing an @Override annotation. 3 324327
MissingOverride The method 'setWidth(int)' is missing an @Override annotation. 3 335338
MissingOverride The method 'getHeight()' is missing an @Override annotation. 3 344347
MissingOverride The method 'setHeight(int)' is missing an @Override annotation. 3 355358
MissingOverride The method 'getMaxSizeEnter()' is missing an @Override annotation. 3 364367
MissingOverride The method 'setMaxSizeEnter(int)' is missing an @Override annotation. 3 375378
MissingOverride The method 'getTemplateHtmlCodeForm()' is missing an @Override annotation. 3 386389
MissingOverride The method 'getTemplateHtmlCodeResponse()' is missing an @Override annotation. 3 396399
MissingOverride The method 'getRequestData(HttpServletRequest, Locale)' is missing an @Override annotation. 3 410413
MissingOverride The method 'getResponseData(HttpServletRequest, List, Locale)' is missing an @Override annotation. 3 426429
MissingOverride The method 'getResponseData(int, HttpServletRequest, List, Locale, Plugin)' is missing an @Override annotation. 3 446449
MissingOverride The method 'getTemplateCreate()' is missing an @Override annotation. 3 456459
MissingOverride The method 'getTemplateModify()' is missing an @Override annotation. 3 466469
MissingOverride The method 'getPaginator(int, String, String, String)' is missing an @Override annotation. 3 484487
MissingOverride The method 'getReferenceListRegularExpression(IEntry, Plugin)' is missing an @Override annotation. 3 498501
MissingOverride The method 'getEntryAdditionalAttributeList()' is missing an @Override annotation. 3 507510
MissingOverride The method 'setEntryAdditionalAttributeList(List)' is missing an @Override annotation. 3 518521

fr/paris/lutece/plugins/suggest/business/EntryAdditionalAttributeDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'insert(EntryAdditionalAttribute, Plugin)' is missing an @Override annotation. 3 6171
MissingOverride The method 'selectEntryAdditionalAttributeList(int, Plugin)' is missing an @Override annotation. 3 82102
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 3 112119
MissingOverride The method 'store(EntryAdditionalAttribute, Plugin)' is missing an @Override annotation. 3 129139

fr/paris/lutece/plugins/suggest/business/EntryDAO.java

Rule Violation Priority Ligne
TooManyMethods This class has too many methods, consider refactoring it. 3 47481
MissingOverride The method 'insert(IEntry, Plugin)' is missing an @Override annotation. 3 136160
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 3 171224
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 3 234241
MissingOverride The method 'store(IEntry, Plugin)' is missing an @Override annotation. 3 251272
MissingOverride The method 'selectEntryListByFilter(EntryFilter, Plugin)' is missing an @Override annotation. 3 283347
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 291
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 293
MissingOverride The method 'selectNumberEntryByFilter(EntryFilter, Plugin)' is missing an @Override annotation. 3 358386
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 362
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 364
MissingOverride The method 'deleteVerifyBy(int, int, Plugin)' is missing an @Override annotation. 3 398406
MissingOverride The method 'insertVerifyBy(int, int, Plugin)' is missing an @Override annotation. 3 418426
MissingOverride The method 'selectListRegularExpressionKeyByIdEntry(int, Plugin)' is missing an @Override annotation. 3 437453
MissingOverride The method 'isRegularExpressionIsUse(int, Plugin)' is missing an @Override annotation. 3 464480

fr/paris/lutece/plugins/suggest/business/EntryHome.java

Rule Violation Priority Ligne
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 172175

fr/paris/lutece/plugins/suggest/business/EntryTypeDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 3 6180
MissingOverride The method 'select(Plugin)' is missing an @Override annotation. 3 89110

fr/paris/lutece/plugins/suggest/business/EntryTypeEditorBbcode.java

Rule Violation Priority Ligne
CommentRequired Public method and constructor comments are required 3 7174

fr/paris/lutece/plugins/suggest/business/EntryTypeImage.java

Rule Violation Priority Ligne
CyclomaticComplexity The method 'getRequestData(HttpServletRequest, Locale)' has a cyclomatic complexity of 11. 3 88163
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 91
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 92
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 93
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 94
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 95
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 96
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 97
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 99
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 100
ConfusingTernary Avoid if (x != y) ..; else ..; 3 213231

fr/paris/lutece/plugins/suggest/business/EntryTypeText.java

Rule Violation Priority Ligne
CyclomaticComplexity The method 'getRequestData(HttpServletRequest, Locale)' has a cyclomatic complexity of 11. 3 85163
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 88
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 89
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 90
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 91
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 93
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 94
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 96
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 97

fr/paris/lutece/plugins/suggest/business/EntryTypeTextArea.java

Rule Violation Priority Ligne
NPathComplexity The method 'getRequestData(HttpServletRequest, Locale)' has an NPath complexity of 336 3 83169
CyclomaticComplexity The method 'getRequestData(HttpServletRequest, Locale)' has a cyclomatic complexity of 13. 3 83169
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 86
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 87
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 88
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 89
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 92
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 93
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 95
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 96
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 97

fr/paris/lutece/plugins/suggest/business/EntryTypeUrl.java

Rule Violation Priority Ligne
CyclomaticComplexity The method 'getRequestData(HttpServletRequest, Locale)' has a cyclomatic complexity of 11. 3 85163
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 88
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 89
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 90
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 91
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 93
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 94
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 96
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 97

fr/paris/lutece/plugins/suggest/business/EntryTypeVideo.java

Rule Violation Priority Ligne
ExcessiveMethodLength Avoid really long methods. 3 96204
NcssCount The method 'getRequestData(HttpServletRequest, Locale)' has a NCSS line count of 64. 3 96204
CyclomaticComplexity The method 'getRequestData(HttpServletRequest, Locale)' has a cyclomatic complexity of 11. 3 96204
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 99
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 100
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 101
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 102
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 103
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 104
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 105
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 106
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 107
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 108
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 109
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 110
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 112
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 113
ConfusingTernary Avoid if (x != y) ..; else ..; 3 256334
AvoidDuplicateLiterals The String literal "');" appears 6 times in this file; the first occurrence is on line 300 3 300
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 306

fr/paris/lutece/plugins/suggest/business/ExportFormat.java

Rule Violation Priority Ligne
MethodReturnsInternalArray Returning '_xsl' may expose an internal array. 3 118
ArrayIsStoredDirectly The user-supplied array 'donnees' is stored directly. 3 127
MissingOverride The method 'getResourceTypeCode()' is missing an @Override annotation. 3 137140
MissingOverride The method 'getResourceId()' is missing an @Override annotation. 3 147150
AddEmptyString Do not add empty strings 3 149

fr/paris/lutece/plugins/suggest/business/ExportFormatDAO.java

Rule Violation Priority Ligne
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 91103
MissingOverride The method 'insert(ExportFormat, Plugin)' is missing an @Override annotation. 3 91103

fr/paris/lutece/plugins/suggest/business/IEntry.java

Rule Violation Priority Ligne
LinguisticNaming Linguistics Antipattern - The getter 'getXml' should not return void linguistically 3 359

fr/paris/lutece/plugins/suggest/business/ImageResourceDAO.java

Rule Violation Priority Ligne
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 5265

fr/paris/lutece/plugins/suggest/business/ReportedMessageDAO.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 42171

fr/paris/lutece/plugins/suggest/business/ResponseDAO.java

Rule Violation Priority Ligne
ConfusingTernary Avoid if (x != y) ..; else ..; 3 104111
ConfusingTernary Avoid if (x != y) ..; else ..; 3 221228
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 256
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 257
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 258

fr/paris/lutece/plugins/suggest/business/SearchFields.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 38118
CommentRequired Public method and constructor comments are required 3 4952
CommentRequired Public method and constructor comments are required 3 5457
CommentRequired Public method and constructor comments are required 3 5962
CommentRequired Public method and constructor comments are required 3 6467
CommentRequired Public method and constructor comments are required 3 6972
CommentRequired Public method and constructor comments are required 3 7477
CommentRequired Public method and constructor comments are required 3 7982
CommentRequired Public method and constructor comments are required 3 8487
CommentRequired Public method and constructor comments are required 3 8992
CommentRequired Public method and constructor comments are required 3 9497
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 109112
CommentRequired Public method and constructor comments are required 3 114117

fr/paris/lutece/plugins/suggest/business/SubmitFilter.java

Rule Violation Priority Ligne
ExcessivePublicCount This class has a bunch of public methods and attributes 3 34581
TooManyFields Too many fields 3 47581
GodClass Possible God Class (WMC=55, ATFD=6, TCC=9.224%) 3 47581
TooManyMethods This class has too many methods, consider refactoring it. 3 48581
RedundantFieldInitializer Avoid using redundant field initializer for '_strLuteceUserKey' 3 83

fr/paris/lutece/plugins/suggest/business/Suggest.java

Rule Violation Priority Ligne
ExcessivePublicCount This class has a bunch of public methods and attributes 3 341532
TooManyFields Too many fields 3 591532
CyclomaticComplexity The class 'Suggest' has a total cyclomatic complexity of 136 (highest 4). 3 591532
ExcessiveClassLength Avoid really long classes. 3 591532
NonThreadSafeSingleton Singleton is not thread safe 3 160164
NonThreadSafeSingleton Singleton is not thread safe 3 166170
NonThreadSafeSingleton Singleton is not thread safe 3 172176
MissingOverride The method 'getWorkgroup()' is missing an @Override annotation. 3 303306
MissingOverride The method 'getResourceTypeCode()' is missing an @Override annotation. 3 404407
MissingOverride The method 'getResourceId()' is missing an @Override annotation. 3 414417
AddEmptyString Do not add empty strings 3 416

fr/paris/lutece/plugins/suggest/business/SuggestAction.java

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

fr/paris/lutece/plugins/suggest/business/SuggestActionDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'selectActionsBySuggestState(int, Plugin)' is missing an @Override annotation. 3 5982

fr/paris/lutece/plugins/suggest/business/SuggestDAO.java

Rule Violation Priority Ligne
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 4 144
NPathComplexity The method 'selectSuggestList(SuggestFilter, Plugin)' has an NPath complexity of 528 3 374492
NcssCount The method 'selectSuggestList(SuggestFilter, Plugin)' has a NCSS line count of 81. 3 374492
CyclomaticComplexity The method 'selectSuggestList(SuggestFilter, Plugin)' has a cyclomatic complexity of 10. 3 374492
ExcessiveMethodLength Avoid really long methods. 3 374492
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 525

fr/paris/lutece/plugins/suggest/business/SuggestHome.java

Rule Violation Priority Ligne
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'entry' 3 112
ConfusingTernary Avoid if (x != y) ..; else ..; 3 147154

fr/paris/lutece/plugins/suggest/business/SuggestRegularExpressionRemovalListener.java

Rule Violation Priority Ligne
MissingOverride The method 'canBeRemoved(String)' is missing an @Override annotation. 3 5868
MissingOverride The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. 3 7983

fr/paris/lutece/plugins/suggest/business/SuggestRoleRemovalListener.java

Rule Violation Priority Ligne
MissingOverride The method 'canBeRemoved(String)' is missing an @Override annotation. 3 5876
SimplifyBooleanReturns Avoid unnecessary if..then..else statements when returning booleans 3 7073
MissingOverride The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. 3 8791

fr/paris/lutece/plugins/suggest/business/SuggestSubmit.java

Rule Violation Priority Ligne
ExcessivePublicCount This class has a bunch of public methods and attributes 3 34748
TooManyFields Too many fields 3 56748
GodClass Possible God Class (WMC=63, ATFD=9, TCC=1.633%) 3 56748
CyclomaticComplexity The method 'getXml(HttpServletRequest, Locale)' has a cyclomatic complexity of 11. 3 442501
ConfusingTernary Avoid if (x != y) ..; else ..; 3 450451
ConfusingTernary Avoid if (x != y) ..; else ..; 3 452453

fr/paris/lutece/plugins/suggest/business/SuggestSubmitDAO.java

Rule Violation Priority Ligne
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 4 141
ConfusingTernary Avoid if (x != y) ..; else ..; 3 156163
ConfusingTernary Avoid if (x != y) ..; else ..; 3 173180
ConfusingTernary Avoid if (x != y) ..; else ..; 3 187194
MissingOverride The method 'store(SuggestSubmit, Plugin)' is missing an @Override annotation. 3 257312
ConfusingTernary Avoid if (x != y) ..; else ..; 3 267274
ConfusingTernary Avoid if (x != y) ..; else ..; 3 284291
ConfusingTernary Avoid if (x != y) ..; else ..; 3 298305
NcssCount The method 'selectListByFilter(SubmitFilter, Plugin)' has a NCSS line count of 65. 3 324469
ExcessiveMethodLength Avoid really long methods. 3 324469
CyclomaticComplexity The method 'selectListByFilter(SubmitFilter, Plugin)' has a cyclomatic complexity of 25. 3 324469
NPathComplexity The method 'selectListByFilter(SubmitFilter, Plugin)' has an NPath complexity of 12589056 3 324469
CyclomaticComplexity The method 'selectIdListByFilter(SubmitFilter, Plugin)' has a cyclomatic complexity of 27. 3 481633
NcssCount The method 'selectIdListByFilter(SubmitFilter, Plugin)' has a NCSS line count of 69. 3 481633
NPathComplexity The method 'selectIdListByFilter(SubmitFilter, Plugin)' has an NPath complexity of 50343936 3 481633
ExcessiveMethodLength Avoid really long methods. 3 481633
NPathComplexity The method 'selectCountByFilter(SubmitFilter, Plugin)' has an NPath complexity of 25171968 3 645791
CyclomaticComplexity The method 'selectCountByFilter(SubmitFilter, Plugin)' has a cyclomatic complexity of 26. 3 645791
ExcessiveMethodLength Avoid really long methods. 3 645791
NcssCount The method 'selectCountByFilter(SubmitFilter, Plugin)' has a NCSS line count of 66. 3 645791
CyclomaticComplexity The method 'getOrderBy(List)' has a cyclomatic complexity of 17. 3 800890
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 877
MissingOverride The method 'storeSuggestSubmitOrder(int, int, Plugin)' is missing an @Override annotation. 3 905913

fr/paris/lutece/plugins/suggest/business/SuggestSubmitType.java

Rule Violation Priority Ligne
MissingOverride The method 'getResourceTypeCode()' is missing an @Override annotation. 3 148151
MissingOverride The method 'getResourceId()' is missing an @Override annotation. 3 158161
AddEmptyString Do not add empty strings 3 160
OverrideBothEqualsAndHashcode Ensure you override both equals() and hashCode() 3 186
MissingOverride The method 'equals(Object)' is missing an @Override annotation. 3 186189

fr/paris/lutece/plugins/suggest/business/SuggestSubmitTypeDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'insert(SuggestSubmitType, Plugin)' is missing an @Override annotation. 3 100125
ConfusingTernary Avoid if (x != y) ..; else ..; 3 112119
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 3 136152
MissingOverride The method 'selectList(Plugin)' is missing an @Override annotation. 3 161176
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 3 186193
MissingOverride The method 'store(SuggestSubmitType, Plugin)' is missing an @Override annotation. 3 203225
ConfusingTernary Avoid if (x != y) ..; else ..; 3 212219
MissingOverride The method 'selectListByIdSuggest(int, Plugin)' is missing an @Override annotation. 3 259275
MissingOverride The method 'isAssociateToSuggest(int, Plugin)' is missing an @Override annotation. 3 286295

fr/paris/lutece/plugins/suggest/business/SuggestSubmitTypeHome.java

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

fr/paris/lutece/plugins/suggest/business/SuggestUserInfo.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 38154
CommentRequired Public method and constructor comments are required 3 4750
CommentRequired Public method and constructor comments are required 3 5255
CommentRequired Public method and constructor comments are required 3 5760
CommentRequired Public method and constructor comments are required 3 6265
CommentRequired Public method and constructor comments are required 3 6770
CommentRequired Public method and constructor comments are required 3 7275
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
MissingOverride The method 'toString()' is missing an @Override annotation. 3 150153

fr/paris/lutece/plugins/suggest/business/SuggestUserInfoDAO.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 39133

fr/paris/lutece/plugins/suggest/business/SuggestWorkgroupRemovalListener.java

Rule Violation Priority Ligne
MissingOverride The method 'canBeRemoved(String)' is missing an @Override annotation. 3 5871
MissingOverride The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. 3 8286

fr/paris/lutece/plugins/suggest/business/VideoType.java

Rule Violation Priority Ligne
ArrayIsStoredDirectly The user-supplied array 'video' is stored directly. 3 109
MethodReturnsInternalArray Returning '_video' may expose an internal array. 3 119

fr/paris/lutece/plugins/suggest/business/VideoTypeDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'insert(VideoType, Plugin)' is missing an @Override annotation. 3 6485
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 77
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 79
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 3 96117
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 3 127134
MissingOverride The method 'store(VideoType, Plugin)' is missing an @Override annotation. 3 144155

fr/paris/lutece/plugins/suggest/business/Vote.java

Rule Violation Priority Ligne
ShortClassName Avoid short class names like Vote 4 4186

fr/paris/lutece/plugins/suggest/business/VoteButton.java

Rule Violation Priority Ligne
MethodReturnsInternalArray Returning '_byIconContent' may expose an internal array. 3 135
ArrayIsStoredDirectly The user-supplied array 'iconContent' is stored directly. 3 144

fr/paris/lutece/plugins/suggest/business/VoteDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'insert(Vote, Plugin)' is missing an @Override annotation. 3 6573
MissingOverride The method 'selectVoteByIdSuggestSubmit(int, Plugin)' is missing an @Override annotation. 3 84106
MissingOverride The method 'selectCountVoteByIdSuggestSubmitAndLuteceUserKey(int, String, Plugin)' is missing an @Override annotation. 3 119136
MissingOverride The method 'selectCountVoteByIdSuggestSubmit(int, Plugin)' is missing an @Override annotation. 3 147163

fr/paris/lutece/plugins/suggest/business/VoteTypeDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 3 6789
MissingOverride The method 'select(Plugin)' is missing an @Override annotation. 3 98121

fr/paris/lutece/plugins/suggest/business/attribute/SuggestAttributeDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 3 5675
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 58
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 8093
MissingOverride The method 'insert(int, String, Object, Plugin)' is missing an @Override annotation. 3 8093
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 88
ConfusingTernary Avoid if (x != y) ..; else ..; 3 88
MissingOverride The method 'remove(int, Plugin)' is missing an @Override annotation. 3 98105

fr/paris/lutece/plugins/suggest/business/rss/SuggestResourceRss.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34893
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 317
PositionLiteralsFirstInComparisons Position literals first in String comparisons 3 334
AvoidDuplicateLiterals The String literal "<div[^>]+>" appears 7 times in this file; the first occurrence is on line 347 3 347
AvoidDuplicateLiterals The String literal "</div>" appears 7 times in this file; the first occurrence is on line 347 3 347
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 374
ConfusingTernary Avoid if (x != y) ..; else ..; 3 418427
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 429
ConfusingTernary Avoid if (x != y) ..; else ..; 3 449458
NcssCount The method 'createHtmlRss()' has a NCSS line count of 77. 3 472605
ExcessiveMethodLength Avoid really long methods. 3 472605
ConfusingTernary Avoid if (x != y) ..; else ..; 3 519526
NcssCount The method 'getFeed()' has a NCSS line count of 99. 3 611803
ExcessiveMethodLength Avoid really long methods. 3 611803
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 651
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 681
ConfusingTernary Avoid if (x != y) ..; else ..; 3 683690
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 767
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 821

fr/paris/lutece/plugins/suggest/business/rss/SuggestResourceRssConfigDAO.java

Rule Violation Priority Ligne
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 6578
MissingOverride The method 'insert(SuggestResourceRssConfig, Plugin)' is missing an @Override annotation. 3 6578
MissingOverride The method 'store(SuggestResourceRssConfig, Plugin)' is missing an @Override annotation. 3 88102
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 3 114137
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 3 147154
MissingOverride The method 'loadAll(Plugin)' is missing an @Override annotation. 3 163186

fr/paris/lutece/plugins/suggest/service/CategoryResourceIdService.java

Rule Violation Priority Ligne
CallSuperInConstructor It is a good practice to call super() in a constructor 3 6265
MissingOverride The method 'register()' is missing an @Override annotation. 3 7083
ShortVariable Avoid variables with short names like rt 3 72
ShortVariable Avoid variables with short names like p 3 78
MissingOverride The method 'getResourceIdList(Locale)' is missing an @Override annotation. 3 9295
MissingOverride The method 'getTitle(String, Locale)' is missing an @Override annotation. 3 106122

fr/paris/lutece/plugins/suggest/service/CommentSubmitService.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 45183
NonThreadSafeSingleton Singleton is not thread safe 3 176179

fr/paris/lutece/plugins/suggest/service/DefaultMessageResourceIdService.java

Rule Violation Priority Ligne
CallSuperInConstructor It is a good practice to call super() in a constructor 3 5861
MissingOverride The method 'register()' is missing an @Override annotation. 3 6679
ShortVariable Avoid variables with short names like rt 3 68
ShortVariable Avoid variables with short names like p 3 74
MissingOverride The method 'getResourceIdList(Locale)' is missing an @Override annotation. 3 8891
MissingOverride The method 'getTitle(String, Locale)' is missing an @Override annotation. 3 102105

fr/paris/lutece/plugins/suggest/service/ExportFormatResourceIdService.java

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

fr/paris/lutece/plugins/suggest/service/FileManager.java

Rule Violation Priority Ligne
UnusedPrivateField Avoid unused private fields such as 'TAG_FILE_RESOURCE'. 3 41
UnusedPrivateField Avoid unused private fields such as 'TAG_DOCUMENT_ID'. 3 42
UnusedPrivateField Avoid unused private fields such as 'TAG_ATTRIBUTE_ID'. 3 43
UnusedPrivateField Avoid unused private fields such as 'TAG_CONTENT_TYPE'. 3 44
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getCreateTemplate method if you want a default access modifier 3 5356
DefaultPackage Use explicit scoping instead of the default package private level 3 5356
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getModifyTemplate method if you want a default access modifier 3 6366
DefaultPackage Use explicit scoping instead of the default package private level 3 6366
DefaultPackage Use explicit scoping instead of the default package private level 3 7376
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getCreateParametersTemplate method if you want a default access modifier 3 7376
DefaultPackage Use explicit scoping instead of the default package private level 3 8386
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getModifyParametersTemplate method if you want a default access modifier 3 8386

fr/paris/lutece/plugins/suggest/service/ICommentSubmitService.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 44130
AvoidDuplicateLiterals The String literal "suggest.transactionManager" appears 7 times in this file; the first occurrence is on line 55 3 55

fr/paris/lutece/plugins/suggest/service/ISuggestSubmitService.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 50297
TooManyMethods This class has too many methods, consider refactoring it. 3 51297
AvoidDuplicateLiterals The String literal "suggest.transactionManager" appears 8 times in this file; the first occurrence is on line 63 3 63

fr/paris/lutece/plugins/suggest/service/ImageFileManager.java

Rule Violation Priority Ligne
DefaultPackage Use explicit scoping instead of the default package private level 3 4852
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getCreateTemplate method if you want a default access modifier 3 4952

fr/paris/lutece/plugins/suggest/service/ImageService.java

Rule Violation Priority Ligne
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the ImageService constructor if you want a default access modifier 3 5558
MissingOverride The method 'getImageResource(int)' is missing an @Override annotation. 3 7780
MissingOverride The method 'getResourceTypeId()' is missing an @Override annotation. 3 8790

fr/paris/lutece/plugins/suggest/service/SuggestCategoryCacheService.java

Rule Violation Priority Ligne
CallSuperInConstructor It is a good practice to call super() in a constructor 3 4649

fr/paris/lutece/plugins/suggest/service/SuggestPlugin.java

Rule Violation Priority Ligne
MissingOverride The method 'getXPageTheme(HttpServletRequest)' is missing an @Override annotation. 3 7276

fr/paris/lutece/plugins/suggest/service/SuggestResourceIdService.java

Rule Violation Priority Ligne
CallSuperInConstructor It is a good practice to call super() in a constructor 3 9093
MissingOverride The method 'register()' is missing an @Override annotation. 3 98142
ShortVariable Avoid variables with short names like rt 3 100
ShortVariable Avoid variables with short names like p 3 106
MissingOverride The method 'getResourceIdList(Locale)' is missing an @Override annotation. 3 151162
MissingOverride The method 'getTitle(String, Locale)' is missing an @Override annotation. 3 173189

fr/paris/lutece/plugins/suggest/service/SuggestService.java

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

fr/paris/lutece/plugins/suggest/service/SuggestSubmitService.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34561
CommentRequired Header comments are required 3 70561
TooManyMethods This class has too many methods, consider refactoring it. 3 71561
AvoidDuplicateLiterals The String literal "suggest.transactionManager" appears 6 times in this file; the first occurrence is on line 79 3 79
CyclomaticComplexity The method 'updateSuggestSubmitOrder(Integer, Integer, int, boolean, Plugin)' has a cyclomatic complexity of 12. 3 203235
CollapsibleIfStatements These nested if statements could be combined 3 220224
ConfusingTernary Avoid if (x != y) ..; else ..; 3 350365
ConfusingTernary Avoid if (x != y) ..; else ..; 3 376393
ConfusingTernary Avoid if (x != y) ..; else ..; 3 404419
NonThreadSafeSingleton Singleton is not thread safe 3 441444
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 555

fr/paris/lutece/plugins/suggest/service/SuggestSubmitTypeCacheService.java

Rule Violation Priority Ligne
CallSuperInConstructor It is a good practice to call super() in a constructor 3 4649

fr/paris/lutece/plugins/suggest/service/SuggestUserInfoService.java

Rule Violation Priority Ligne
NonThreadSafeSingleton Singleton is not thread safe 3 5962

fr/paris/lutece/plugins/suggest/service/publication/DaemonPublication.java

Rule Violation Priority Ligne
MissingOverride The method 'run()' is missing an @Override annotation. 3 4750

fr/paris/lutece/plugins/suggest/service/publication/PublicationService.java

Rule Violation Priority Ligne
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'suggestSubmit' 3 103

fr/paris/lutece/plugins/suggest/service/search/SuggestIndexer.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34351
MissingOverride The method 'getDescription()' is missing an @Override annotation. 3 105108
MissingOverride The method 'indexDocuments()' is missing an @Override annotation. 3 120163
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 148
MissingOverride The method 'getDocuments(String)' is missing an @Override annotation. 3 178201
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' 4 180
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' 4 196
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' 4 217
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' 4 220
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' 4 220
ShortVariable Avoid variables with short names like ft 3 222
UselessStringValueOf No need to call String.valueOf to append to a string. 3 240
ShortVariable Avoid variables with short names like sb 3 269
MissingOverride The method 'getName()' is missing an @Override annotation. 3 299302
MissingOverride The method 'getVersion()' is missing an @Override annotation. 3 309312
MissingOverride The method 'isEnable()' is missing an @Override annotation. 3 319331
MissingOverride The method 'getListType()' is missing an @Override annotation. 3 336342
MissingOverride The method 'getSpecificSearchAppUrl()' is missing an @Override annotation. 3 347350

fr/paris/lutece/plugins/suggest/service/subscription/SuggestSubscribersNotificationDaemon.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34488
NPathComplexity The method 'run()' has an NPath complexity of 1478 3 88213
ExcessiveMethodLength Avoid really long methods. 3 88213
CyclomaticComplexity The method 'run()' has a cyclomatic complexity of 31. 3 88213
NcssCount The method 'run()' has a NCSS line count of 61. 3 88213
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 107
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 124144
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 143
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 161180
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 187205
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 348
ConfusingTernary Avoid if (x != y) ..; else ..; 3 356357
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 458
ConfusingTernary Avoid if (x != y) ..; else ..; 3 465466

fr/paris/lutece/plugins/suggest/service/subscription/SuggestSubscriptionProviderService.java

Rule Violation Priority Ligne
TooManyMethods This class has too many methods, consider refactoring it. 3 61377
NonThreadSafeSingleton Singleton is not thread safe 3 8288
CyclomaticComplexity The method 'getSubscriptionHtmlDescription(LuteceUser, String, String, Locale)' has a cyclomatic complexity of 10. 3 106157
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 145152

fr/paris/lutece/plugins/suggest/service/suggestsearch/SuggestLuceneSearchEngine.java

Rule Violation Priority Ligne
MissingOverride The method 'getSearchResults(String, SubmitFilter)' is missing an @Override annotation. 3 73141
ShortVariable Avoid variables with short names like ir 3 80
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 120
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 121
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 122
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 127133
ShortVariable Avoid variables with short names like si 3 131
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 135

fr/paris/lutece/plugins/suggest/service/suggestsearch/SuggestSearchItem.java

Rule Violation Priority Ligne
ConstructorCallsOverridableMethod Overridable method 'setIdSuggest' called during object construction 1 59
ConstructorCallsOverridableMethod Overridable method 'setIdSuggestSubmit' called during object construction 1 60

fr/paris/lutece/plugins/suggest/service/suggestsearch/SuggestSearchService.java

Rule Violation Priority Ligne
NonThreadSafeSingleton Singleton is not thread safe 3 6568
CyclomaticComplexity The method 'getSearchResults(String, SubmitFilter, Plugin)' has a cyclomatic complexity of 11. 3 84113

fr/paris/lutece/plugins/suggest/service/workflow/SuggestWorkflowService.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 49123

fr/paris/lutece/plugins/suggest/utils/ProcessBBCode.java

Rule Violation Priority Ligne
FieldNamingConventions The field name 'acceptHTML' doesn't match '_[a-z][a-zA-Z0-9]*' 1 75
RedundantFieldInitializer Avoid using redundant field initializer for 'acceptHTML' 3 75
FieldNamingConventions The field name 'acceptBBCode' doesn't match '_[a-z][a-zA-Z0-9]*' 1 78
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 8386
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 100103
AvoidReassigningParameters Avoid reassigning parameters such as 'texto' 2 118
AvoidReassigningParameters Avoid reassigning parameters such as 'texto' 2 118
AvoidReassigningParameters Avoid reassigning parameters such as 'string' 2 137
AvoidReassigningParameters Avoid reassigning parameters such as 'content' 2 227
AvoidReassigningParameters Avoid reassigning parameters such as 'content' 2 227
AvoidReassigningParameters Avoid reassigning parameters such as 'content' 2 227
AvoidReassigningParameters Avoid reassigning parameters such as 'content' 2 227
AvoidReassigningParameters Avoid reassigning parameters such as 'content' 2 248
UnusedPrivateMethod Avoid unused private methods such as 'replaceAll(String,char,String)'. 3 261
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 4 261
ShortVariable Avoid variables with short names like c 3 267
ExcessiveMethodLength Avoid really long methods. 3 300445
ExcessiveParameterList Avoid long parameter lists. 3 300302
CyclomaticComplexity The method 'processNestedTags(StringBuffer, String, String, String, String, String, String, boolean, boolean, boolean)' has a cyclomatic complexity of 23. 3 300445
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 300302
NcssCount The method 'processNestedTags(StringBuffer, String, String, String, String, String, String, boolean, boolean, boolean)' has a NCSS line count of 73. 3 300445
NPathComplexity The method 'processNestedTags(StringBuffer, String, String, String, String, String, String, boolean, boolean, boolean)' has an NPath complexity of 1188 3 300445
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 319
ConfusingTernary Avoid if (x != y) ..; else ..; 3 351381
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 355
ConfusingTernary Avoid if (x != y) ..; else ..; 3 363381
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 369
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 369
MissingOverride The method 'compare(MutableCharSequence, MutableCharSequence)' is missing an @Override annotation. 3 391394
CommentRequired Public method and constructor comments are required 3 391394
ShortVariable Avoid variables with short names like o2 3 391
ShortVariable Avoid variables with short names like o1 3 391
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 393
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 393
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 404
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 408
ConfusingTernary Avoid if (x != y) ..; else ..; 3 408415
ShortVariable Avoid variables with short names like m 3 425
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 425
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 425
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 425
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 429
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 432
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 441
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 441
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the MutableCharSequence nested class if you want a default access modifier 3 447531
CommentRequired Header comments are required 3 447531
RedundantFieldInitializer Avoid using redundant field initializer for '_param' 3 459
MissingOverride The method 'length()' is missing an @Override annotation. 3 481484
MissingOverride The method 'charAt(int)' is missing an @Override annotation. 3 489492
MissingOverride The method 'subSequence(int, int)' is missing an @Override annotation. 3 497500
MissingOverride The method 'toString()' is missing an @Override annotation. 3 520530
ShortVariable Avoid variables with short names like sb 3 522

fr/paris/lutece/plugins/suggest/utils/SuggestIndexerUtils.java

Rule Violation Priority Ligne
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 4685

fr/paris/lutece/plugins/suggest/utils/SuggestUtils.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 341673
ExcessivePublicCount This class has a bunch of public methods and attributes 3 341673
ExcessiveClassLength Avoid really long classes. 3 1021673
GodClass Possible God Class (WMC=143, ATFD=335, TCC=2.902%) 3 1021673
CyclomaticComplexity The class 'SuggestUtils' has a total cyclomatic complexity of 143 (highest 11). 3 1021673
TooManyMethods This class has too many methods, consider refactoring it. 3 1031673
AvoidDuplicateLiterals The String literal "src='image?" appears 4 times in this file; the first occurrence is on line 202 3 202
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 209
ShortVariable Avoid variables with short names like t 3 214
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 223
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 255
ShortVariable Avoid variables with short names like t 3 259
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 268
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 295
ShortVariable Avoid variables with short names like t 3 300
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 309
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 336
ShortVariable Avoid variables with short names like t 3 341
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 350
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 597
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 598
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 673
LinguisticNaming Linguistics Antipattern - The getter 'getHtmlFormEntry' should not return void linguistically 3 751760
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 753
LinguisticNaming Linguistics Antipattern - The getter 'getHtmlResponseEntry' should not return void linguistically 3 774785
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 778
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 803
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 842
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 857
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 957
ConfusingTernary Avoid if (x != y) ..; else ..; 3 960969
CyclomaticComplexity The method 'initSubmitFilterBySort(SubmitFilter, int)' has a cyclomatic complexity of 11. 3 10761142
AssignmentInOperand Avoid assignments in operands 3 1445
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 1445
ShortVariable Avoid variables with short names like it 3 1477
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 1480
ShortVariable Avoid variables with short names like ts 3 1480
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 1503
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1558
ConfusingTernary Avoid if (x != y) ..; else ..; 3 16591667

fr/paris/lutece/plugins/suggest/web/CategoryJspBean.java

Rule Violation Priority Ligne
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 3 106
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 121
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 155
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 199
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 200
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 201
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 203
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 203
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 244
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 245

fr/paris/lutece/plugins/suggest/web/DefaultMessageJspBean.java

Rule Violation Priority Ligne
CyclomaticComplexity The method 'getDefaultMessageData(HttpServletRequest, DefaultMessage)' has a cyclomatic complexity of 15. 3 172286
NcssCount The method 'getDefaultMessageData(HttpServletRequest, DefaultMessage)' has a NCSS line count of 64. 3 172286
ExcessiveMethodLength Avoid really long methods. 3 172286
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 185
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 186
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 187

fr/paris/lutece/plugins/suggest/web/ExportFormatJspBean.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34543
GodClass Possible God Class (WMC=50, ATFD=75, TCC=30.909%) 3 84543
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 3 132
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 147
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 182
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 227
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 228
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 229
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 231
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 231
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 272
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 273
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 341
CyclomaticComplexity The method 'getExportFormatData(MultipartHttpServletRequest, ExportFormat)' has a cyclomatic complexity of 16. 3 378442
NPathComplexity The method 'getExportFormatData(MultipartHttpServletRequest, ExportFormat)' has an NPath complexity of 240 3 378442
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 455
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 456
ShortVariable Avoid variables with short names like os 3 490
LinguisticNaming Linguistics Antipattern - The method 'isValid' indicates linguistically it returns a boolean, but it returns 'String' 3 512530
ShortVariable Avoid variables with short names like is 3 521
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 524

fr/paris/lutece/plugins/suggest/web/ManageSuggestJspBean.java

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

fr/paris/lutece/plugins/suggest/web/ResourceServletCache.java

Rule Violation Priority Ligne
CallSuperInConstructor It is a good practice to call super() in a constructor 3 5058
PositionLiteralsFirstInCaseInsensitiveComparisons Position literals first in String comparisons for EqualsIgnoreCase 3 54

fr/paris/lutece/plugins/suggest/web/ResourceValueObject.java

Rule Violation Priority Ligne
MethodReturnsInternalArray Returning '_content' may expose an internal array. 3 75
ArrayIsStoredDirectly The user-supplied array 'content' is stored directly. 3 84

fr/paris/lutece/plugins/suggest/web/SuggestApp.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 342037
ExcessiveClassLength Avoid really long classes. 3 1102037
CyclomaticComplexity The class 'SuggestApp' has a total cyclomatic complexity of 205 (highest 21). 3 1102037
TooManyMethods This class has too many methods, consider refactoring it. 3 1112037
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 3 260
ImmutableField Private field '_suggestSubmitService' could be made final; it is only initialized in the declaration or constructor. 3 265
ImmutableField Private field '_commentSubmitService' could be made final; it is only initialized in the declaration or constructor. 3 266
MissingOverride The method 'getPage(HttpServletRequest, int, Plugin)' is missing an @Override annotation. 3 283387
CyclomaticComplexity The method 'getPage(HttpServletRequest, int, Plugin)' has a cyclomatic complexity of 18. 3 283387
ExcessiveMethodLength Avoid really long methods. 3 283387
ConfusingTernary Avoid if (x != y) ..; else ..; 3 375383
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 406
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 453
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 515
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 570
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 599
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 619
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 658
CyclomaticComplexity The method 'doCreateSuggestSubmit(XPage, int, HttpServletRequest)' has a cyclomatic complexity of 20. 3 687769
NPathComplexity The method 'doCreateSuggestSubmit(XPage, int, HttpServletRequest)' has an NPath complexity of 10368 3 687769
CollapsibleIfStatements These nested if statements could be combined 3 725728
CollapsibleIfStatements These nested if statements could be combined 3 734737
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 758
CyclomaticComplexity The method 'doCreateComment(XPage, int, HttpServletRequest)' has a cyclomatic complexity of 21. 3 9581040
NPathComplexity The method 'doCreateComment(XPage, int, HttpServletRequest)' has an NPath complexity of 12960 3 9581040
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 971
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1028
NPathComplexity The method 'doReport(XPage, int, HttpServletRequest)' has an NPath complexity of 288 3 10571122
CyclomaticComplexity The method 'doReport(XPage, int, HttpServletRequest)' has a cyclomatic complexity of 13. 3 10571122
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1113
CyclomaticComplexity The method 'doVote(XPage, int, HttpServletRequest)' has a cyclomatic complexity of 10. 3 11381181
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1230
ConfusingTernary Avoid if (x != y) ..; else ..; 3 12401241
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1347
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1389
ConfusingTernary Avoid if (x != y) ..; else ..; 3 14031404
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1404
UnusedFormalParameter Avoid unused method parameters such as 'nMode'. 3 1431
CyclomaticComplexity The method 'getHtmlSuggestSubmitDetail(HttpServletRequest, int, Plugin, SuggestSubmit, LuteceUser)' has a cyclomatic complexity of 10. 3 14311491
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1434
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1435
UnusedFormalParameter Avoid unused method parameters such as 'plugin'. 3 1544
UnusedFormalParameter Avoid unused method parameters such as 'nMode'. 3 1544
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1546
UnusedFormalParameter Avoid unused method parameters such as 'nMode'. 3 1616
CyclomaticComplexity The method 'doInsertSuggestSubmit(HttpServletRequest, int, Plugin, Suggest, int, int, LuteceUser)' has a cyclomatic complexity of 10. 3 16491726
UnusedFormalParameter Avoid unused method parameters such as 'nMode'. 3 1649
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 1713
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1751
NPathComplexity The method 'getSearchFields(HttpServletRequest)' has an NPath complexity of 256 3 18441877
ConfusingTernary Avoid if (x != y) ..; else ..; 3 18601861
ConfusingTernary Avoid if (x != y) ..; else ..; 3 1862
ConfusingTernary Avoid if (x != y) ..; else ..; 3 1864
ConfusingTernary Avoid if (x != y) ..; else ..; 3 1865
ConfusingTernary Avoid if (x != y) ..; else ..; 3 1866
ConfusingTernary Avoid if (x != y) ..; else ..; 3 18671868
ConfusingTernary Avoid if (x != y) ..; else ..; 3 1869
ConfusingTernary Avoid if (x != y) ..; else ..; 3 1871

fr/paris/lutece/plugins/suggest/web/SuggestJspBean.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 343720
ExcessivePublicCount This class has a bunch of public methods and attributes 3 343720
NcssCount The class 'SuggestJspBean' has a NCSS line count of 1751 (Highest = 199). 3 1453720
CyclomaticComplexity The class 'SuggestJspBean' has a total cyclomatic complexity of 411 (highest 67). 3 1453720
TooManyFields Too many fields 3 1453720
ExcessiveClassLength Avoid really long classes. 3 1453720
TooManyMethods This class has too many methods, consider refactoring it. 3 1463720
ImmutableField Private field '_searchFields' could be made final; it is only initialized in the declaration or constructor. 3 435
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 3 436
ImmutableField Private field '_suggestSubmitService' could be made final; it is only initialized in the declaration or constructor. 3 456
ImmutableField Private field '_commentSubmitService' could be made final; it is only initialized in the declaration or constructor. 3 457
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 505
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 506507
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 568
NcssCount The method 'getManageSuggestSubmit(HttpServletRequest, HttpServletResponse)' has a NCSS line count of 92. 3 609785
CyclomaticComplexity The method 'getManageSuggestSubmit(HttpServletRequest, HttpServletResponse)' has a cyclomatic complexity of 22. 3 609785
NPathComplexity The method 'getManageSuggestSubmit(HttpServletRequest, HttpServletResponse)' has an NPath complexity of 29160 3 609785
ExcessiveMethodLength Avoid really long methods. 3 609785
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 611
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 612
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 613
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 616
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 616
AvoidDuplicateLiterals The String literal "Access denied" appears 6 times in this file; the first occurrence is on line 635 3 635
ConfusingTernary Avoid if (x != y) ..; else ..; 3 642654
ConfusingTernary Avoid if (x != y) ..; else ..; 3 678697
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 702
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 703704
ConfusingTernary Avoid if (x != y) ..; else ..; 3 739749
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 799
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 805
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 805
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 830
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 831832
CyclomaticComplexity The method 'doCreateSuggestSubmit(HttpServletRequest)' has a cyclomatic complexity of 15. 3 904990
NPathComplexity The method 'doCreateSuggestSubmit(HttpServletRequest)' has an NPath complexity of 582 3 904990
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 919
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 919
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 922
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 923
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 924
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 925
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 926
CollapsibleIfStatements These nested if statements could be combined 3 931934
CollapsibleIfStatements These nested if statements could be combined 3 940943
ExcessiveMethodLength Avoid really long methods. 3 10011104
CyclomaticComplexity The method 'getManageCommentSubmit(HttpServletRequest)' has a cyclomatic complexity of 12. 3 10011104
NPathComplexity The method 'getManageCommentSubmit(HttpServletRequest)' has an NPath complexity of 324 3 10011104
NcssCount The method 'getManageCommentSubmit(HttpServletRequest)' has a NCSS line count of 61. 3 10011104
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1004
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1010
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1027
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1039
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1071
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 10721073
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1116
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1118
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1159
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1160
ConfusingTernary Avoid if (x != y) ..; else ..; 3 11791187
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1205
CyclomaticComplexity The method 'getConfirmMassChangeSuggestSubmitCategory(HttpServletRequest)' has a cyclomatic complexity of 10. 3 12421284
CyclomaticComplexity The method 'doMassChangeSuggestSubmitCategory(HttpServletRequest)' has a cyclomatic complexity of 11. 3 12951341
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1301
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1302
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1354
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1361
ConfusingTernary Avoid if (x != y) ..; else ..; 3 13931422
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1397
ConfusingTernary Avoid if (x != y) ..; else ..; 3 14141422
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1438
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1441
ExcessiveMethodLength Avoid really long methods. 3 16291949
CyclomaticComplexity The method 'getSuggestData(MultipartHttpServletRequest, Suggest)' has a cyclomatic complexity of 67. 3 16291949
NcssCount The method 'getSuggestData(MultipartHttpServletRequest, Suggest)' has a NCSS line count of 199. 3 16291949
NPathComplexity The method 'getSuggestData(MultipartHttpServletRequest, Suggest)' has an NPath complexity of 829440000 3 16291949
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1632
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1633
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1637
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1639
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1645
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1647
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1648
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1649
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1651
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1652
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1656
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1657
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1658
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1659
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1661
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1663
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1666
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1667
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1668
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1670
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1674
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1675
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1676
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1677
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1678
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1679
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1680
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1683
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1688
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1689
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1690
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1691
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1692
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1693
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1694
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1695
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1696
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1697
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1701
ConfusingTernary Avoid if (x != y) ..; else ..; 3 19021909
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1990
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 2035
NcssCount The method 'getModifySuggest(HttpServletRequest)' has a NCSS line count of 86. 3 20632189
ExcessiveMethodLength Avoid really long methods. 3 20632189
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 2066
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 2067
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 2068
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 2071
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 2072
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 2074
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 3 2094
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 21052106
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 2151
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 2364
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 2366
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 2405
UnusedLocalVariable Avoid unused local variables such as 'plugin'. 3 2405
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 2427
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 2428
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 2479
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 2544
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 2549
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 2557
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 2648
ConfusingTernary Avoid if (x != y) ..; else ..; 3 3030
UnusedFormalParameter Avoid unused method parameters such as 'locale'. 3 3068
UnusedFormalParameter Avoid unused method parameters such as 'locale'. 3 3090
ExcessiveMethodLength Avoid really long methods. 3 32773441
NPathComplexity The method 'getStatistics(HttpServletRequest)' has an NPath complexity of 24576 3 32773441
CyclomaticComplexity The method 'getStatistics(HttpServletRequest)' has a cyclomatic complexity of 21. 3 32773441
NcssCount The method 'getStatistics(HttpServletRequest)' has a NCSS line count of 92. 3 32773441
ConfusingTernary Avoid if (x != y) ..; else ..; 3 32973305
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 3 3302
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 3315
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 3317
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 3327
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 3329
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 3383
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 3385
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 3386
ShortVariable Avoid variables with short names like fV 3 3391
ShortVariable Avoid variables with short names like fC 3 3392
ShortVariable Avoid variables with short names like bd 3 3394
AvoidDecimalLiteralsInBigDecimalConstructor Avoid creating BigDecimal with a decimal (float/double) literal. Use a String literal 3 3394
AvoidDecimalLiteralsInBigDecimalConstructor Avoid creating BigDecimal with a decimal (float/double) literal. Use a String literal 3 3397
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 3499
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 3500
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 3502
NPathComplexity The method 'updateSearchFieldsData(HttpServletRequest)' has an NPath complexity of 4374 3 35383589
CyclomaticComplexity The method 'updateSearchFieldsData(HttpServletRequest)' has a cyclomatic complexity of 16. 3 35383589
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 3613
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 3672

fr/paris/lutece/plugins/suggest/web/SuggestSubmitTypeJspBean.java

Rule Violation Priority Ligne
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 3 113
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 128
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 133134
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 156
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 196
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 197
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 198
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 200
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 200
ConfusingTernary Avoid if (x != y) ..; else ..; 3 203219
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 240
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 241
ConfusingTernary Avoid if (x != y) ..; else ..; 3 245261
CyclomaticComplexity The method 'getSuggestSubmitTypeData(MultipartHttpServletRequest, SuggestSubmitType)' has a cyclomatic complexity of 10. 3 335386
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 338
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 343
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 344

fr/paris/lutece/plugins/suggest/web/SuggestVideoResourceServlet.java

Rule Violation Priority Ligne
FieldNamingConventions The constant name '_cache' doesn't match '[A-Z][A-Z_0-9]*' 1 60
ShortVariable Avoid variables with short names like r 3 87
ShortVariable Avoid variables with short names like r 3 137

fr/paris/lutece/plugins/suggest/web/action/ExportSuggestSubmitAction.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34255
ExcessiveMethodLength Avoid really long methods. 3 143244
CyclomaticComplexity The method 'process(HttpServletRequest, HttpServletResponse, AdminUser, SuggestAdminSearchFields)' has a cyclomatic complexity of 10. 3 143244
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 147
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 151
ConfusingTernary Avoid if (x != y) ..; else ..; 3 217
ShortVariable Avoid variables with short names like os 3 229

fr/paris/lutece/plugins/suggest/web/action/ISuggestAction.java

Rule Violation Priority Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.business.user.AdminUser' 4 36
UnusedImports Avoid unused imports such as 'java.util.Map' 4 40
UnusedImports Avoid unused imports such as 'javax.servlet.http.HttpServletRequest' 4 42
UnusedImports Avoid unused imports such as 'javax.servlet.http.HttpServletResponse' 4 43

fr/paris/lutece/plugins/suggest/web/action/MassChangeCategorySuggestSubmitAction.java

Rule Violation Priority Ligne
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 120
ConfusingTernary Avoid if (x != y) ..; else ..; 3 129159

fr/paris/lutece/plugins/suggest/web/action/MassChangeCommentSuggestSubmitAction.java

Rule Violation Priority Ligne
UncommentedEmptyMethodBody Document empty method body 3 7879
CyclomaticComplexity The method 'process(HttpServletRequest, HttpServletResponse, AdminUser, SuggestAdminSearchFields)' has a cyclomatic complexity of 12. 3 112163
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 115
ConfusingTernary Avoid if (x != y) ..; else ..; 3 120158

fr/paris/lutece/plugins/suggest/web/action/MassChangeVoteSuggestSubmitAction.java

Rule Violation Priority Ligne
UncommentedEmptyMethodBody Document empty method body 3 7879
CyclomaticComplexity The method 'process(HttpServletRequest, HttpServletResponse, AdminUser, SuggestAdminSearchFields)' has a cyclomatic complexity of 12. 3 112163
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 115
ConfusingTernary Avoid if (x != y) ..; else ..; 3 120158

fr/paris/lutece/plugins/suggest/web/action/MassPinnedSuggestSubmitAction.java

Rule Violation Priority Ligne
UncommentedEmptyMethodBody Document empty method body 3 7879
CyclomaticComplexity The method 'process(HttpServletRequest, HttpServletResponse, AdminUser, SuggestAdminSearchFields)' has a cyclomatic complexity of 12. 3 112167
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 115
ConfusingTernary Avoid if (x != y) ..; else ..; 3 120162

fr/paris/lutece/plugins/suggest/web/action/SuggestAdminSearchFields.java

Rule Violation Priority Ligne
CommentRequired Public method and constructor comments are required 3 6164
CommentRequired Public method and constructor comments are required 3 6669
CommentRequired Public method and constructor comments are required 3 7174
CommentRequired Public method and constructor comments are required 3 7679
CommentRequired Public method and constructor comments are required 3 8184
CommentRequired Public method and constructor comments are required 3 8689
CommentRequired Public method and constructor comments are required 3 9194
CommentRequired Public method and constructor comments are required 3 9699
CommentRequired Public method and constructor comments are required 3 111114
CommentRequired Public method and constructor comments are required 3 116119
CommentRequired Public method and constructor comments are required 3 121124
CommentRequired Public method and constructor comments are required 3 126129
CommentRequired Public method and constructor comments are required 3 131134
CommentRequired Public method and constructor comments are required 3 136139
CommentRequired Public method and constructor comments are required 3 141144
CommentRequired Public method and constructor comments are required 3 146149