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/gruindexing/business/elasticsearch/ElasticSearchCustomerDAO.java

Rule Violation Ligne
FieldNamingConventions The final field name '_elastic' doesn't match '[a-z][a-zA-Z0-9]*' 83
FieldNamingConventions The final field name '_esTemplateCustomerIndexing' doesn't match '[a-z][a-zA-Z0-9]*' 84
FieldNamingConventions The final field name '_esMapping' doesn't match '[a-z][a-zA-Z0-9]*' 85

fr/paris/lutece/plugins/gruindexing/service/CustomerIndexingService.java

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

fr/paris/lutece/plugins/gruindexing/web/elasticsearch/template/AutocompletePlaceholderFilterChain.java

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

fr/paris/lutece/plugins/gruindexing/web/elasticsearch/template/AutocompletePlaceholderFilterChainFactory.java

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

fr/paris/lutece/plugins/gruindexing/web/rs/elasticsearch/ElasticSearchAutoCompleteRestService.java

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

Priority 3

fr/paris/lutece/plugins/gruindexing/business/elasticsearch/ElasticSearchCustomerDAO.java

Rule Violation Ligne
TooManyMethods This class has too many methods, consider refactoring it. 66421
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 143
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 143
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 166
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 166
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 227
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 227
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 270
ConfusingTernary Avoid if (x != y) ..; else ..; 325

fr/paris/lutece/plugins/gruindexing/business/lucene/LuceneCustomerDAO.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34581
TooManyMethods This class has too many methods, consider refactoring it. 96581
AvoidDuplicateLiterals The String literal "Error indexing customer : " appears 4 times in this file; the first occurrence is on line 181 181
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 295
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 313318
IdenticalCatchBranches 'catch' branch identical to 'IOException' branch 326329
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 414
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 426431

fr/paris/lutece/plugins/gruindexing/util/ElasticSearchParameterUtil.java

Rule Violation Ligne
LinguisticNaming Linguistics Antipattern - The setter 'setJsonToJsonTree' should not return any type except void linguistically 7893

fr/paris/lutece/plugins/gruindexing/web/elasticsearch/template/AutocompletePlaceholderFilterChainFactory.java

Rule Violation Ligne
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 92

fr/paris/lutece/plugins/gruindexing/web/rs/elasticsearch/ElasticSearchAutoCompleteRestService.java

Rule Violation Ligne
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 111
IdenticalCatchBranches 'catch' branch identical to 'IOException' branch 134137

Fichiers

fr/paris/lutece/plugins/gruindexing/business/elasticsearch/ElasticSearchCustomerDAO.java

Rule Violation Priority Ligne
TooManyMethods This class has too many methods, consider refactoring it. 3 66421
FieldNamingConventions The final field name '_elastic' doesn't match '[a-z][a-zA-Z0-9]*' 1 83
FieldNamingConventions The final field name '_esTemplateCustomerIndexing' doesn't match '[a-z][a-zA-Z0-9]*' 1 84
FieldNamingConventions The final field name '_esMapping' doesn't match '[a-z][a-zA-Z0-9]*' 1 85
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 143
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 143
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 166
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 166
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 227
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 227
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 270
ConfusingTernary Avoid if (x != y) ..; else ..; 3 325

fr/paris/lutece/plugins/gruindexing/business/lucene/LuceneCustomerDAO.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34581
TooManyMethods This class has too many methods, consider refactoring it. 3 96581
AvoidDuplicateLiterals The String literal "Error indexing customer : " appears 4 times in this file; the first occurrence is on line 181 3 181
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 295
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 313318
IdenticalCatchBranches 'catch' branch identical to 'IOException' branch 3 326329
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 414
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 426431

fr/paris/lutece/plugins/gruindexing/service/CustomerIndexingService.java

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

fr/paris/lutece/plugins/gruindexing/util/ElasticSearchParameterUtil.java

Rule Violation Priority Ligne
LinguisticNaming Linguistics Antipattern - The setter 'setJsonToJsonTree' should not return any type except void linguistically 3 7893

fr/paris/lutece/plugins/gruindexing/web/elasticsearch/template/AutocompletePlaceholderFilterChain.java

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

fr/paris/lutece/plugins/gruindexing/web/elasticsearch/template/AutocompletePlaceholderFilterChainFactory.java

Rule Violation Priority Ligne
FieldNamingConventions The final field name '_listAutocompletePlaceholderFilter' doesn't match '[a-z][a-zA-Z0-9]*' 1 49
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 92

fr/paris/lutece/plugins/gruindexing/web/rs/elasticsearch/ElasticSearchAutoCompleteRestService.java

Rule Violation Priority Ligne
FieldNamingConventions The final field name '_esTemplateAutocomplete' doesn't match '[a-z][a-zA-Z0-9]*' 1 83
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 111
IdenticalCatchBranches 'catch' branch identical to 'IOException' branch 3 134137