Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.13.0.

Violations By Priority

Priority 1

fr/paris/lutece/plugins/genericattributes/business/CartoProviderManager.java

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

fr/paris/lutece/plugins/genericattributes/business/MapProviderManager.java

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

fr/paris/lutece/plugins/genericattributes/business/OcrProviderManager.java

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

fr/paris/lutece/plugins/genericattributes/business/ReferenceItemFieldHome.java

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

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeGroup.java

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

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeMyLuteceUser.java

Rule Violation Line
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 6467
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 7376
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 102105
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 160163

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeSlot.java

Rule Violation Line
FieldNamingConventions The field name 'FIELD_BEGIN_HOUR' doesn't match '_[a-z][a-zA-Z0-9]*' 22
FieldNamingConventions The field name 'FIELD_END_HOUR' doesn't match '_[a-z][a-zA-Z0-9]*' 23

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeUpload.java

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

fr/paris/lutece/plugins/genericattributes/service/entrytype/EntryTypeService.java

Rule Violation Line
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 6669
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 7578
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 102105
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 120123

fr/paris/lutece/plugins/genericattributes/service/entrytype/EntryTypeServiceManager.java

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

fr/paris/lutece/plugins/genericattributes/service/file/GenericAttributeFileService.java

Rule Violation Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 51229
FieldNamingConventions The constant name '_instance' doesn't match '[A-Z][A-Z_0-9]*' 56
FieldNamingConventions The constant name '_entryTypeFileServices' doesn't match '[A-Z][A-Z_0-9]*' 57

fr/paris/lutece/plugins/genericattributes/util/CopyEntryEventParam.java

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

fr/paris/lutece/plugins/genericattributes/util/EntryTypeNumberingUtil.java

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

Priority 2

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

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

fr/paris/lutece/plugins/genericattributes/service/file/GenericAttributeFileService.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'strOrigin' 188
AvoidReassigningParameters Avoid reassigning parameters such as 'strOrigin' 212

Priority 3

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

Rule Violation Line
ExcessivePublicCount This class has a bunch of public methods and attributes 34601
GodClass Possible God Class (WMC=53, ATFD=12, TCC=1.333%) 48601
TooManyFields Too many fields 48601
CloneMethodReturnTypeMustMatchClassName The return type of the clone() method must be the class name when implements Cloneable 500512
CloneThrowsCloneNotSupportedException clone() method should throw CloneNotSupportedException 500512
CommentRequired Public method and constructor comments are required 514517
CommentRequired Public method and constructor comments are required 519522
CommentRequired Public method and constructor comments are required 524527
CommentRequired Public method and constructor comments are required 529532

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

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 53768
ConfusingTernary Avoid if (x != y) ..; else ..; 113120
ConfusingTernary Avoid if (x != y) ..; else ..; 131138
ConfusingTernary Avoid if (x != y) ..; else ..; 237244
ConfusingTernary Avoid if (x != y) ..; else ..; 262269
ConfusingTernary Avoid if (x != y) ..; else ..; 274281
NPathComplexity The method 'selectEntryListByFilter(EntryFilter, Plugin)' has an NPath complexity of 2050 297379
CyclomaticComplexity The method 'selectEntryListByFilter(EntryFilter, Plugin)' has a cyclomatic complexity of 12. 297379
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 314
ShortVariable Avoid variables with short names like sb 381
NPathComplexity The method 'selectNumberEntryByFilter(EntryFilter, Plugin)' has an NPath complexity of 513 390461
CyclomaticComplexity The method 'selectNumberEntryByFilter(EntryFilter, Plugin)' has a cyclomatic complexity of 10. 390461
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 404
ConfusingTernary Avoid if (x != y) ..; else ..; 584608
AssignmentInOperand Avoid assignments in operands 667
AssignmentInOperand Avoid assignments in operands 682
AssignmentInOperand Avoid assignments in operands 692
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 729

fr/paris/lutece/plugins/genericattributes/business/EntryFilter.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 46377
CommentRequired Public method and constructor comments are required 363366
CommentRequired Public method and constructor comments are required 368371
CommentRequired Public method and constructor comments are required 373376

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

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 54394
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'field' 99
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'entryChild' 115
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 134
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 202
NonThreadSafeSingleton Singleton is not thread safe 359362

fr/paris/lutece/plugins/genericattributes/business/EntryTypeHome.java

Rule Violation Line
NonThreadSafeSingleton Singleton is not thread safe 6770

fr/paris/lutece/plugins/genericattributes/business/FieldDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 53358
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 103129
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 116
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 119
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 181
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 184

fr/paris/lutece/plugins/genericattributes/business/FieldHome.java

Rule Violation Line
ShortVariable Avoid variables with short names like id 74
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 117
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 197200
NonThreadSafeSingleton Singleton is not thread safe 302305

fr/paris/lutece/plugins/genericattributes/business/GenAttFileItem.java

Rule Violation Line
ImmutableField Private field '_strFileName' could be made final; it is only initialized in the declaration or constructor. 54
ArrayIsStoredDirectly The user-supplied array 'bValue' is stored directly. 68
ArrayIsStoredDirectly The user-supplied array 'bValue' is stored directly. 84
ArrayIsStoredDirectly The user-supplied array 'bValue' is stored directly. 104
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 120
MethodReturnsInternalArray Returning '_bValue' may expose an internal array. 129
CommentRequired Public method and constructor comments are required 269272

fr/paris/lutece/plugins/genericattributes/business/ICartoProvider.java

Rule Violation Line
ShortVariable Avoid variables with short names like y 99
ShortVariable Avoid variables with short names like x 99

fr/paris/lutece/plugins/genericattributes/business/IEntryDAO.java

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

fr/paris/lutece/plugins/genericattributes/business/IOcrProvider.java

Rule Violation Line
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 135

fr/paris/lutece/plugins/genericattributes/business/MandatoryError.java

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

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

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 86127
ConfusingTernary Avoid if (x != y) ..; else ..; 96103
ConfusingTernary Avoid if (x != y) ..; else ..; 105114
ConfusingTernary Avoid if (x != y) ..; else ..; 178185
ConfusingTernary Avoid if (x != y) ..; else ..; 187196
NPathComplexity The method 'selectListByFilter(ResponseFilter, Plugin)' has an NPath complexity of 33280 210300
CyclomaticComplexity The method 'selectListByFilter(ResponseFilter, Plugin)' has a cyclomatic complexity of 16. 210300
ShortVariable Avoid variables with short names like sb 243
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 244
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 245
ShortVariable Avoid variables with short names like sb 251
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 252
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 253
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 257
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 258
ShortVariable Avoid variables with short names like s 412
ShortVariable Avoid variables with short names like sb 419
ShortVariable Avoid variables with short names like c 423
CollapsibleIfStatements These nested if statements could be combined 428432

fr/paris/lutece/plugins/genericattributes/business/ResponseHome.java

Rule Violation Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 83
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 111
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 144
NonThreadSafeSingleton Singleton is not thread safe 209212

fr/paris/lutece/plugins/genericattributes/service/GenattReferenceItemListener.java

Rule Violation Line
CommentRequired Header comments are required 51101

fr/paris/lutece/plugins/genericattributes/service/GenericAttributesSessionListener.java

Rule Violation Line
ShortVariable Avoid variables with short names like se 51
ShortVariable Avoid variables with short names like se 60

fr/paris/lutece/plugins/genericattributes/service/anonymization/AbstractAnonymizationService.java

Rule Violation Line
CommentRequired Header comments are required 4296

fr/paris/lutece/plugins/genericattributes/service/anonymization/AbstractDateAnonymizationService.java

Rule Violation Line
CommentRequired Header comments are required 3963

fr/paris/lutece/plugins/genericattributes/service/anonymization/AbstractTextAnonymizationService.java

Rule Violation Line
CommentRequired Header comments are required 3968

fr/paris/lutece/plugins/genericattributes/service/anonymization/EntryAnonymizationType.java

Rule Violation Line
CommentRequired Header comments are required 4190
ImmutableField Private field '_wildcard' could be made final; it is only initialized in the declaration or constructor. 43
ImmutableField Private field '_helpKey' could be made final; it is only initialized in the declaration or constructor. 44
ImmutableField Private field '_serviceName' could be made final; it is only initialized in the declaration or constructor. 45

fr/paris/lutece/plugins/genericattributes/service/anonymization/FileReplaceAnonymizationService.java

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

fr/paris/lutece/plugins/genericattributes/service/anonymization/IEntryAnonymizationType.java

Rule Violation Line
CommentRequired Header comments are required 3855

fr/paris/lutece/plugins/genericattributes/service/anonymization/IEntryTypeAnonymisationService.java

Rule Violation Line
CommentRequired Header comments are required 3957

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeArray.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 67
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 69
ConfusingTernary Avoid if (x != y) ..; else ..; 98114

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeCamera.java

Rule Violation Line
ExcessiveMethodLength Avoid really long methods. 83185
CyclomaticComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 11. 83185
NPathComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 432 83185
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. 88
ConfusingTernary Avoid if (x != y) ..; else ..; 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. 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. 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
CyclomaticComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 10. 191233
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 253
ShortVariable Avoid variables with short names like dt 253
ShortVariable Avoid variables with short names like c 258
ConfusingTernary Avoid if (x != y) ..; else ..; 277284
ConfusingTernary Avoid if (x != y) ..; else ..; 385
UseUnderscoresInNumericLiterals Number 5242880 should separate every third digit with an underscore 391
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 397

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeCartography.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'MESSAGE_SPECIFY_BOTH_X_AND_Y'. 109
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 122
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 123
ConfusingTernary Avoid if (x != y) ..; else ..; 123
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 124
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 125
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 126
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 127
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 128
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 129
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 130
CyclomaticComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 11. 173239
ConfusingTernary Avoid if (x != y) ..; else ..; 189200
ConfusingTernary Avoid if (x != y) ..; else ..; 193200
ConfusingTernary Avoid if (x != y) ..; else ..; 268275
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 293

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeCheckBox.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 70
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 72
ConfusingTernary Avoid if (x != y) ..; else ..; 72
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 73
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 74
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 75
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 76
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 77
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 78
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 80
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 139151

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeChoice.java

Rule Violation Line
CommentRequired Header comments are required 53134
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 7174
CommentRequired Protected method constructor comments are required 83133

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeComment.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 73
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 75
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 76
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 77

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeDate.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 72
ConfusingTernary Avoid if (x != y) ..; else ..; 73
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 73
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 74
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 75
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 76
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 77
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 78
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 79
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 80
ConfusingTernary Avoid if (x != y) ..; else ..; 118

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeFile.java

Rule Violation Line
NPathComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has an NPath complexity of 14820 75182
CyclomaticComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 20. 75182
ExcessiveMethodLength Avoid really long methods. 75182
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 99
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 208211

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeGalleryImage.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 171
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 172
ConfusingTernary Avoid if (x != y) ..; else ..; 172
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 173
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 174
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 175
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 176
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 177
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 178

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeGeolocation.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 123
ConfusingTernary Avoid if (x != y) ..; else ..; 124
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 124
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 125
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 126
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 127
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 128
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 129
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 130
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 131
NPathComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has an NPath complexity of 55296 190325
NcssCount The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a NCSS line count of 94. 190325
ExcessiveMethodLength Avoid really long methods. 190325
CyclomaticComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 20. 190325
ConfusingTernary Avoid if (x != y) ..; else ..; 195201
ConfusingTernary Avoid if (x != y) ..; else ..; 202207
CollapsibleIfStatements These nested if statements could be combined 320322
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 390393
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 414

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeGroup.java

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

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeImage.java

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

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeNumber.java

Rule Violation Line
NPathComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 2048 66137
CyclomaticComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 12. 66137
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 69
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 71
ConfusingTernary Avoid if (x != y) ..; else ..; 71
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 72
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 73
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 74
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 75
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 76
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 77
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 78
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 79
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 80
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 81
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 82
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 83
ConfusingTernary Avoid if (x != y) ..; else ..; 132
ShortVariable Avoid variables with short names like sb 234

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeNumbering.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 70
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 71
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 72
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 73

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeRadioButton.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 67
ConfusingTernary Avoid if (x != y) ..; else ..; 68
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 68
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 69
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 70
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 71
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 72
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 73
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 75

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeSelect.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 66
ConfusingTernary Avoid if (x != y) ..; else ..; 67
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 67
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 68
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 69
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 70
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 71
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 72

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeSelectOrder.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 67
ConfusingTernary Avoid if (x != y) ..; else ..; 68
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 68
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 69
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 70
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 71
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 72
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 73
ShortVariable Avoid variables with short names like id 126

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeSelectSQL.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 69
ConfusingTernary Avoid if (x != y) ..; else ..; 70
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 70
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 71
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 72
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 73
ConfusingTernary Avoid if (x != y) ..; else ..; 178

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeSession.java

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

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeSlot.java

Rule Violation Line
CommentRequired Header comments are required 16176
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the FIELD_BEGIN_HOUR field if you want a default access modifier 22
DefaultPackage Use explicit scoping instead of the default package private level 22
DefaultPackage Use explicit scoping instead of the default package private level 23
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the FIELD_END_HOUR field if you want a default access modifier 23
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 33
ConfusingTernary Avoid if (x != y) ..; else ..; 34
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 34
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 35
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 36
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 37
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 38
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 39
CyclomaticComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 10. 74148
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 78
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 98
CommentRequired Protected method constructor comments are required 150161

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeTelephoneNumber.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 80
ConfusingTernary Avoid if (x != y) ..; else ..; 81
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 81
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 82
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 83
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 84
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 85
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. 90
ConfusingTernary Avoid if (x != y) ..; else ..; 135
CyclomaticComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 13. 147234

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeText.java

Rule Violation Line
CyclomaticComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 18. 74201
ExcessiveMethodLength Avoid really long methods. 74201
NPathComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 13824 74201
NcssCount The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a NCSS line count of 72. 74201
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 77
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 79
ConfusingTernary Avoid if (x != y) ..; else ..; 79
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 80
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 81
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 82
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 84
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. 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. 92
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
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 175
ConfusingTernary Avoid if (x != y) ..; else ..; 185
CyclomaticComplexity The method 'checkErrors(Entry, Field, String, String, List, boolean, Locale)' has a cyclomatic complexity of 13. 274331

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeTextArea.java

Rule Violation Line
NPathComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 768 66174
CyclomaticComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 12. 66174
ExcessiveMethodLength Avoid really long methods. 66174
NcssCount The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a NCSS line count of 61. 66174
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 70
ConfusingTernary Avoid if (x != y) ..; else ..; 71
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 71
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 72
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 73
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 74
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 77
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 78
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 79
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 80
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 81
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 82
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 84
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 85
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 86
ConfusingTernary Avoid if (x != y) ..; else ..; 168

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeUpload.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34432
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 165168
CyclomaticComplexity The method 'getResponseValueForExport(Entry, HttpServletRequest, Response, Locale)' has a cyclomatic complexity of 10. 180214
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 196205
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 287
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 302
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 303
ConfusingTernary Avoid if (x != y) ..; else ..; 303
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 304
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 305
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 306
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 307
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 308
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 309

fr/paris/lutece/plugins/genericattributes/service/entrytype/IEntryTypeService.java

Rule Violation Line
LinguisticNaming Linguistics Antipattern - The method 'canUploadFiles' indicates linguistically it returns a boolean, but it returns 'GenericAttributeError' 290

fr/paris/lutece/plugins/genericattributes/service/file/GenericAttributeFileService.java

Rule Violation Line
CommentRequired Header comments are required 51229
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 57
CollapsibleIfStatements These nested if statements could be combined 8891

fr/paris/lutece/plugins/genericattributes/service/upload/AbstractGenAttUploadHandler.java

Rule Violation Line
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 104107

fr/paris/lutece/plugins/genericattributes/util/CopyEntryEventParam.java

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

fr/paris/lutece/plugins/genericattributes/util/EntryTypeNumberingUtil.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 5659
CommentRequired Public method and constructor comments are required 6174
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 6174

fr/paris/lutece/plugins/genericattributes/util/FileAttributesUtils.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 75124
CyclomaticComplexity The method 'checkFileSize(Entry, List, List, Locale)' has a cyclomatic complexity of 11. 75124
UseUnderscoresInNumericLiterals Number 5242880 should separate every third digit with an underscore 90
CommentRequired Public method and constructor comments are required 126160
ConfusingTernary Avoid if (x != y) ..; else ..; 202210

fr/paris/lutece/plugins/genericattributes/web/admin/EntryTypeJspBean.java

Rule Violation Line
CommentRequired Header comments are required 52210
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 179
CommentRequired Public method and constructor comments are required 180193
CommentRequired Public method and constructor comments are required 196209

Priority 4

fr/paris/lutece/plugins/genericattributes/business/GenericAttributeError.java

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

fr/paris/lutece/plugins/genericattributes/business/Response.java

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

fr/paris/lutece/plugins/genericattributes/service/anonymization/FileDeleteAnonymizationService.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.business.file.FileHome' 39

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeCartography.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'java.util.Optional' 42

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeComment.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.file.FileService' 50
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.file.FileServiceException' 51
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.file.IFileStoreServiceProvider' 52
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppLogService' 56

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeTextArea.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.util.string.StringUtil' 53

fr/paris/lutece/plugins/genericattributes/service/file/GenericAttributeFileService.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'java.util.function.Function' 39
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.file.IFileStoreServiceProvider' 47

Files

fr/paris/lutece/plugins/genericattributes/business/CartoProviderManager.java

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

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

Rule Violation Priority Line
ExcessivePublicCount This class has a bunch of public methods and attributes 3 34601
GodClass Possible God Class (WMC=53, ATFD=12, TCC=1.333%) 3 48601
TooManyFields Too many fields 3 48601
CloneMethodReturnTypeMustMatchClassName The return type of the clone() method must be the class name when implements Cloneable 3 500512
ProperCloneImplementation Object clone() should be implemented with super.clone() 2 500
CloneThrowsCloneNotSupportedException clone() method should throw CloneNotSupportedException 3 500512
CommentRequired Public method and constructor comments are required 3 514517
CommentRequired Public method and constructor comments are required 3 519522
CommentRequired Public method and constructor comments are required 3 524527
CommentRequired Public method and constructor comments are required 3 529532

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

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 53768
ConfusingTernary Avoid if (x != y) ..; else ..; 3 113120
ConfusingTernary Avoid if (x != y) ..; else ..; 3 131138
ConfusingTernary Avoid if (x != y) ..; else ..; 3 237244
ConfusingTernary Avoid if (x != y) ..; else ..; 3 262269
ConfusingTernary Avoid if (x != y) ..; else ..; 3 274281
NPathComplexity The method 'selectEntryListByFilter(EntryFilter, Plugin)' has an NPath complexity of 2050 3 297379
CyclomaticComplexity The method 'selectEntryListByFilter(EntryFilter, Plugin)' has a cyclomatic complexity of 12. 3 297379
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 314
ShortVariable Avoid variables with short names like sb 3 381
NPathComplexity The method 'selectNumberEntryByFilter(EntryFilter, Plugin)' has an NPath complexity of 513 3 390461
CyclomaticComplexity The method 'selectNumberEntryByFilter(EntryFilter, Plugin)' has a cyclomatic complexity of 10. 3 390461
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 404
ConfusingTernary Avoid if (x != y) ..; else ..; 3 584608
AssignmentInOperand Avoid assignments in operands 3 667
AssignmentInOperand Avoid assignments in operands 3 682
AssignmentInOperand Avoid assignments in operands 3 692
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 729

fr/paris/lutece/plugins/genericattributes/business/EntryFilter.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 46377
CommentRequired Public method and constructor comments are required 3 363366
CommentRequired Public method and constructor comments are required 3 368371
CommentRequired Public method and constructor comments are required 3 373376

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

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 54394
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'field' 3 99
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'entryChild' 3 115
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 134
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 202
NonThreadSafeSingleton Singleton is not thread safe 3 359362

fr/paris/lutece/plugins/genericattributes/business/EntryTypeHome.java

Rule Violation Priority Line
NonThreadSafeSingleton Singleton is not thread safe 3 6770

fr/paris/lutece/plugins/genericattributes/business/FieldDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 53358
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 103129
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 116
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 119
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 181
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 184

fr/paris/lutece/plugins/genericattributes/business/FieldHome.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like id 3 74
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 117
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 197200
NonThreadSafeSingleton Singleton is not thread safe 3 302305

fr/paris/lutece/plugins/genericattributes/business/GenAttFileItem.java

Rule Violation Priority Line
ImmutableField Private field '_strFileName' could be made final; it is only initialized in the declaration or constructor. 3 54
ArrayIsStoredDirectly The user-supplied array 'bValue' is stored directly. 3 68
ArrayIsStoredDirectly The user-supplied array 'bValue' is stored directly. 3 84
ArrayIsStoredDirectly The user-supplied array 'bValue' is stored directly. 3 104
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 120
MethodReturnsInternalArray Returning '_bValue' may expose an internal array. 3 129
CommentRequired Public method and constructor comments are required 3 269272

fr/paris/lutece/plugins/genericattributes/business/GenericAttributeError.java

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

fr/paris/lutece/plugins/genericattributes/business/ICartoProvider.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like y 3 99
ShortVariable Avoid variables with short names like x 3 99

fr/paris/lutece/plugins/genericattributes/business/IEntryDAO.java

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

fr/paris/lutece/plugins/genericattributes/business/IOcrProvider.java

Rule Violation Priority Line
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 135

fr/paris/lutece/plugins/genericattributes/business/MandatoryError.java

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

fr/paris/lutece/plugins/genericattributes/business/MapProviderManager.java

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

fr/paris/lutece/plugins/genericattributes/business/OcrProviderManager.java

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

fr/paris/lutece/plugins/genericattributes/business/ReferenceItemFieldHome.java

Rule Violation Priority Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 47108

fr/paris/lutece/plugins/genericattributes/business/Response.java

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

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

Rule Violation Priority Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 86127
ConfusingTernary Avoid if (x != y) ..; else ..; 3 96103
ConfusingTernary Avoid if (x != y) ..; else ..; 3 105114
ConfusingTernary Avoid if (x != y) ..; else ..; 3 178185
ConfusingTernary Avoid if (x != y) ..; else ..; 3 187196
NPathComplexity The method 'selectListByFilter(ResponseFilter, Plugin)' has an NPath complexity of 33280 3 210300
CyclomaticComplexity The method 'selectListByFilter(ResponseFilter, Plugin)' has a cyclomatic complexity of 16. 3 210300
ShortVariable Avoid variables with short names like sb 3 243
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 244
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 245
ShortVariable Avoid variables with short names like sb 3 251
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 252
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 253
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 257
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 258
ShortVariable Avoid variables with short names like s 3 412
ShortVariable Avoid variables with short names like sb 3 419
ShortVariable Avoid variables with short names like c 3 423
CollapsibleIfStatements These nested if statements could be combined 3 428432

fr/paris/lutece/plugins/genericattributes/business/ResponseHome.java

Rule Violation Priority Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 83
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 111
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 144
NonThreadSafeSingleton Singleton is not thread safe 3 209212

fr/paris/lutece/plugins/genericattributes/service/GenattReferenceItemListener.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 51101

fr/paris/lutece/plugins/genericattributes/service/GenericAttributesSessionListener.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like se 3 51
ShortVariable Avoid variables with short names like se 3 60

fr/paris/lutece/plugins/genericattributes/service/anonymization/AbstractAnonymizationService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4296

fr/paris/lutece/plugins/genericattributes/service/anonymization/AbstractDateAnonymizationService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3963

fr/paris/lutece/plugins/genericattributes/service/anonymization/AbstractTextAnonymizationService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3968

fr/paris/lutece/plugins/genericattributes/service/anonymization/EntryAnonymizationType.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4190
ImmutableField Private field '_wildcard' could be made final; it is only initialized in the declaration or constructor. 3 43
ImmutableField Private field '_helpKey' could be made final; it is only initialized in the declaration or constructor. 3 44
ImmutableField Private field '_serviceName' could be made final; it is only initialized in the declaration or constructor. 3 45

fr/paris/lutece/plugins/genericattributes/service/anonymization/FileDeleteAnonymizationService.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.business.file.FileHome' 4 39

fr/paris/lutece/plugins/genericattributes/service/anonymization/FileReplaceAnonymizationService.java

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

fr/paris/lutece/plugins/genericattributes/service/anonymization/IEntryAnonymizationType.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3855

fr/paris/lutece/plugins/genericattributes/service/anonymization/IEntryTypeAnonymisationService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3957

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeArray.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 67
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 69
ConfusingTernary Avoid if (x != y) ..; else ..; 3 98114

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeCamera.java

Rule Violation Priority Line
ExcessiveMethodLength Avoid really long methods. 3 83185
CyclomaticComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 11. 3 83185
NPathComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 432 3 83185
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 88
ConfusingTernary Avoid if (x != y) ..; else ..; 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 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 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
CyclomaticComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 10. 3 191233
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 253
ShortVariable Avoid variables with short names like dt 3 253
ShortVariable Avoid variables with short names like c 3 258
ConfusingTernary Avoid if (x != y) ..; else ..; 3 277284
ConfusingTernary Avoid if (x != y) ..; else ..; 3 385
UseUnderscoresInNumericLiterals Number 5242880 should separate every third digit with an underscore 3 391
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 397

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeCartography.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'java.util.Optional' 4 42
UnusedPrivateField Avoid unused private fields such as 'MESSAGE_SPECIFY_BOTH_X_AND_Y'. 3 109
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 122
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 123
ConfusingTernary Avoid if (x != y) ..; else ..; 3 123
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 124
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 125
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 126
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 127
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 128
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 129
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 130
CyclomaticComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 11. 3 173239
ConfusingTernary Avoid if (x != y) ..; else ..; 3 189200
ConfusingTernary Avoid if (x != y) ..; else ..; 3 193200
ConfusingTernary Avoid if (x != y) ..; else ..; 3 268275
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 293

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeCheckBox.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 70
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 72
ConfusingTernary Avoid if (x != y) ..; else ..; 3 72
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 73
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 74
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 75
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 76
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 77
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 78
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 80
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 139151

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeChoice.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 53134
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 7174
CommentRequired Protected method constructor comments are required 3 83133

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeComment.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.file.FileService' 4 50
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.file.FileServiceException' 4 51
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.file.IFileStoreServiceProvider' 4 52
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppLogService' 4 56
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 73
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 75
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 76
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 77

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeDate.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 72
ConfusingTernary Avoid if (x != y) ..; else ..; 3 73
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 73
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 74
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 75
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 76
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 77
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 78
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 79
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 80
ConfusingTernary Avoid if (x != y) ..; else ..; 3 118

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeFile.java

Rule Violation Priority Line
NPathComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has an NPath complexity of 14820 3 75182
CyclomaticComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 20. 3 75182
ExcessiveMethodLength Avoid really long methods. 3 75182
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 99
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 208211

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeGalleryImage.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 171
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 172
ConfusingTernary Avoid if (x != y) ..; else ..; 3 172
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 173
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 174
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 175
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 176
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 177
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 178

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeGeolocation.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 123
ConfusingTernary Avoid if (x != y) ..; else ..; 3 124
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 124
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 125
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 126
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 127
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 128
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 129
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 130
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 131
NPathComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has an NPath complexity of 55296 3 190325
NcssCount The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a NCSS line count of 94. 3 190325
ExcessiveMethodLength Avoid really long methods. 3 190325
CyclomaticComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 20. 3 190325
ConfusingTernary Avoid if (x != y) ..; else ..; 3 195201
ConfusingTernary Avoid if (x != y) ..; else ..; 3 202207
CollapsibleIfStatements These nested if statements could be combined 3 320322
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 390393
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 414

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeGroup.java

Rule Violation Priority Line
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 5861
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 70
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 73

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeImage.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 51127
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 6470

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeMyLuteceUser.java

Rule Violation Priority Line
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 6467
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 7376
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 102105
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 160163

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeNumber.java

Rule Violation Priority Line
NPathComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 2048 3 66137
CyclomaticComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 12. 3 66137
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 69
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 71
ConfusingTernary Avoid if (x != y) ..; else ..; 3 71
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 72
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 73
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 74
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 75
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 76
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 77
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 78
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 79
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 80
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 81
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 82
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 83
ConfusingTernary Avoid if (x != y) ..; else ..; 3 132
ShortVariable Avoid variables with short names like sb 3 234

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeNumbering.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 70
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 71
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 72
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 73

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeRadioButton.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 67
ConfusingTernary Avoid if (x != y) ..; else ..; 3 68
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 68
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 69
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 70
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 71
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 72
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 73
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 75

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeSelect.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 66
ConfusingTernary Avoid if (x != y) ..; else ..; 3 67
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 67
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 68
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 69
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 70
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 71
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 72

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeSelectOrder.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 67
ConfusingTernary Avoid if (x != y) ..; else ..; 3 68
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 68
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 69
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 70
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 71
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 72
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 73
ShortVariable Avoid variables with short names like id 3 126

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeSelectSQL.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 69
ConfusingTernary Avoid if (x != y) ..; else ..; 3 70
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 70
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 71
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 72
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 73
ConfusingTernary Avoid if (x != y) ..; else ..; 3 178

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeSession.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 72
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 74

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeSlot.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 16176
FieldNamingConventions The field name 'FIELD_BEGIN_HOUR' doesn't match '_[a-z][a-zA-Z0-9]*' 1 22
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the FIELD_BEGIN_HOUR field if you want a default access modifier 3 22
DefaultPackage Use explicit scoping instead of the default package private level 3 22
DefaultPackage Use explicit scoping instead of the default package private level 3 23
FieldNamingConventions The field name 'FIELD_END_HOUR' doesn't match '_[a-z][a-zA-Z0-9]*' 1 23
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the FIELD_END_HOUR field if you want a default access modifier 3 23
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 33
ConfusingTernary Avoid if (x != y) ..; else ..; 3 34
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 34
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 35
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 36
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 37
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 38
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 39
CyclomaticComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 10. 3 74148
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 78
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 98
CommentRequired Protected method constructor comments are required 3 150161

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeTelephoneNumber.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 80
ConfusingTernary Avoid if (x != y) ..; else ..; 3 81
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 81
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 82
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 83
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 84
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 85
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 90
ConfusingTernary Avoid if (x != y) ..; else ..; 3 135
CyclomaticComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 13. 3 147234

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeText.java

Rule Violation Priority Line
CyclomaticComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 18. 3 74201
ExcessiveMethodLength Avoid really long methods. 3 74201
NPathComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 13824 3 74201
NcssCount The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a NCSS line count of 72. 3 74201
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 77
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 79
ConfusingTernary Avoid if (x != y) ..; else ..; 3 79
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 80
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 81
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 82
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 84
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 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 92
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
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 175
ConfusingTernary Avoid if (x != y) ..; else ..; 3 185
CyclomaticComplexity The method 'checkErrors(Entry, Field, String, String, List, boolean, Locale)' has a cyclomatic complexity of 13. 3 274331

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeTextArea.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.util.string.StringUtil' 4 53
NPathComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 768 3 66174
CyclomaticComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 12. 3 66174
ExcessiveMethodLength Avoid really long methods. 3 66174
NcssCount The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a NCSS line count of 61. 3 66174
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 70
ConfusingTernary Avoid if (x != y) ..; else ..; 3 71
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 71
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 72
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 73
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 74
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 77
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 78
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 79
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 80
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 81
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 82
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 84
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 85
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 86
ConfusingTernary Avoid if (x != y) ..; else ..; 3 168

fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeUpload.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34432
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 165168
CyclomaticComplexity The method 'getResponseValueForExport(Entry, HttpServletRequest, Response, Locale)' has a cyclomatic complexity of 10. 3 180214
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 196205
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 287
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 302
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 303
ConfusingTernary Avoid if (x != y) ..; else ..; 3 303
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 304
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 305
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 306
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 307
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 308
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 309
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 369372

fr/paris/lutece/plugins/genericattributes/service/entrytype/EntryTypeService.java

Rule Violation Priority Line
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 6669
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 7578
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 102105
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 120123

fr/paris/lutece/plugins/genericattributes/service/entrytype/EntryTypeServiceManager.java

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

fr/paris/lutece/plugins/genericattributes/service/entrytype/IEntryTypeService.java

Rule Violation Priority Line
LinguisticNaming Linguistics Antipattern - The method 'canUploadFiles' indicates linguistically it returns a boolean, but it returns 'GenericAttributeError' 3 290

fr/paris/lutece/plugins/genericattributes/service/file/GenericAttributeFileService.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'java.util.function.Function' 4 39
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.file.IFileStoreServiceProvider' 4 47
CommentRequired Header comments are required 3 51229
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 51229
FieldNamingConventions The constant name '_instance' doesn't match '[A-Z][A-Z_0-9]*' 1 56
FieldNamingConventions The constant name '_entryTypeFileServices' doesn't match '[A-Z][A-Z_0-9]*' 1 57
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 57
CollapsibleIfStatements These nested if statements could be combined 3 8891
AvoidReassigningParameters Avoid reassigning parameters such as 'strOrigin' 2 188
AvoidReassigningParameters Avoid reassigning parameters such as 'strOrigin' 2 212

fr/paris/lutece/plugins/genericattributes/service/upload/AbstractGenAttUploadHandler.java

Rule Violation Priority Line
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 104107

fr/paris/lutece/plugins/genericattributes/util/CopyEntryEventParam.java

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

fr/paris/lutece/plugins/genericattributes/util/EntryTypeNumberingUtil.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_valuesMap' doesn't match '[a-z][a-zA-Z0-9]*' 1 49
CommentRequired Public method and constructor comments are required 3 5659
CommentRequired Public method and constructor comments are required 3 6174
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 6174

fr/paris/lutece/plugins/genericattributes/util/FileAttributesUtils.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 75124
CyclomaticComplexity The method 'checkFileSize(Entry, List, List, Locale)' has a cyclomatic complexity of 11. 3 75124
UseUnderscoresInNumericLiterals Number 5242880 should separate every third digit with an underscore 3 90
CommentRequired Public method and constructor comments are required 3 126160
ConfusingTernary Avoid if (x != y) ..; else ..; 3 202210

fr/paris/lutece/plugins/genericattributes/web/admin/EntryTypeJspBean.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 52210
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 179
CommentRequired Public method and constructor comments are required 3 180193
CommentRequired Public method and constructor comments are required 3 196209