Résultats PMD
Le document suivant contient les résultats de PMD 6.13.0.
Violations By Priority
Priority 1
fr/paris/lutece/plugins/appointment/modules/resource/business/AppointmentFormResourceTypeHome.java
Priority 2
fr/paris/lutece/plugins/appointment/modules/resource/service/AppointmentResourceService.java
Priority 3
fr/paris/lutece/plugins/appointment/modules/resource/business/AppointmentFormResourceTypeDAO.java
fr/paris/lutece/plugins/appointment/modules/resource/business/AppointmentResourceDAO.java
fr/paris/lutece/plugins/appointment/modules/resource/business/AppointmentResourceDTO.java
Rule |
Violation |
Ligne |
DataClass |
The class 'AppointmentResourceDTO' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=5) |
41–101 |
CallSuperInConstructor |
It is a good practice to call super() in a constructor |
53–58 |
fr/paris/lutece/plugins/appointment/modules/resource/business/calendar/CalendarAppointmentResourceDTO.java
fr/paris/lutece/plugins/appointment/modules/resource/business/calendar/CalendarDayDTO.java
fr/paris/lutece/plugins/appointment/modules/resource/business/workflow/SetAppointmentResourceHistoryDAO.java
fr/paris/lutece/plugins/appointment/modules/resource/business/workflow/TaskSetAppointmentResourceConfigDAO.java
fr/paris/lutece/plugins/appointment/modules/resource/service/AppointmentResourceAddonService.java
Rule |
Violation |
Ligne |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
69 |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
85 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
85 |
fr/paris/lutece/plugins/appointment/modules/resource/service/AppointmentResourceService.java
fr/paris/lutece/plugins/appointment/modules/resource/service/workflow/TaskSetAppointmentResource.java
fr/paris/lutece/plugins/appointment/modules/resource/web/AppointmentFormResourcesJspBean.java
fr/paris/lutece/plugins/appointment/modules/resource/web/AppointmentResourceJspBean.java
Rule |
Violation |
Ligne |
ExcessiveImports |
A high number of imports can indicate a high degree of coupling within an object. |
34–495 |
NcssCount |
The method 'getResourceCalendar(HttpServletRequest, IResource, int, Locale)' has a NCSS line count of 82. |
261–398 |
CyclomaticComplexity |
The method 'getResourceCalendar(HttpServletRequest, IResource, int, Locale)' has a cyclomatic complexity of 13. |
261–398 |
ExcessiveMethodLength |
Avoid really long methods. |
261–398 |
NPathComplexity |
The method 'getResourceCalendar(HttpServletRequest, IResource, int, Locale)' has an NPath complexity of 676 |
261–398 |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
264 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
264 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
279 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
281 |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
281 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
336 |
EmptyStatementNotInLoop |
An empty statement (semicolon) not part of a loop |
355 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
411 |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
411 |
SimplifyStartsWith |
This call to String.startsWith can be rewritten using String.charAt(0) |
477 |
fr/paris/lutece/plugins/appointment/modules/resource/web/AppointmentUserCalendarDashboardComponent.java
Rule |
Violation |
Ligne |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
74 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
74 |
fr/paris/lutece/plugins/appointment/modules/resource/web/workflow/SetAppointmentResourceTaskComponent.java
Priority 4
fr/paris/lutece/plugins/appointment/modules/resource/business/AppointmentFormResourceType.java
fr/paris/lutece/plugins/appointment/modules/resource/business/workflow/TaskSetAppointmentResourceConfig.java
fr/paris/lutece/plugins/appointment/modules/resource/service/AppointmentResourceService.java
Rule |
Violation |
Ligne |
UnusedImports |
Avoid unused imports such as 'fr.paris.lutece.plugins.appointment.business.appointment.Appointment' |
36 |
UnusedImports |
Avoid unused imports such as 'fr.paris.lutece.plugins.appointment.business.slot.Slot' |
37 |
UnusedImports |
Avoid unused imports such as 'fr.paris.lutece.plugins.appointment.service.SlotService' |
40 |
fr/paris/lutece/plugins/appointment/modules/resource/web/AppointmentResourceJspBean.java
Rule |
Violation |
Ligne |
UnusedImports |
Avoid unused imports such as 'fr.paris.lutece.plugins.appointment.business.slot.Slot' |
52 |
UnusedImports |
Avoid unused imports such as 'fr.paris.lutece.plugins.appointment.service.SlotService' |
58 |
Fichiers
fr/paris/lutece/plugins/appointment/modules/resource/business/AppointmentFormResourceType.java
fr/paris/lutece/plugins/appointment/modules/resource/business/AppointmentFormResourceTypeDAO.java
fr/paris/lutece/plugins/appointment/modules/resource/business/AppointmentFormResourceTypeHome.java
fr/paris/lutece/plugins/appointment/modules/resource/business/AppointmentResourceDAO.java
fr/paris/lutece/plugins/appointment/modules/resource/business/AppointmentResourceDTO.java
Rule |
Violation |
Priority |
Ligne |
DataClass |
The class 'AppointmentResourceDTO' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=5) |
3 |
41–101 |
CallSuperInConstructor |
It is a good practice to call super() in a constructor |
3 |
53–58 |
fr/paris/lutece/plugins/appointment/modules/resource/business/calendar/CalendarAppointmentResourceDTO.java
fr/paris/lutece/plugins/appointment/modules/resource/business/calendar/CalendarDayDTO.java
fr/paris/lutece/plugins/appointment/modules/resource/business/workflow/SetAppointmentResourceHistoryDAO.java
fr/paris/lutece/plugins/appointment/modules/resource/business/workflow/TaskSetAppointmentResourceConfig.java
Rule |
Violation |
Priority |
Ligne |
BooleanGetMethodName |
A getX() method which returns a boolean should be named isX() |
4 |
72–75 |
fr/paris/lutece/plugins/appointment/modules/resource/business/workflow/TaskSetAppointmentResourceConfigDAO.java
fr/paris/lutece/plugins/appointment/modules/resource/service/AppointmentResourceAddonService.java
Rule |
Violation |
Priority |
Ligne |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
3 |
69 |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
85 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
3 |
85 |
fr/paris/lutece/plugins/appointment/modules/resource/service/AppointmentResourceService.java
Rule |
Violation |
Priority |
Ligne |
UnusedImports |
Avoid unused imports such as 'fr.paris.lutece.plugins.appointment.business.appointment.Appointment' |
4 |
36 |
UnusedImports |
Avoid unused imports such as 'fr.paris.lutece.plugins.appointment.business.slot.Slot' |
4 |
37 |
UnusedImports |
Avoid unused imports such as 'fr.paris.lutece.plugins.appointment.service.SlotService' |
4 |
40 |
AvoidUsingVolatile |
Use of modifier volatile is not recommended. |
2 |
54 |
NonThreadSafeSingleton |
Singleton is not thread safe |
3 |
63–66 |
fr/paris/lutece/plugins/appointment/modules/resource/service/workflow/TaskSetAppointmentResource.java
fr/paris/lutece/plugins/appointment/modules/resource/web/AppointmentFormResourcesJspBean.java
fr/paris/lutece/plugins/appointment/modules/resource/web/AppointmentResourceJspBean.java
Rule |
Violation |
Priority |
Ligne |
ExcessiveImports |
A high number of imports can indicate a high degree of coupling within an object. |
3 |
34–495 |
UnusedImports |
Avoid unused imports such as 'fr.paris.lutece.plugins.appointment.business.slot.Slot' |
4 |
52 |
UnusedImports |
Avoid unused imports such as 'fr.paris.lutece.plugins.appointment.service.SlotService' |
4 |
58 |
NcssCount |
The method 'getResourceCalendar(HttpServletRequest, IResource, int, Locale)' has a NCSS line count of 82. |
3 |
261–398 |
CyclomaticComplexity |
The method 'getResourceCalendar(HttpServletRequest, IResource, int, Locale)' has a cyclomatic complexity of 13. |
3 |
261–398 |
ExcessiveMethodLength |
Avoid really long methods. |
3 |
261–398 |
NPathComplexity |
The method 'getResourceCalendar(HttpServletRequest, IResource, int, Locale)' has an NPath complexity of 676 |
3 |
261–398 |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
264 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
3 |
264 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
3 |
279 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
3 |
281 |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
281 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
3 |
336 |
EmptyStatementNotInLoop |
An empty statement (semicolon) not part of a loop |
3 |
355 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
3 |
411 |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
411 |
SimplifyStartsWith |
This call to String.startsWith can be rewritten using String.charAt(0) |
3 |
477 |
fr/paris/lutece/plugins/appointment/modules/resource/web/AppointmentUserCalendarDashboardComponent.java
Rule |
Violation |
Priority |
Ligne |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
74 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
3 |
74 |
fr/paris/lutece/plugins/appointment/modules/resource/web/workflow/SetAppointmentResourceTaskComponent.java