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/elasticdatasearch/modules/unittree/business/AbstractFilterDao.java

Rule Violation Line
FieldNamingConventions The constant name '_listPrefixToRemove' doesn't match '[A-Z][A-Z_0-9]*' 70
FieldNamingConventions The constant name '_listTypeAllowedForSearch' doesn't match '[A-Z][A-Z_0-9]*' 71
FormalParameterNamingConventions The method parameter name 'SQL_QUERY_SELECTALL_ID' doesn't match '[a-z][a-zA-Z0-9]*' 84
LocalVariableNamingConventions The local variable name 'WhereClauses' doesn't match '[a-z][a-zA-Z0-9]*' 104

fr/paris/lutece/plugins/elasticdatasearch/modules/unittree/business/FormDataSourceUnitTree.java

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

fr/paris/lutece/plugins/elasticdatasearch/modules/unittree/business/IAssignUnitTreeDAO.java

Rule Violation Line
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 118

Priority 3

fr/paris/lutece/plugins/elasticdatasearch/modules/unittree/business/AbstractFilterDao.java

Rule Violation Line
CommentRequired Header comments are required 45251
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 45251
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 48
UnusedPrivateField Avoid unused private fields such as 'SQL_ASC'. 60
UnusedPrivateField Avoid unused private fields such as 'SQL_DESC'. 61
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 88
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 89
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 116121
CollapsibleIfStatements These nested if statements could be combined 116121
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 144
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 145

fr/paris/lutece/plugins/elasticdatasearch/modules/unittree/business/AssignUnitTreeDAO.java

Rule Violation Line
CallSuperInConstructor It is a good practice to call super() in a constructor 7073
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 233236

fr/paris/lutece/plugins/elasticdatasearch/modules/unittree/business/FormDataSourceUnitTree.java

Rule Violation Line
CommentRequired Header comments are required 830
SingularField Perhaps '_delegate' could be replaced by a local variable. 10
UnusedPrivateField Avoid unused private fields such as '_delegate'. 10
CallSuperInConstructor It is a good practice to call super() in a constructor 1215
CommentRequired Public method and constructor comments are required 1215

fr/paris/lutece/plugins/elasticdatasearch/modules/unittree/web/AbstractJspBean.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 51177
CommentRequired Header comments are required 51177
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 117
DefaultPackage Use explicit scoping instead of the default package private level 117
DefaultPackage Use explicit scoping instead of the default package private level 119
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getPluginDefaultNumberOfItemPerPage method if you want a default access modifier 119
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 126
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 138
CompareObjectsWithEquals Use equals() to compare object references. 172

fr/paris/lutece/plugins/elasticdatasearch/modules/unittree/web/DataSourceUnitTreeAttributesProvider.java

Rule Violation Line
CommentRequired Header comments are required 1254
SimplifyConditional No need to check for null before an instanceof 17
SimplifyConditional No need to check for null before an instanceof 29

fr/paris/lutece/plugins/elasticdatasearch/modules/unittree/web/UnitTreeElasticService.java

Rule Violation Line
CommentRequired Header comments are required 1333
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _unitUserService field if you want a default access modifier 16
DefaultPackage Use explicit scoping instead of the default package private level 16
DefaultPackage Use explicit scoping instead of the default package private level 17
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _unitService field if you want a default access modifier 17
CommentRequired Public method and constructor comments are required 1932

Priority 4

fr/paris/lutece/plugins/elasticdatasearch/modules/unittree/business/AbstractFilterDao.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'java.util.ArrayList' 37

fr/paris/lutece/plugins/elasticdatasearch/modules/unittree/business/AssignUnitTree.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'javax.validation.constraints.NotEmpty' 37

fr/paris/lutece/plugins/elasticdatasearch/modules/unittree/web/AbstractJspBean.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppPropertiesService' 37

fr/paris/lutece/plugins/elasticdatasearch/modules/unittree/web/UnitTreeElasticService.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'java.util.ArrayList' 3

Files

fr/paris/lutece/plugins/elasticdatasearch/modules/unittree/business/AbstractFilterDao.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'java.util.ArrayList' 4 37
CommentRequired Header comments are required 3 45251
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 3 45251
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 3 48
UnusedPrivateField Avoid unused private fields such as 'SQL_ASC'. 3 60
UnusedPrivateField Avoid unused private fields such as 'SQL_DESC'. 3 61
FieldNamingConventions The constant name '_listPrefixToRemove' doesn't match '[A-Z][A-Z_0-9]*' 1 70
FieldNamingConventions The constant name '_listTypeAllowedForSearch' doesn't match '[A-Z][A-Z_0-9]*' 1 71
FormalParameterNamingConventions The method parameter name 'SQL_QUERY_SELECTALL_ID' doesn't match '[a-z][a-zA-Z0-9]*' 1 84
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 88
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 89
LocalVariableNamingConventions The local variable name 'WhereClauses' doesn't match '[a-z][a-zA-Z0-9]*' 1 104
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 116121
CollapsibleIfStatements These nested if statements could be combined 3 116121
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 144
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 145

fr/paris/lutece/plugins/elasticdatasearch/modules/unittree/business/AssignUnitTree.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'javax.validation.constraints.NotEmpty' 4 37

fr/paris/lutece/plugins/elasticdatasearch/modules/unittree/business/AssignUnitTreeDAO.java

Rule Violation Priority Line
CallSuperInConstructor It is a good practice to call super() in a constructor 3 7073
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 233236

fr/paris/lutece/plugins/elasticdatasearch/modules/unittree/business/FormDataSourceUnitTree.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 830
FieldNamingConventions The final field name '_delegate' doesn't match '[a-z][a-zA-Z0-9]*' 1 10
SingularField Perhaps '_delegate' could be replaced by a local variable. 3 10
UnusedPrivateField Avoid unused private fields such as '_delegate'. 3 10
CallSuperInConstructor It is a good practice to call super() in a constructor 3 1215
CommentRequired Public method and constructor comments are required 3 1215

fr/paris/lutece/plugins/elasticdatasearch/modules/unittree/business/IAssignUnitTreeDAO.java

Rule Violation Priority Line
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 1 118

fr/paris/lutece/plugins/elasticdatasearch/modules/unittree/web/AbstractJspBean.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppPropertiesService' 4 37
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 51177
CommentRequired Header comments are required 3 51177
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 3 117
DefaultPackage Use explicit scoping instead of the default package private level 3 117
DefaultPackage Use explicit scoping instead of the default package private level 3 119
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getPluginDefaultNumberOfItemPerPage method if you want a default access modifier 3 119
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 126
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 138
CompareObjectsWithEquals Use equals() to compare object references. 3 172

fr/paris/lutece/plugins/elasticdatasearch/modules/unittree/web/DataSourceUnitTreeAttributesProvider.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 1254
SimplifyConditional No need to check for null before an instanceof 3 17
SimplifyConditional No need to check for null before an instanceof 3 29

fr/paris/lutece/plugins/elasticdatasearch/modules/unittree/web/UnitTreeElasticService.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'java.util.ArrayList' 4 3
CommentRequired Header comments are required 3 1333
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _unitUserService field if you want a default access modifier 3 16
DefaultPackage Use explicit scoping instead of the default package private level 3 16
DefaultPackage Use explicit scoping instead of the default package private level 3 17
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _unitService field if you want a default access modifier 3 17
CommentRequired Public method and constructor comments are required 3 1932