Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.13.0.

Violations By Priority

Priority 1

fr/paris/lutece/plugins/openagenda/utils/OpenagendaUtils.java

Rule Violation Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 55153

Priority 3

fr/paris/lutece/plugins/openagenda/api/mapping/v2/Accessibility.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 8992
CommentRequired Public method and constructor comments are required 104107
CommentRequired Public method and constructor comments are required 119122
CommentRequired Public method and constructor comments are required 134137

fr/paris/lutece/plugins/openagenda/api/mapping/v2/EventData.java

Rule Violation Line
ExcessivePublicCount This class has a bunch of public methods and attributes 34529
TooManyFields Too many fields 46529

fr/paris/lutece/plugins/openagenda/api/mapping/v2/Keywords.java

Rule Violation Line
DataClass The class 'Keywords' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=12, WMC=12) 46168

fr/paris/lutece/plugins/openagenda/api/mapping/v2/LocationData.java

Rule Violation Line
ExcessivePublicCount This class has a bunch of public methods and attributes 34587
TooManyFields Too many fields 46587

fr/paris/lutece/plugins/openagenda/business/portlet/OpenagendaPortlet.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 70
ConfusingTernary Avoid if (x != y) ..; else ..; 76

fr/paris/lutece/plugins/openagenda/business/portlet/OpenagendaPortletHome.java

Rule Violation Line
RedundantFieldInitializer Avoid using redundant field initializer for '_singleton' 47
NonThreadSafeSingleton Singleton is not thread safe 5659

fr/paris/lutece/plugins/openagenda/client/v2/EventsFilters.java

Rule Violation Line
CommentRequired Header comments are required 40318

fr/paris/lutece/plugins/openagenda/client/v2/EventsService.java

Rule Violation Line
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 70

fr/paris/lutece/plugins/openagenda/service/OpenagendaV2Service.java

Rule Violation Line
ImmutableField Private field '_agendasService' could be made final; it is only initialized in the declaration or constructor. 56
ImmutableField Private field '_eventsService' could be made final; it is only initialized in the declaration or constructor. 57
ImmutableField Private field '_locationsService' could be made final; it is only initialized in the declaration or constructor. 58
CommentRequired Public method and constructor comments are required 6270
NonThreadSafeSingleton Singleton is not thread safe 6467

fr/paris/lutece/plugins/openagenda/utils/OpenagendaUtils.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 75
ShortVariable Avoid variables with short names like sb 75
ConfusingTernary Avoid if (x != y) ..; else ..; 9098

fr/paris/lutece/plugins/openagenda/web/AgendaJspBean.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 109116
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 111
ConfusingTernary Avoid if (x != y) ..; else ..; 128

fr/paris/lutece/plugins/openagenda/web/AgendaXPage.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 8692
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 94
CommentRequired Public method and constructor comments are required 95104
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 106
CommentRequired Public method and constructor comments are required 107132

fr/paris/lutece/plugins/openagenda/web/ManageOpenagendaJspBean.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 4882
CommentRequired Protected method constructor comments are required 6281
AddEmptyString Do not add empty strings 76

fr/paris/lutece/plugins/openagenda/web/portlet/OpenagendaPortletJspBean.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 71

Priority 4

fr/paris/lutece/plugins/openagenda/api/mapping/v2/Age.java

Rule Violation Line
ShortClassName Avoid short class names like Age 4284

Files

fr/paris/lutece/plugins/openagenda/api/mapping/v2/Accessibility.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 8992
CommentRequired Public method and constructor comments are required 3 104107
CommentRequired Public method and constructor comments are required 3 119122
CommentRequired Public method and constructor comments are required 3 134137

fr/paris/lutece/plugins/openagenda/api/mapping/v2/Age.java

Rule Violation Priority Line
ShortClassName Avoid short class names like Age 4 4284

fr/paris/lutece/plugins/openagenda/api/mapping/v2/EventData.java

Rule Violation Priority Line
ExcessivePublicCount This class has a bunch of public methods and attributes 3 34529
TooManyFields Too many fields 3 46529

fr/paris/lutece/plugins/openagenda/api/mapping/v2/Keywords.java

Rule Violation Priority Line
DataClass The class 'Keywords' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=12, WMC=12) 3 46168

fr/paris/lutece/plugins/openagenda/api/mapping/v2/LocationData.java

Rule Violation Priority Line
ExcessivePublicCount This class has a bunch of public methods and attributes 3 34587
TooManyFields Too many fields 3 46587

fr/paris/lutece/plugins/openagenda/business/portlet/OpenagendaPortlet.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 70
ConfusingTernary Avoid if (x != y) ..; else ..; 3 76

fr/paris/lutece/plugins/openagenda/business/portlet/OpenagendaPortletHome.java

Rule Violation Priority Line
RedundantFieldInitializer Avoid using redundant field initializer for '_singleton' 3 47
NonThreadSafeSingleton Singleton is not thread safe 3 5659

fr/paris/lutece/plugins/openagenda/client/v2/EventsFilters.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 40318

fr/paris/lutece/plugins/openagenda/client/v2/EventsService.java

Rule Violation Priority Line
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 70

fr/paris/lutece/plugins/openagenda/service/OpenagendaV2Service.java

Rule Violation Priority Line
ImmutableField Private field '_agendasService' could be made final; it is only initialized in the declaration or constructor. 3 56
ImmutableField Private field '_eventsService' could be made final; it is only initialized in the declaration or constructor. 3 57
ImmutableField Private field '_locationsService' could be made final; it is only initialized in the declaration or constructor. 3 58
CommentRequired Public method and constructor comments are required 3 6270
NonThreadSafeSingleton Singleton is not thread safe 3 6467

fr/paris/lutece/plugins/openagenda/utils/OpenagendaUtils.java

Rule Violation Priority Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 55153
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 75
ShortVariable Avoid variables with short names like sb 3 75
ConfusingTernary Avoid if (x != y) ..; else ..; 3 9098

fr/paris/lutece/plugins/openagenda/web/AgendaJspBean.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 109116
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 111
ConfusingTernary Avoid if (x != y) ..; else ..; 3 128

fr/paris/lutece/plugins/openagenda/web/AgendaXPage.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 8692
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 94
CommentRequired Public method and constructor comments are required 3 95104
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 106
CommentRequired Public method and constructor comments are required 3 107132

fr/paris/lutece/plugins/openagenda/web/ManageOpenagendaJspBean.java

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 4882
CommentRequired Protected method constructor comments are required 3 6281
AddEmptyString Do not add empty strings 3 76

fr/paris/lutece/plugins/openagenda/web/portlet/OpenagendaPortletJspBean.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 71