Fork me on GitHub

Résultats PMD

Le document suivant contient les résultats de PMD 5.3.5.

Fichiers

fr/paris/lutece/plugins/mylutece/modules/notification/business/NotificationDAO.java

Violation Ligne
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 196
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 197
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 231
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 232
Avoid using Literals in Conditional Statements 340

fr/paris/lutece/plugins/mylutece/modules/notification/business/NotificationFilter.java

Violation Ligne
A getX() method which returns a boolean should be named isX() 9699

fr/paris/lutece/plugins/mylutece/modules/notification/business/folder/AbstractFolder.java

Violation Ligne
An empty method in an abstract class should be abstract instead 133135
Document empty method 134135

fr/paris/lutece/plugins/mylutece/modules/notification/business/portlet/NotificationListPortlet.java

Violation Ligne
The class 'NotificationListPortlet' has a Modified Cyclomatic Complexity of 3 (Highest = 10). 65322
The class 'NotificationListPortlet' has a Standard Cyclomatic Complexity of 3 (Highest = 10). 65322
The class 'NotificationListPortlet' has a Cyclomatic Complexity of 3 (Highest = 12). 65322
A getX() method which returns a boolean should be named isX() 126129
A getX() method which returns a boolean should be named isX() 144147
The method 'getXml' has a Standard Cyclomatic Complexity of 10. 152239
The method 'getXml' has a Cyclomatic Complexity of 12. 152239
The method 'getXml' has a Modified Cyclomatic Complexity of 10. 152239
The method getXml() has an NPath complexity of 904 152239
These nested if statements could be combined 160233
Deeply nested if..then statements are hard to read 180183
Deeply nested if..then statements are hard to read 188191
Deeply nested if..then statements are hard to read 196201

fr/paris/lutece/plugins/mylutece/modules/notification/business/portlet/NotificationListPortletDAO.java

Violation Ligne
Avoid variables with short names like p 57
Avoid variables with short names like p 112

fr/paris/lutece/plugins/mylutece/modules/notification/business/portlet/NotificationListPortletHome.java

Violation Ligne
Avoid excessively long variable names like BEAN_MYLUTECENOTIFICATION_NOTIFICATIONLISTPORTLETDAO 50
Document empty constructor 6264
It is a good practice to call super() in a constructor 6264
Avoid unnecessary constructors - the compiler will generate these for you 6264
Singleton is not thread safe 7275

fr/paris/lutece/plugins/mylutece/modules/notification/rs/NotificationRest.java

Violation Ligne
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 114
Avoid variables with short names like t 117
Rather than using a lot of String arguments, consider using a container object for those values. 134138

fr/paris/lutece/plugins/mylutece/modules/notification/service/NotificationPlugin.java

Violation Ligne
Document empty method 5253

fr/paris/lutece/plugins/mylutece/modules/notification/service/NotificationResourceIdService.java

Violation Ligne
It is a good practice to call super() in a constructor 6265
Avoid variables with short names like rt 72
Avoid variables with short names like p 78

fr/paris/lutece/plugins/mylutece/modules/notification/service/NotificationService.java

Violation Ligne
Rather than using a lot of String arguments, consider using a container object for those values. 243

fr/paris/lutece/plugins/mylutece/modules/notification/service/parameter/NotificationParameterService.java

Violation Ligne
Avoid excessively long variable names like BEAN_MYLUTECENOTIFICATION_NOTIFICATIONPARAMETERSERVICE 50

fr/paris/lutece/plugins/mylutece/modules/notification/service/portlet/NotificationListPortletService.java

Violation Ligne
Avoid excessively long variable names like BEAN_MYLUTECENOTIFICATION_NOTIFICATIONLISTPORTLETSERVICE 50

fr/paris/lutece/plugins/mylutece/modules/notification/web/NotificationAdminDashboardComponent.java

Violation Ligne
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 81

fr/paris/lutece/plugins/mylutece/modules/notification/web/NotificationApp.java

Violation Ligne
A high number of imports can indicate a high degree of coupling within an object. 34573
Possible God class (WMC=65, ATFD=117, TCC=0.32727272727272727) 34573
The class 'NotificationApp' has a Modified Cyclomatic Complexity of 5 (Highest = 12). 78573
The class 'NotificationApp' has a Standard Cyclomatic Complexity of 5 (Highest = 12). 78573
The class 'NotificationApp' has a Cyclomatic Complexity of 6 (Highest = 12). 78573
Private field '_notificationService' could be made final; it is only initialized in the declaration or constructor. 133
Private field '_folderService' could be made final; it is only initialized in the declaration or constructor. 134
Private field '_parameterService' could be made final; it is only initialized in the declaration or constructor. 135
The method 'getPage' has a Cyclomatic Complexity of 12. 140218
The method 'getPage' has a Modified Cyclomatic Complexity of 12. 140218
The method 'getPage' has a Standard Cyclomatic Complexity of 12. 140218
Deeply nested if..then statements are hard to read 192195
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 204
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 229
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 261
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 310
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 340
Prefer StringBuffer over += for concatenating strings 524

fr/paris/lutece/plugins/mylutece/modules/notification/web/portlet/NotificationListPortletJspBean.java

Violation Ligne
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 88
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 112