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/identitystore/modules/indexer/service/daemon/IdentityIndexerDaemon.java

Rule Violation Ligne
FieldNamingConventions The final field name '_indexService' doesn't match '[a-z][a-zA-Z0-9]*' 67

fr/paris/lutece/plugins/identitystore/modules/indexer/web/rs/IdentityIndexerRestService.java

Rule Violation Ligne
FieldNamingConventions The final field name '_identityIndexerService' doesn't match '[a-z][a-zA-Z0-9]*' 61

Priority 3

fr/paris/lutece/plugins/identitystore/modules/indexer/business/IndexerActionDAO.java

Rule Violation Ligne
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 89102
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 108142
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 119122
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 162
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 164
AssignmentInOperand Avoid assignments in operands 243
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 243
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 268284
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 270
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 290298

fr/paris/lutece/plugins/identitystore/modules/indexer/business/IndexerActionHome.java

Rule Violation Ligne
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 6568
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 7679
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 8790
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 98101

fr/paris/lutece/plugins/identitystore/modules/indexer/business/IndexerTask.java

Rule Violation Ligne
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 48
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 48

fr/paris/lutece/plugins/identitystore/modules/indexer/service/IdentityIndexerService.java

Rule Violation Ligne
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 106
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 149
CyclomaticComplexity The method 'buildCustomer(Identity)' has a cyclomatic complexity of 13. 181250
NPathComplexity The method 'buildCustomer(Identity)' has an NPath complexity of 514 181250

fr/paris/lutece/plugins/identitystore/modules/indexer/service/daemon/IdentityIndexerDaemon.java

Rule Violation Ligne
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 102
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 103
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 116
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 117
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 130
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 131
CyclomaticComplexity The method 'indexIdentities(IndexerTask)' has a cyclomatic complexity of 10. 142229
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 149
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 159
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 194

Fichiers

fr/paris/lutece/plugins/identitystore/modules/indexer/business/IndexerActionDAO.java

Rule Violation Priority Ligne
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 89102
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 108142
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 119122
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 162
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 164
AssignmentInOperand Avoid assignments in operands 3 243
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 243
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 268284
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 270
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 290298

fr/paris/lutece/plugins/identitystore/modules/indexer/business/IndexerActionHome.java

Rule Violation Priority Ligne
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 6568
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 7679
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 8790
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 98101

fr/paris/lutece/plugins/identitystore/modules/indexer/business/IndexerTask.java

Rule Violation Priority Ligne
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 48
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 48

fr/paris/lutece/plugins/identitystore/modules/indexer/service/IdentityIndexerService.java

Rule Violation Priority Ligne
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 106
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 149
CyclomaticComplexity The method 'buildCustomer(Identity)' has a cyclomatic complexity of 13. 3 181250
NPathComplexity The method 'buildCustomer(Identity)' has an NPath complexity of 514 3 181250

fr/paris/lutece/plugins/identitystore/modules/indexer/service/daemon/IdentityIndexerDaemon.java

Rule Violation Priority Ligne
FieldNamingConventions The final field name '_indexService' doesn't match '[a-z][a-zA-Z0-9]*' 1 67
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 102
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 103
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 116
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 117
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 130
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 131
CyclomaticComplexity The method 'indexIdentities(IndexerTask)' has a cyclomatic complexity of 10. 3 142229
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 149
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 159
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 194

fr/paris/lutece/plugins/identitystore/modules/indexer/web/rs/IdentityIndexerRestService.java

Rule Violation Priority Ligne
FieldNamingConventions The final field name '_identityIndexerService' doesn't match '[a-z][a-zA-Z0-9]*' 1 61