Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.13.0.

Violations By Priority

Priority 1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Priority 3

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

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

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

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

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

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

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

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

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

Rule Violation Line
NonThreadSafeSingleton Singleton is not thread safe 6770

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

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

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

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

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

Rule Violation Line
ImmutableField Private field '_strFileName' could be made final; it is only initialized in the declaration or constructor. 54
ArrayIsStoredDirectly The user-supplied array 'bValue' is stored directly. 67
ArrayIsStoredDirectly The user-supplied array 'bValue' is stored directly. 83
ArrayIsStoredDirectly The user-supplied array 'bValue' is stored directly. 102
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 116
MethodReturnsInternalArray Returning '_bValue' may expose an internal array. 125

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

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

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

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

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

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

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

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

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

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 84123
ConfusingTernary Avoid if (x != y) ..; else ..; 94101
ConfusingTernary Avoid if (x != y) ..; else ..; 103110
ConfusingTernary Avoid if (x != y) ..; else ..; 174181
ConfusingTernary Avoid if (x != y) ..; else ..; 183190
NPathComplexity The method 'selectListByFilter(ResponseFilter, Plugin)' has an NPath complexity of 16640 204286
CyclomaticComplexity The method 'selectListByFilter(ResponseFilter, Plugin)' has a cyclomatic complexity of 15. 204286
ShortVariable Avoid variables with short names like sb 237
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 238
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 239
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 243
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 244
ShortVariable Avoid variables with short names like s 397
ShortVariable Avoid variables with short names like sb 404
ShortVariable Avoid variables with short names like c 408
CollapsibleIfStatements These nested if statements could be combined 413417

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

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

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

Rule Violation Line
CommentRequired Header comments are required 51101

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

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

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

Rule Violation Line
CommentRequired Header comments are required 4296

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

Rule Violation Line
CommentRequired Header comments are required 3963

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

Rule Violation Line
CommentRequired Header comments are required 3968

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

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

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

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

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

Rule Violation Line
CommentRequired Header comments are required 3855

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

Rule Violation Line
CommentRequired Header comments are required 3957

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

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

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

Rule Violation Line
NPathComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 432 83185
ExcessiveMethodLength Avoid really long methods. 83185
CyclomaticComplexity The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 11. 83185
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 86
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 88
ConfusingTernary Avoid if (x != y) ..; else ..; 88
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 89
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 90
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 91
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 93
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 94
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 95
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 96
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 97
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 99
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 101
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 102
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 103
CyclomaticComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 10. 191233
ShortVariable Avoid variables with short names like dt 253
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 253
ShortVariable Avoid variables with short names like c 258
ConfusingTernary Avoid if (x != y) ..; else ..; 277284
ConfusingTernary Avoid if (x != y) ..; else ..; 385
UseUnderscoresInNumericLiterals Number 5242880 should separate every third digit with an underscore 391
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 397

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

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

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

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 70
ConfusingTernary Avoid if (x != y) ..; else ..; 72
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. 80
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 139151

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

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

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

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 68
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
CommentRequired Protected method constructor comments are required 131134

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

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

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

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

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. 166
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 167
ConfusingTernary Avoid if (x != y) ..; else ..; 167
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 168
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 169
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 170
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
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 173

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

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

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. 67
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 70

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

Rule Violation Line
CommentRequired Header comments are required 51123

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

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

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

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

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

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 67
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 68
ConfusingTernary Avoid if (x != y) ..; else ..; 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
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 67
ConfusingTernary Avoid if (x != y) ..; else ..; 67
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 68
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 69
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 70
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 71
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 72

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

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

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

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

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

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

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

Rule Violation Line
CommentRequired Header comments are required 15148
DefaultPackage Use explicit scoping instead of the default package private level 21
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the FIELD_BEGIN_HOUR field if you want a default access modifier 21
DefaultPackage Use explicit scoping instead of the default package private level 22
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the FIELD_END_HOUR field if you want a default access modifier 22
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 32
ConfusingTernary Avoid if (x != y) ..; else ..; 33
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
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
CommentRequired Protected method constructor comments are required 122133

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

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

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

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

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

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

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

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

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

Rule Violation Line
CommentRequired Protected method constructor comments are required 160180

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' 288

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

Rule Violation Line
CommentRequired Header comments are required 4088
ImmutableField Private field '_fileStoreServiceProvider' could be made final; it is only initialized in the declaration or constructor. 43
CommentRequired Public method and constructor comments are required 4952

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

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

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

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

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

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

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

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

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

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

Priority 4

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

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

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

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

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

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

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

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

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

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

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

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

Files

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Rule Violation Priority Line
ImmutableField Private field '_strFileName' could be made final; it is only initialized in the declaration or constructor. 3 54
ArrayIsStoredDirectly The user-supplied array 'bValue' is stored directly. 3 67
ArrayIsStoredDirectly The user-supplied array 'bValue' is stored directly. 3 83
ArrayIsStoredDirectly The user-supplied array 'bValue' is stored directly. 3 102
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 116
MethodReturnsInternalArray Returning '_bValue' may expose an internal array. 3 125

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Rule Violation Priority Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 84123
ConfusingTernary Avoid if (x != y) ..; else ..; 3 94101
ConfusingTernary Avoid if (x != y) ..; else ..; 3 103110
ConfusingTernary Avoid if (x != y) ..; else ..; 3 174181
ConfusingTernary Avoid if (x != y) ..; else ..; 3 183190
NPathComplexity The method 'selectListByFilter(ResponseFilter, Plugin)' has an NPath complexity of 16640 3 204286
CyclomaticComplexity The method 'selectListByFilter(ResponseFilter, Plugin)' has a cyclomatic complexity of 15. 3 204286
ShortVariable Avoid variables with short names like sb 3 237
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 238
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 239
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 243
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 244
ShortVariable Avoid variables with short names like s 3 397
ShortVariable Avoid variables with short names like sb 3 404
ShortVariable Avoid variables with short names like c 3 408
CollapsibleIfStatements These nested if statements could be combined 3 413417

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

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

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 51101

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

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

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 4296

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 3963

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 3968

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

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

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

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

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

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.business.file.FileHome' 4 47
ConfusingTernary Avoid if (x != y) ..; else ..; 3 6991

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 3855

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 3957

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

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

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

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

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

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

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

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 70
ConfusingTernary Avoid if (x != y) ..; else ..; 3 72
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 80
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 139151

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

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

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

Rule Violation Priority Line
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 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
CommentRequired Protected method constructor comments are required 3 131134

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

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

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

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.business.file.FileHome' 4 45
ExcessiveMethodLength Avoid really long methods. 3 74176
CyclomaticComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 19. 3 74176
NPathComplexity The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has an NPath complexity of 7410 3 74176
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 93
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 202205

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 166
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 167
ConfusingTernary Avoid if (x != y) ..; else ..; 3 167
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 168
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 169
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 170
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
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 173

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

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

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 5659
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 70

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 51123

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

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

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

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

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

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

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

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 67
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 68
ConfusingTernary Avoid if (x != y) ..; else ..; 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
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 67
ConfusingTernary Avoid if (x != y) ..; else ..; 3 67
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 68
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 69
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 70
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 71
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 72

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

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

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

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

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

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

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 15148
FieldNamingConventions The field name 'FIELD_BEGIN_HOUR' doesn't match '_[a-z][a-zA-Z0-9]*' 1 21
DefaultPackage Use explicit scoping instead of the default package private level 3 21
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the FIELD_BEGIN_HOUR field if you want a default access modifier 3 21
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 22
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the FIELD_END_HOUR field if you want a default access modifier 3 22
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 32
ConfusingTernary Avoid if (x != y) ..; else ..; 3 33
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
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
CommentRequired Protected method constructor comments are required 3 122133

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

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

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

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

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

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

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

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

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

Rule Violation Priority Line
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 6669
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 7578
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 102105
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 120123
CommentRequired Protected method constructor comments are required 3 160180

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

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

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

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

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 4088
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 4088
FieldNamingConventions The constant name '_instance' doesn't match '[A-Z][A-Z_0-9]*' 1 42
ImmutableField Private field '_fileStoreServiceProvider' could be made final; it is only initialized in the declaration or constructor. 3 43
CommentRequired Public method and constructor comments are required 3 4952

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

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

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

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

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

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

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

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

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

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