Fork me on GitHub

Résultats PMD

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

Violations By Priority

Priority 1

fr/paris/lutece/plugins/referencelist/service/ReferenceItemListenerService.java

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

fr/paris/lutece/plugins/referencelist/service/ReferenceItemPrepareImport.java

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

Priority 3

fr/paris/lutece/plugins/referencelist/business/CompareResult.java

Rule Violation Ligne
DataClass The class 'CompareResult' is suspected to be a Data Class (WOC=14.286%, NOPA=0, NOAM=5, WMC=10) 44120
ImmutableField Private field '_updateListCandidateReferenceItems' could be made final; it is only initialized in the declaration or constructor. 53
ImmutableField Private field '_duplicateListCandidateReferenceItems' could be made final; it is only initialized in the declaration or constructor. 54
ImmutableField Private field '_insertListCandidateReferenceItems' could be made final; it is only initialized in the declaration or constructor. 55
CommentRequired Public method and constructor comments are required 97119
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 106
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 111
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 115

fr/paris/lutece/plugins/referencelist/business/IReferenceItemDAO.java

Rule Violation Ligne
TooManyMethods This class has too many methods, consider refactoring it. 44157

fr/paris/lutece/plugins/referencelist/business/ReferenceItemDAO.java

Rule Violation Ligne
TooManyMethods This class has too many methods, consider refactoring it. 50325

fr/paris/lutece/plugins/referencelist/business/ReferenceItemHome.java

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

fr/paris/lutece/plugins/referencelist/service/ReferenceIdService.java

Rule Violation Ligne
CommentRequired Header comments are required 4796
ShortVariable Avoid variables with short names like rt 58
ShortVariable Avoid variables with short names like p 64

fr/paris/lutece/plugins/referencelist/service/ReferenceItemListService.java

Rule Violation Ligne
NonThreadSafeSingleton Singleton is not thread safe 6265

fr/paris/lutece/plugins/referencelist/service/ReferenceItemListenerService.java

Rule Violation Ligne
CommentRequired Public method and constructor comments are required 5255
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 64
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 80
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 96

fr/paris/lutece/plugins/referencelist/service/ReferenceItemPrepareImport.java

Rule Violation Ligne
CommentRequired Header comments are required 49230
LinguisticNaming Linguistics Antipattern - The method 'isErrorInCSVFile' indicates linguistically it returns a boolean, but it returns 'String' 105156
ShortVariable Avoid variables with short names like i 112
CommentRequired Public method and constructor comments are required 195210

fr/paris/lutece/plugins/referencelist/service/ReferenceListService.java

Rule Violation Ligne
NonThreadSafeSingleton Singleton is not thread safe 6568

fr/paris/lutece/plugins/referencelist/web/ReferenceItemJspBean.java

Rule Violation Ligne
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 135
ConfusingTernary Avoid if (x != y) ..; else ..; 157
ConfusingTernary Avoid if (x != y) ..; else ..; 269281
ConfusingTernary Avoid if (x != y) ..; else ..; 296

fr/paris/lutece/plugins/referencelist/web/ReferenceJspBean.java

Rule Violation Ligne
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 101
ConfusingTernary Avoid if (x != y) ..; else ..; 117

fr/paris/lutece/plugins/referencelist/web/TranslationItemJspBean.java

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

Priority 4

fr/paris/lutece/plugins/referencelist/business/ReferenceItemDAO.java

Rule Violation Ligne
UnusedImports Avoid unused imports such as 'java.util.HashMap' 42
UnusedImports Avoid unused imports such as 'java.util.Map' 44

Fichiers

fr/paris/lutece/plugins/referencelist/business/CompareResult.java

Rule Violation Priority Ligne
DataClass The class 'CompareResult' is suspected to be a Data Class (WOC=14.286%, NOPA=0, NOAM=5, WMC=10) 3 44120
ImmutableField Private field '_updateListCandidateReferenceItems' could be made final; it is only initialized in the declaration or constructor. 3 53
ImmutableField Private field '_duplicateListCandidateReferenceItems' could be made final; it is only initialized in the declaration or constructor. 3 54
ImmutableField Private field '_insertListCandidateReferenceItems' could be made final; it is only initialized in the declaration or constructor. 3 55
CommentRequired Public method and constructor comments are required 3 97119
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 106
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 111
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 115

fr/paris/lutece/plugins/referencelist/business/IReferenceItemDAO.java

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

fr/paris/lutece/plugins/referencelist/business/ReferenceItemDAO.java

Rule Violation Priority Ligne
UnusedImports Avoid unused imports such as 'java.util.HashMap' 4 42
UnusedImports Avoid unused imports such as 'java.util.Map' 4 44
TooManyMethods This class has too many methods, consider refactoring it. 3 50325

fr/paris/lutece/plugins/referencelist/business/ReferenceItemHome.java

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

fr/paris/lutece/plugins/referencelist/service/ReferenceIdService.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 4796
ShortVariable Avoid variables with short names like rt 3 58
ShortVariable Avoid variables with short names like p 3 64

fr/paris/lutece/plugins/referencelist/service/ReferenceItemListService.java

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

fr/paris/lutece/plugins/referencelist/service/ReferenceItemListenerService.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 44104
CommentRequired Public method and constructor comments are required 3 5255
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 3 64
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 3 80
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 3 96

fr/paris/lutece/plugins/referencelist/service/ReferenceItemPrepareImport.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 49230
CommentRequired Header comments are required 3 49230
LinguisticNaming Linguistics Antipattern - The method 'isErrorInCSVFile' indicates linguistically it returns a boolean, but it returns 'String' 3 105156
ShortVariable Avoid variables with short names like i 3 112
CommentRequired Public method and constructor comments are required 3 195210

fr/paris/lutece/plugins/referencelist/service/ReferenceListService.java

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

fr/paris/lutece/plugins/referencelist/web/ReferenceItemJspBean.java

Rule Violation Priority Ligne
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 135
ConfusingTernary Avoid if (x != y) ..; else ..; 3 157
ConfusingTernary Avoid if (x != y) ..; else ..; 3 269281
ConfusingTernary Avoid if (x != y) ..; else ..; 3 296

fr/paris/lutece/plugins/referencelist/web/ReferenceJspBean.java

Rule Violation Priority Ligne
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 101
ConfusingTernary Avoid if (x != y) ..; else ..; 3 117

fr/paris/lutece/plugins/referencelist/web/TranslationItemJspBean.java

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