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)' 46–92

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)' 46–92

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)' 46–92

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

Rule Violation Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 47–108

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

Rule Violation Line
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 58–61

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

Rule Violation Line
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 64–67
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 73–76
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 102–105
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 160–163

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 369–372

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

Rule Violation Line
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 66–69
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 75–78
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 102–105
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 120–123

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)' 43–75

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

Rule Violation Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 49–262
FieldNamingConventions The constant name '_instance' doesn't match '[A-Z][A-Z_0-9]*' 54

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' 191
AvoidReassigningParameters Avoid reassigning parameters such as 'strOrigin' 215

Priority 3

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

Rule Violation Line
ExcessivePublicCount This class has a bunch of public methods and attributes 34–601
TooManyFields Too many fields 48–601
GodClass Possible God Class (WMC=53, ATFD=12, TCC=1.333%) 48–601
CloneMethodReturnTypeMustMatchClassName The return type of the clone() method must be the class name when implements Cloneable 500–512
CloneThrowsCloneNotSupportedException clone() method should throw CloneNotSupportedException 500–512
CommentRequired Public method and constructor comments are required 514–517
CommentRequired Public method and constructor comments are required 519–522
CommentRequired Public method and constructor comments are required 524–527
CommentRequired Public method and constructor comments are required 529–532

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

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 53–768
ConfusingTernary Avoid if (x != y) ..; else ..; 113–120
ConfusingTernary Avoid if (x != y) ..; else ..; 131–138
ConfusingTernary Avoid if (x != y) ..; else ..; 237–244
ConfusingTernary Avoid if (x != y) ..; else ..; 262–269
ConfusingTernary Avoid if (x != y) ..; else ..; 274–281
CyclomaticComplexity The method 'selectEntryListByFilter(EntryFilter, Plugin)' has a cyclomatic complexity of 12. 297–379
NPathComplexity The method 'selectEntryListByFilter(EntryFilter, Plugin)' has an NPath complexity of 2050 297–379
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 390–461
CyclomaticComplexity The method 'selectNumberEntryByFilter(EntryFilter, Plugin)' has a cyclomatic complexity of 10. 390–461
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 404
ConfusingTernary Avoid if (x != y) ..; else ..; 584–608
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. 46–377
CommentRequired Public method and constructor comments are required 363–366
CommentRequired Public method and constructor comments are required 368–371
CommentRequired Public method and constructor comments are required 373–376

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

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 54–394
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 359–362

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

Rule Violation Line
NonThreadSafeSingleton Singleton is not thread safe 67–70

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

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 53–358
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 103–129
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 197–200
NonThreadSafeSingleton Singleton is not thread safe 302–305

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 269–272

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. 45–191

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

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

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

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

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

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 88–130
ConfusingTernary Avoid if (x != y) ..; else ..; 98–105
ConfusingTernary Avoid if (x != y) ..; else ..; 107–117
ConfusingTernary Avoid if (x != y) ..; else ..; 181–188
ConfusingTernary Avoid if (x != y) ..; else ..; 190–200
CyclomaticComplexity The method 'selectListByFilter(ResponseFilter, Plugin)' has a cyclomatic complexity of 18. 214–314
NPathComplexity The method 'selectListByFilter(ResponseFilter, Plugin)' has an NPath complexity of 132096 214–314
ExcessiveMethodLength Avoid really long methods. 214–314
ShortVariable Avoid variables with short names like sb 252
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 253
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 254
ShortVariable Avoid variables with short names like sb 260
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 261
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 262
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 266
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 267
ShortVariable Avoid variables with short names like s 426
ShortVariable Avoid variables with short names like sb 433
ShortVariable Avoid variables with short names like c 437
CollapsibleIfStatements These nested if statements could be combined 442–446
MissingOverride The method 'storeFileKey(int, String, String, Plugin)' is missing an @Override annotation. 455–466
CommentRequired Public method and constructor comments are required 455–466

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 85
ConfusingTernary Avoid if (x != y) ..; else ..; 109–116
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 122
CommentRequired Public method and constructor comments are required 129–143
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 138
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 171
NonThreadSafeSingleton Singleton is not thread safe 236–239

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

Rule Violation Line
CommentRequired Header comments are required 51–101

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 42–96

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

Rule Violation Line
CommentRequired Header comments are required 39–63

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

Rule Violation Line
CommentRequired Header comments are required 39–68

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

Rule Violation Line
CommentRequired Header comments are required 41–90
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 ..; 68–90

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

Rule Violation Line
CommentRequired Header comments are required 38–55

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

Rule Violation Line
CommentRequired Header comments are required 39–57

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 ..; 98–114

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

Rule Violation Line
NPathComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 432 83–185
CyclomaticComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 11. 83–185
ExcessiveMethodLength Avoid really long methods. 83–185
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. 191–233
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 ..; 277–284
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. 173–239
ConfusingTernary Avoid if (x != y) ..; else ..; 189–200
ConfusingTernary Avoid if (x != y) ..; else ..; 193–200
ConfusingTernary Avoid if (x != y) ..; else ..; 268–275
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 139–151

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

Rule Violation Line
CommentRequired Header comments are required 53–154
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 71–74
CommentRequired Protected method constructor comments are required 83–133
CommentRequired Public method and constructor comments are required 135–153
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 143–146

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
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 73
ConfusingTernary Avoid if (x != y) ..; else ..; 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 78–190
ExcessiveMethodLength Avoid really long methods. 78–190
CyclomaticComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 20. 78–190
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 102
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 126–129
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 258–261

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. 125
ConfusingTernary Avoid if (x != y) ..; else ..; 126
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
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 132
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 133
CyclomaticComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 12. 192–255
NPathComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has an NPath complexity of 288 192–255
ConfusingTernary Avoid if (x != y) ..; else ..; 197–206
ConfusingTernary Avoid if (x != y) ..; else ..; 207–214
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 320–323
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 344
NcssCount The method 'getGeolocationResponseList(Entry, int, String, String, String, String, String, String)' has a NCSS line count of 60. 400–492
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 400–401

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 51–127
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 64–70

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

Rule Violation Line
CyclomaticComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 13. 66–144
NPathComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 4096 66–144
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
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 84
ConfusingTernary Avoid if (x != y) ..; else ..; 139
ShortVariable Avoid variables with short names like sb 294

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. 68
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 69
ConfusingTernary Avoid if (x != y) ..; else ..; 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. 74
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 75
ShortVariable Avoid variables with short names like id 131

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
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 70
ConfusingTernary Avoid if (x != y) ..; else ..; 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 16–176
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
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 34
ConfusingTernary Avoid if (x != y) ..; else ..; 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. 74–148
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 150–161

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. 78
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. 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
ConfusingTernary Avoid if (x != y) ..; else ..; 133
CyclomaticComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 13. 145–232

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

Rule Violation Line
ExcessiveMethodLength Avoid really long methods. 78–213
CyclomaticComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 19. 78–213
NPathComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 27648 78–213
NcssCount The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a NCSS line count of 76. 78–213
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 81
ConfusingTernary Avoid if (x != y) ..; else ..; 83
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. 88
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 91
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 92
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 93
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 94
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 95
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 96
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 97
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 106
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 107
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 187
ConfusingTernary Avoid if (x != y) ..; else ..; 197
NPathComplexity The method 'checkErrors(Entry, Field, String, String, List, boolean, Locale)' has an NPath complexity of 576 286–360
CyclomaticComplexity The method 'checkErrors(Entry, Field, String, String, List, boolean, Locale)' has a cyclomatic complexity of 15. 286–360

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

Rule Violation Line
CyclomaticComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 13. 69–184
ExcessiveMethodLength Avoid really long methods. 69–184
NcssCount The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a NCSS line count of 65. 69–184
NPathComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 1536 69–184
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 73
ConfusingTernary Avoid if (x != y) ..; else ..; 74
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. 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
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. 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 ..; 178

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. 34–432
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 165–168
CyclomaticComplexity The method 'getResponseValueForExport(Entry, HttpServletRequest, Response, Locale)' has a cyclomatic complexity of 10. 180–214
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 196–205
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' 297

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

Rule Violation Line
CommentRequired Header comments are required 49–262
AssignmentToNonFinalStatic Possible unsafe assignment to a non-final static field in a constructor. 55
CollapsibleIfStatements These nested if statements could be combined 91–94

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

Rule Violation Line
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 104–107

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

Rule Violation Line
CommentRequired Public method and constructor comments are required 45–48

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

Rule Violation Line
CommentRequired Public method and constructor comments are required 56–59
CommentRequired Public method and constructor comments are required 61–74
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 61–74

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

Rule Violation Line
CommentRequired Public method and constructor comments are required 76–125
CyclomaticComplexity The method 'checkFileSize(Entry, List, List, Locale)' has a cyclomatic complexity of 11. 76–125
UseUnderscoresInNumericLiterals Number 5242880 should separate every third digit with an underscore 91
CommentRequired Public method and constructor comments are required 127–161
ConfusingTernary Avoid if (x != y) ..; else ..; 203–211
CyclomaticComplexity The method 'checkResponseData(Entry, List, Locale)' has a cyclomatic complexity of 11. 236–286

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

Rule Violation Line
CommentRequired Header comments are required 52–210
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 179
CommentRequired Public method and constructor comments are required 180–193
CommentRequired Public method and constructor comments are required 196–209

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() 145–148

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

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

fr/paris/lutece/plugins/genericattributes/business/ResponseHome.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' 54

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 46–92

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

Rule Violation Priority Line
ExcessivePublicCount This class has a bunch of public methods and attributes 3 34–601
TooManyFields Too many fields 3 48–601
GodClass Possible God Class (WMC=53, ATFD=12, TCC=1.333%) 3 48–601
CloneMethodReturnTypeMustMatchClassName The return type of the clone() method must be the class name when implements Cloneable 3 500–512
CloneThrowsCloneNotSupportedException clone() method should throw CloneNotSupportedException 3 500–512
ProperCloneImplementation Object clone() should be implemented with super.clone() 2 500
CommentRequired Public method and constructor comments are required 3 514–517
CommentRequired Public method and constructor comments are required 3 519–522
CommentRequired Public method and constructor comments are required 3 524–527
CommentRequired Public method and constructor comments are required 3 529–532

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

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 53–768
ConfusingTernary Avoid if (x != y) ..; else ..; 3 113–120
ConfusingTernary Avoid if (x != y) ..; else ..; 3 131–138
ConfusingTernary Avoid if (x != y) ..; else ..; 3 237–244
ConfusingTernary Avoid if (x != y) ..; else ..; 3 262–269
ConfusingTernary Avoid if (x != y) ..; else ..; 3 274–281
CyclomaticComplexity The method 'selectEntryListByFilter(EntryFilter, Plugin)' has a cyclomatic complexity of 12. 3 297–379
NPathComplexity The method 'selectEntryListByFilter(EntryFilter, Plugin)' has an NPath complexity of 2050 3 297–379
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 390–461
CyclomaticComplexity The method 'selectNumberEntryByFilter(EntryFilter, Plugin)' has a cyclomatic complexity of 10. 3 390–461
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 404
ConfusingTernary Avoid if (x != y) ..; else ..; 3 584–608
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 46–377
CommentRequired Public method and constructor comments are required 3 363–366
CommentRequired Public method and constructor comments are required 3 368–371
CommentRequired Public method and constructor comments are required 3 373–376

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

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 54–394
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 359–362

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

Rule Violation Priority Line
NonThreadSafeSingleton Singleton is not thread safe 3 67–70

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

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 53–358
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 103–129
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 197–200
NonThreadSafeSingleton Singleton is not thread safe 3 302–305

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 269–272

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 145–148

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 45–191

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

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

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 58–70

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 46–92

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 46–92

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

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

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 304–307

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

Rule Violation Priority Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 88–130
ConfusingTernary Avoid if (x != y) ..; else ..; 3 98–105
ConfusingTernary Avoid if (x != y) ..; else ..; 3 107–117
ConfusingTernary Avoid if (x != y) ..; else ..; 3 181–188
ConfusingTernary Avoid if (x != y) ..; else ..; 3 190–200
CyclomaticComplexity The method 'selectListByFilter(ResponseFilter, Plugin)' has a cyclomatic complexity of 18. 3 214–314
NPathComplexity The method 'selectListByFilter(ResponseFilter, Plugin)' has an NPath complexity of 132096 3 214–314
ExcessiveMethodLength Avoid really long methods. 3 214–314
ShortVariable Avoid variables with short names like sb 3 252
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 253
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 254
ShortVariable Avoid variables with short names like sb 3 260
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 261
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 262
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 266
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 267
ShortVariable Avoid variables with short names like s 3 426
ShortVariable Avoid variables with short names like sb 3 433
ShortVariable Avoid variables with short names like c 3 437
CollapsibleIfStatements These nested if statements could be combined 3 442–446
MissingOverride The method 'storeFileKey(int, String, String, Plugin)' is missing an @Override annotation. 3 455–466
CommentRequired Public method and constructor comments are required 3 455–466

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

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.business.file.FileHome' 4 39
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 85
ConfusingTernary Avoid if (x != y) ..; else ..; 3 109–116
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 122
CommentRequired Public method and constructor comments are required 3 129–143
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 138
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 171
NonThreadSafeSingleton Singleton is not thread safe 3 236–239

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 51–101

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 42–96

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 39–63

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 39–68

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 41–90
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/FileReplaceAnonymizationService.java

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

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 38–55

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 39–57

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 98–114

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

Rule Violation Priority Line
NPathComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 432 3 83–185
CyclomaticComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 11. 3 83–185
ExcessiveMethodLength Avoid really long methods. 3 83–185
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 191–233
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 277–284
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 173–239
ConfusingTernary Avoid if (x != y) ..; else ..; 3 189–200
ConfusingTernary Avoid if (x != y) ..; else ..; 3 193–200
ConfusingTernary Avoid if (x != y) ..; else ..; 3 268–275
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 139–151

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 53–154
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 71–74
CommentRequired Protected method constructor comments are required 3 83–133
CommentRequired Public method and constructor comments are required 3 135–153
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 143–146

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
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 73
ConfusingTernary Avoid if (x != y) ..; else ..; 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 78–190
ExcessiveMethodLength Avoid really long methods. 3 78–190
CyclomaticComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 20. 3 78–190
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 102
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 126–129
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 258–261

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 125
ConfusingTernary Avoid if (x != y) ..; else ..; 3 126
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
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 132
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 133
CyclomaticComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 12. 3 192–255
NPathComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has an NPath complexity of 288 3 192–255
ConfusingTernary Avoid if (x != y) ..; else ..; 3 197–206
ConfusingTernary Avoid if (x != y) ..; else ..; 3 207–214
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 320–323
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 344
NcssCount The method 'getGeolocationResponseList(Entry, int, String, String, String, String, String, String)' has a NCSS line count of 60. 3 400–492
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 400–401

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 58–61
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 51–127
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 64–70

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 64–67
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 73–76
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 102–105
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 160–163

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

Rule Violation Priority Line
CyclomaticComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 13. 3 66–144
NPathComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 4096 3 66–144
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
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 84
ConfusingTernary Avoid if (x != y) ..; else ..; 3 139
ShortVariable Avoid variables with short names like sb 3 294

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 68
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 69
ConfusingTernary Avoid if (x != y) ..; else ..; 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 74
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 75
ShortVariable Avoid variables with short names like id 3 131

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
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 70
ConfusingTernary Avoid if (x != y) ..; else ..; 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 16–176
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
FieldNamingConventions The field name 'FIELD_BEGIN_HOUR' doesn't match '_[a-z][a-zA-Z0-9]*' 1 22
DefaultPackage Use explicit scoping instead of the default package private level 3 22
FieldNamingConventions The field name 'FIELD_END_HOUR' doesn't match '_[a-z][a-zA-Z0-9]*' 1 23
DefaultPackage Use explicit scoping instead of the default package private level 3 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
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 34
ConfusingTernary Avoid if (x != y) ..; else ..; 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 74–148
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 150–161

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 78
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 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
ConfusingTernary Avoid if (x != y) ..; else ..; 3 133
CyclomaticComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 13. 3 145–232

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

Rule Violation Priority Line
ExcessiveMethodLength Avoid really long methods. 3 78–213
CyclomaticComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 19. 3 78–213
NPathComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 27648 3 78–213
NcssCount The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a NCSS line count of 76. 3 78–213
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 81
ConfusingTernary Avoid if (x != y) ..; else ..; 3 83
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 88
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 91
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 92
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 93
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 94
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 95
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 96
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 97
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 106
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 107
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 187
ConfusingTernary Avoid if (x != y) ..; else ..; 3 197
NPathComplexity The method 'checkErrors(Entry, Field, String, String, List, boolean, Locale)' has an NPath complexity of 576 3 286–360
CyclomaticComplexity The method 'checkErrors(Entry, Field, String, String, List, boolean, Locale)' has a cyclomatic complexity of 15. 3 286–360

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 54
CyclomaticComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 13. 3 69–184
ExcessiveMethodLength Avoid really long methods. 3 69–184
NcssCount The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a NCSS line count of 65. 3 69–184
NPathComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 1536 3 69–184
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 73
ConfusingTernary Avoid if (x != y) ..; else ..; 3 74
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 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
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 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 178

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 34–432
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 165–168
CyclomaticComplexity The method 'getResponseValueForExport(Entry, HttpServletRequest, Response, Locale)' has a cyclomatic complexity of 10. 3 180–214
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 196–205
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 369–372

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 66–69
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 75–78
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 102–105
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 120–123

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 43–75

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 297

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 49–262
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 49–262
FieldNamingConventions The constant name '_instance' doesn't match '[A-Z][A-Z_0-9]*' 1 54
AssignmentToNonFinalStatic Possible unsafe assignment to a non-final static field in a constructor. 3 55
CollapsibleIfStatements These nested if statements could be combined 3 91–94
AvoidReassigningParameters Avoid reassigning parameters such as 'strOrigin' 2 191
AvoidReassigningParameters Avoid reassigning parameters such as 'strOrigin' 2 215

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

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

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 45–48

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 56–59
CommentRequired Public method and constructor comments are required 3 61–74
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 61–74

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

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 76–125
CyclomaticComplexity The method 'checkFileSize(Entry, List, List, Locale)' has a cyclomatic complexity of 11. 3 76–125
UseUnderscoresInNumericLiterals Number 5242880 should separate every third digit with an underscore 3 91
CommentRequired Public method and constructor comments are required 3 127–161
ConfusingTernary Avoid if (x != y) ..; else ..; 3 203–211
CyclomaticComplexity The method 'checkResponseData(Entry, List, Locale)' has a cyclomatic complexity of 11. 3 236–286

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 52–210
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 179
CommentRequired Public method and constructor comments are required 3 180–193
CommentRequired Public method and constructor comments are required 3 196–209