Le document suivant contient les résultats de PMD 5.5.1.
Violation | Ligne |
---|---|
Avoid variables with short names like o1 | 55 |
Avoid variables with short names like o2 | 55 |
Avoid variables with short names like id | 99 |
Document empty constructor | 110–112 |
Avoid variables with short names like id | 130 |
Avoid variables with short names like c | 206 |
Violation | Ligne |
---|---|
Possible God class (WMC=67, ATFD=30, TCC=0.0338680926916221) | 34–593 |
The class 'PartnerDTO' has a Cyclomatic Complexity of 2 (Highest = 14). | 63–593 |
The class 'PartnerDTO' has a Modified Cyclomatic Complexity of 2 (Highest = 14). | 63–593 |
The class 'PartnerDTO' has a Standard Cyclomatic Complexity of 2 (Highest = 14). | 63–593 |
Avoid variables with short names like id | 76 |
Avoid variables with short names like id | 98 |
Avoid variables with short names like i | 101 |
Avoid variables with short names like i | 123 |
Avoid variables with short names like id | 273 |
No need to call String.valueOf to append to a string. | 391 |
The method 'convertEntity' has a Cyclomatic Complexity of 14. | 407–486 |
The method 'convertEntity' has a Standard Cyclomatic Complexity of 14. | 407–486 |
The method 'convertEntity' has a Modified Cyclomatic Complexity of 14. | 407–486 |
Avoid variables with short names like id | 461 |
Avoid variables with short names like id | 467 |
Avoid variables with short names like id | 473 |
Avoid variables with short names like id | 479 |
Violation | Ligne |
---|---|
The class 'ProductStatisticDAO' has a Cyclomatic Complexity of 8 (Highest = 17). | 63–272 |
The class 'ProductStatisticDAO' has a Modified Cyclomatic Complexity of 6 (Highest = 13). | 63–272 |
The class 'ProductStatisticDAO' has a Standard Cyclomatic Complexity of 6 (Highest = 13). | 63–272 |
Avoid variables with short names like em | 80 |
Avoid variables with short names like cb | 81 |
Avoid variables with short names like cq | 83 |
This call to Collection.toArray() may be optimizable | 100 |
The method 'getAllResultStatisticByParameters' has a Modified Cyclomatic Complexity of 13. | 114–221 |
The method 'getAllResultStatisticByParameters' has a Cyclomatic Complexity of 17. | 114–221 |
Avoid really long methods. | 114–221 |
The method getAllResultStatisticByParameters() has an NPath complexity of 864 | 114–221 |
The method 'getAllResultStatisticByParameters' has a Standard Cyclomatic Complexity of 13. | 114–221 |
StringBuffer constructor is initialized with size 16, but has at least 351 characters appended. | 116 |
Position literals first in String comparisons | 120 |
Position literals first in String comparisons | 125 |
Position literals first in String comparisons | 160 |
Position literals first in String comparisons | 165 |
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 182 |
Position literals first in String comparisons | 197 |
Position literals first in String comparisons | 202 |
StringBuffer constructor is initialized with size 16, but has at least 237 characters appended. | 229 |
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. | 231 |
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 231 |
Avoid using Literals in Conditional Statements | 259 |
Violation | Ligne |
---|---|
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. | 47–50 |
This abstract class does not have any abstract methods | 47–50 |
Abstract classes should be named AbstractXXX | 47–50 |
Use of modifier volatile is not recommended. | 49 |
Violation | Ligne |
---|---|
The class 'PurchaseStatisticDAO' has a Cyclomatic Complexity of 8 (Highest = 17). | 59–266 |
The class 'PurchaseStatisticDAO' has a Standard Cyclomatic Complexity of 6 (Highest = 13). | 59–266 |
The class 'PurchaseStatisticDAO' has a Modified Cyclomatic Complexity of 6 (Highest = 13). | 59–266 |
Avoid variables with short names like em | 76 |
Avoid variables with short names like cb | 77 |
Avoid variables with short names like cq | 79 |
This call to Collection.toArray() may be optimizable | 94 |
The method 'getAllResultStatisticByParameters' has a Cyclomatic Complexity of 17. | 108–215 |
The method getAllResultStatisticByParameters() has an NPath complexity of 864 | 108–215 |
Avoid really long methods. | 108–215 |
The method 'getAllResultStatisticByParameters' has a Modified Cyclomatic Complexity of 13. | 108–215 |
The method 'getAllResultStatisticByParameters' has a Standard Cyclomatic Complexity of 13. | 108–215 |
StringBuffer constructor is initialized with size 16, but has at least 362 characters appended. | 110 |
Position literals first in String comparisons | 114 |
Position literals first in String comparisons | 119 |
Position literals first in String comparisons | 154 |
Position literals first in String comparisons | 159 |
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 176 |
Position literals first in String comparisons | 191 |
Position literals first in String comparisons | 196 |
StringBuffer constructor is initialized with size 16, but has at least 244 characters appended. | 223 |
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 225 |
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. | 225 |
Avoid using Literals in Conditional Statements | 253 |
Violation | Ligne |
---|---|
Abstract classes should be named AbstractXXX | 47–50 |
This abstract class does not have any abstract methods | 47–50 |
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. | 47–50 |
Use of modifier volatile is not recommended. | 49 |
Violation | Ligne |
---|---|
The class 'ReservationDAO' has a Standard Cyclomatic Complexity of 14 (Highest = 15). | 75–289 |
The class 'ReservationDAO' has a Modified Cyclomatic Complexity of 14 (Highest = 15). | 75–289 |
The class 'ReservationDAO' has a Cyclomatic Complexity of 17 (Highest = 19). | 75–289 |
The method 'buildCriteriaQuery' has a Standard Cyclomatic Complexity of 15. | 89–185 |
The method 'buildCriteriaQuery' has a Cyclomatic Complexity of 19. | 89–185 |
The method buildCriteriaQuery() has an NPath complexity of 46656 | 89–185 |
The method 'buildCriteriaQuery' has a Modified Cyclomatic Complexity of 15. | 89–185 |
This call to Collection.toArray() may be optimizable | 183 |
The method 'buildSortQuery' has a Cyclomatic Complexity of 14. | 199–288 |
The method 'buildSortQuery' has a Standard Cyclomatic Complexity of 13. | 199–288 |
The method 'buildSortQuery' has a Modified Cyclomatic Complexity of 13. | 199–288 |
Position literals first in String comparisons | 214 |
The String literal "name" appears 4 times in this file; the first occurrence is on line 216 | 216 |
Position literals first in String comparisons | 219 |
The String literal "date" appears 6 times in this file; the first occurrence is on line 219 | 219 |
The String literal "key" appears 6 times in this file; the first occurrence is on line 222 | 222 |
The String literal "value" appears 6 times in this file; the first occurrence is on line 223 | 223 |
Position literals first in String comparisons | 226 |
Position literals first in String comparisons | 237 |
Position literals first in String comparisons | 252 |
Position literals first in String comparisons | 257 |
Position literals first in String comparisons | 264 |
Position literals first in String comparisons | 275 |
Violation | Ligne |
---|---|
Avoid variables with short names like id | 73 |
These nested if statements could be combined | 229–232 |
Violation | Ligne |
---|---|
The class 'SeanceDAO' has a Modified Cyclomatic Complexity of 7 (Highest = 11). | 71–326 |
The class 'SeanceDAO' has a Cyclomatic Complexity of 8 (Highest = 13). | 71–326 |
The class 'SeanceDAO' has a Standard Cyclomatic Complexity of 7 (Highest = 11). | 71–326 |
The method buildCriteriaQuery() has an NPath complexity of 1224 | 85–155 |
The method 'buildCriteriaQuery' has a Cyclomatic Complexity of 13. | 85–155 |
The method 'buildCriteriaQuery' has a Standard Cyclomatic Complexity of 11. | 85–155 |
The method 'buildCriteriaQuery' has a Modified Cyclomatic Complexity of 11. | 85–155 |
This call to Collection.toArray() may be optimizable | 153 |
Avoid variables with short names like em | 168 |
Avoid variables with short names like cb | 169 |
Avoid variables with short names like cq | 171 |
This call to Collection.toArray() may be optimizable | 199 |
Avoid variables with short names like em | 215 |
Avoid variables with short names like cb | 216 |
Avoid variables with short names like cq | 218 |
This call to Collection.toArray() may be optimizable | 235 |
The method 'buildSortQuery' has a Modified Cyclomatic Complexity of 11. | 252–325 |
The method 'buildSortQuery' has a Cyclomatic Complexity of 12. | 252–325 |
The method 'buildSortQuery' has a Standard Cyclomatic Complexity of 11. | 252–325 |
Position literals first in String comparisons | 265 |
The String literal "name" appears 4 times in this file; the first occurrence is on line 267 | 267 |
Position literals first in String comparisons | 270 |
The String literal "date" appears 4 times in this file; the first occurrence is on line 275 | 275 |
Position literals first in String comparisons | 275 |
The String literal "key" appears 4 times in this file; the first occurrence is on line 278 | 278 |
The String literal "value" appears 4 times in this file; the first occurrence is on line 279 | 279 |
Position literals first in String comparisons | 296 |
Position literals first in String comparisons | 301 |
Position literals first in String comparisons | 306 |
Violation | Ligne |
---|---|
Possible God class (WMC=61, ATFD=19, TCC=0.03453453453453453) | 34–604 |
The class 'SeanceDTO' has a Standard Cyclomatic Complexity of 2 (Highest = 12). | 66–604 |
The class 'SeanceDTO' has a Modified Cyclomatic Complexity of 2 (Highest = 12). | 66–604 |
The class 'SeanceDTO' has a Cyclomatic Complexity of 2 (Highest = 12). | 66–604 |
Too many fields | 66–604 |
Avoid variables with short names like id | 76 |
The method convertEntity() has an NPath complexity of 645 | 307–385 |
The method 'convertEntity' has a Cyclomatic Complexity of 12. | 307–385 |
The method 'convertEntity' has a Standard Cyclomatic Complexity of 12. | 307–385 |
The method 'convertEntity' has a Modified Cyclomatic Complexity of 12. | 307–385 |
The method convert() has an NPath complexity of 1024 | 393–444 |
The method 'convert' has a Modified Cyclomatic Complexity of 11. | 393–444 |
The method 'convert' has a Cyclomatic Complexity of 12. | 393–444 |
The method 'convert' has a Standard Cyclomatic Complexity of 11. | 393–444 |
Consider using varargs for methods or constructors which take an array the last parameter. | 553 |
The user-supplied array 'idContact' is stored directly. | 553 |
Returning 'idContact' may expose an internal array. | 564 |
Violation | Ligne |
---|---|
Avoid variables with short names like id | 63 |
Avoid variables with short names like id | 89 |
Violation | Ligne |
---|---|
The class 'ShowDAO' has a Modified Cyclomatic Complexity of 4 (Highest = 10). | 75–338 |
The class 'ShowDAO' has a Cyclomatic Complexity of 5 (Highest = 14). | 75–338 |
The class 'ShowDAO' has a Standard Cyclomatic Complexity of 4 (Highest = 10). | 75–338 |
The method 'buildCriteriaQuery' has a Modified Cyclomatic Complexity of 10. | 89–153 |
The method 'buildCriteriaQuery' has a Cyclomatic Complexity of 14. | 89–153 |
The method 'buildCriteriaQuery' has a Standard Cyclomatic Complexity of 10. | 89–153 |
The method buildCriteriaQuery() has an NPath complexity of 2592 | 89–153 |
Avoid creating BigDecimal with a decimal (float/double) literal. Use a String literal | 145 |
This call to Collection.toArray() may be optimizable | 151 |
Avoid variables with short names like em | 166 |
Avoid variables with short names like cb | 167 |
Avoid variables with short names like cq | 169 |
This call to Collection.toArray() may be optimizable | 187 |
Avoid variables with short names like em | 204 |
Avoid variables with short names like cb | 205 |
Avoid variables with short names like cq | 207 |
This call to Collection.toArray() may be optimizable | 223 |
Avoid variables with short names like em | 245 |
Avoid variables with short names like cb | 246 |
Avoid variables with short names like cq | 248 |
This call to Collection.toArray() may be optimizable | 261 |
Position literals first in String comparisons | 295 |
Position literals first in String comparisons | 302 |
Position literals first in String comparisons | 309 |
Position literals first in String comparisons | 315 |
Violation | Ligne |
---|---|
This class has a bunch of public methods and attributes | 34–932 |
Possible God class (WMC=90, ATFD=32, TCC=0.024025974025974027) | 34–932 |
The class 'ShowDTO' has a Cyclomatic Complexity of 2 (Highest = 19). | 68–932 |
The class 'ShowDTO' has a Modified Cyclomatic Complexity of 2 (Highest = 19). | 68–932 |
Too many fields | 68–932 |
The class 'ShowDTO' has a Standard Cyclomatic Complexity of 2 (Highest = 19). | 68–932 |
Avoid variables with short names like id | 109 |
Avoid using redundant field initializer for 'availableInvitation' | 183 |
Avoid using redundant field initializer for 'availableChildInvitation' | 185 |
Avoid using redundant field initializer for 'availableReducedPrice' | 187 |
The method 'convertEntity' has a Standard Cyclomatic Complexity of 19. | 556–665 |
The method 'convertEntity' has a Cyclomatic Complexity of 19. | 556–665 |
The method convertEntity() has an NPath complexity of 9000 | 556–665 |
Avoid really long methods. | 556–665 |
The method 'convertEntity' has a Modified Cyclomatic Complexity of 19. | 556–665 |
The method 'convert' has a Standard Cyclomatic Complexity of 14. | 669–737 |
The method 'convert' has a Cyclomatic Complexity of 15. | 669–737 |
The method 'convert' has a Modified Cyclomatic Complexity of 14. | 669–737 |
The method convert() has an NPath complexity of 12288 | 669–737 |
Returning 'idContact' may expose an internal array. | 877 |
Consider using varargs for methods or constructors which take an array the last parameter. | 886 |
The user-supplied array 'idContact' is stored directly. | 886 |
Violation | Ligne |
---|---|
Document empty method | 90–91 |
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 303 |
Violation | Ligne |
---|---|
Avoid variables with short names like id | 148 |
Violation | Ligne |
---|---|
Avoid variables with short names like id | 77 |
Consider using varargs for methods or constructors which take an array the last parameter. | 110 |
Violation | Ligne |
---|---|
The class 'ProviderService' has a Cyclomatic Complexity of 2 (Highest = 10). | 58–182 |
It is a good practice to call super() in a constructor | 69–71 |
Document empty method | 87–88 |
The method 'doSaveProvider' has a Cyclomatic Complexity of 10. | 94–140 |
Avoid variables with short names like c | 104 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 109 |
Avoid unused local variables such as 'bool'. | 109 |
Violation | Ligne |
---|---|
It is a good practice to call super() in a constructor | 110–112 |
Document empty method | 118–119 |
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks | 168 |
New exception is thrown in catch block, original stack trace may be lost | 169 |
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks | 173 |
New exception is thrown in catch block, original stack trace may be lost | 174 |
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks | 178 |
New exception is thrown in catch block, original stack trace may be lost | 179 |
Avoid variables with short names like i | 201 |
Avoid variables with short names like id | 215 |
Violation | Ligne |
---|---|
The class 'SeanceService' has a Cyclomatic Complexity of 3 (Highest = 15). | 73–322 |
The class 'SeanceService' has a Standard Cyclomatic Complexity of 2 (Highest = 10). | 73–322 |
The class 'SeanceService' has a Modified Cyclomatic Complexity of 2 (Highest = 10). | 73–322 |
Document empty method | 106–107 |
The method doSaveOffer() has an NPath complexity of 768 | 112–172 |
The method 'doSaveOffer' has a Standard Cyclomatic Complexity of 10. | 112–172 |
The method 'doSaveOffer' has a Modified Cyclomatic Complexity of 10. | 112–172 |
The method 'doSaveOffer' has a Cyclomatic Complexity of 15. | 112–172 |
These nested if statements could be combined | 148–151 |
These nested if statements could be combined | 276–290 |
Violation | Ligne |
---|---|
Document empty method | 89–90 |
Violation | Ligne |
---|---|
The class 'ShowService' has a Cyclomatic Complexity of 2 (Highest = 11). | 71–325 |
Document empty method | 88–89 |
Avoid variables with short names like id | 112 |
The method 'doSaveProduct' has a Cyclomatic Complexity of 11. | 155–206 |
Consider using varargs for methods or constructors which take an array the last parameter. | 155 |
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 181 |
When instantiating a SimpleDateFormat object, specify a Locale | 316 |
When instantiating a SimpleDateFormat object, specify a Locale | 319 |
Avoid printStackTrace(); use a logger call instead. | 321 |
Violation | Ligne |
---|---|
A high number of imports can indicate a high degree of coupling within an object. | 34–574 |
The class 'StatisticService' has a Cyclomatic Complexity of 3 (Highest = 10). | 87–574 |
The method 'sameDate' has a Cyclomatic Complexity of 10. | 186–213 |
When instantiating a SimpleDateFormat object, specify a Locale | 226 |
When instantiating a SimpleDateFormat object, specify a Locale | 373 |
When instantiating a SimpleDateFormat object, specify a Locale | 374 |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 379 |
Avoid variables with short names like i | 434 |
When instantiating a SimpleDateFormat object, specify a Locale | 452 |
Violation | Ligne |
---|---|
Overriding method merely calls super | 50–53 |
Violation | Ligne |
---|---|
Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppPropertiesService' | 45 |
Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppPropertiesService' | 45 |
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks | 80 |
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks | 91 |
Violation | Ligne |
---|---|
Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppPropertiesService' | 45 |
Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppPropertiesService' | 45 |
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks | 80 |
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks | 91 |
Violation | Ligne |
---|---|
Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppPropertiesService' | 45 |
Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppPropertiesService' | 45 |
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks | 80 |
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks | 91 |
Violation | Ligne |
---|---|
Avoid using Literals in Conditional Statements | 73 |