Résultats PMD
Le document suivant contient les résultats de PMD 5.3.5.
Fichiers
fr/paris/lutece/plugins/jsr170/modules/solr/business/SolrRepositoryFileHome.java
Violation |
Ligne |
The class 'SolrRepositoryFileHome' has a Standard Cyclomatic Complexity of 7 (Highest = 11). |
58–149 |
The class 'SolrRepositoryFileHome' has a Cyclomatic Complexity of 8 (Highest = 13). |
58–149 |
The class 'SolrRepositoryFileHome' has a Modified Cyclomatic Complexity of 7 (Highest = 11). |
58–149 |
Private field '_solrJcrIndexer' could be made final; it is only initialized in the declaration or constructor. |
61 |
The method 'doRecursive' has a Cyclomatic Complexity of 13. |
90–148 |
The method 'doRecursive' has a Modified Cyclomatic Complexity of 11. |
90–148 |
The method 'doRecursive' has a Standard Cyclomatic Complexity of 11. |
90–148 |
Avoid printStackTrace(); use a logger call instead. |
108 |
Avoid printStackTrace(); use a logger call instead. |
112 |
Avoid printStackTrace(); use a logger call instead. |
135 |
Avoid printStackTrace(); use a logger call instead. |
139 |
fr/paris/lutece/plugins/jsr170/modules/solr/indexer/SolrJcrIndexer.java
Violation |
Ligne |
A high number of imports can indicate a high degree of coupling within an object. |
34–434 |
The class 'SolrJcrIndexer' has a Modified Cyclomatic Complexity of 3 (Highest = 14). |
81–434 |
The class 'SolrJcrIndexer' has a Cyclomatic Complexity of 4 (Highest = 14). |
81–434 |
The class 'SolrJcrIndexer' has a Standard Cyclomatic Complexity of 3 (Highest = 14). |
81–434 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
94 |
The method 'initMapBuilder' has a Standard Cyclomatic Complexity of 14. |
108–212 |
Avoid really long methods. |
108–212 |
The method 'initMapBuilder' has a Cyclomatic Complexity of 14. |
108–212 |
The method 'initMapBuilder' has a Modified Cyclomatic Complexity of 14. |
108–212 |
Avoid throwing raw exception types. |
136 |
The method 'indexDocuments' has a Cyclomatic Complexity of 11. |
241–308 |
Avoid variables with short names like o1 |
249 |
Avoid variables with short names like o2 |
249 |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block |
299 |
Avoid variables with short names like sb |
412 |
Avoid modifiers which are implied by the context |
431–432 |