PMD Results
The following document contains the results of PMD 6.13.0.
Violations By Priority
Priority 1
fr/paris/lutece/plugins/extend/modules/favorite/util/constants/FavoriteConstants.java
Rule |
Violation |
Line |
ClassNamingConventions |
The utility class name 'FavoriteConstants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' |
41–101 |
FieldNamingConventions |
The public constant name 'MARK_favorite_CONFIG' doesn't match '[A-Z][A-Z_0-9]*' |
71 |
Priority 2
fr/paris/lutece/plugins/extend/modules/favorite/service/FavoriteListenerService.java
fr/paris/lutece/plugins/extend/modules/favorite/web/component/FavoriteResourceExtenderComponent.java
Priority 3
fr/paris/lutece/plugins/extend/modules/favorite/business/FavoriteDAO.java
fr/paris/lutece/plugins/extend/modules/favorite/business/FavoriteFilter.java
fr/paris/lutece/plugins/extend/modules/favorite/service/FavoriteAddOnService.java
fr/paris/lutece/plugins/extend/modules/favorite/service/FavoriteListenerService.java
fr/paris/lutece/plugins/extend/modules/favorite/service/FavoriteService.java
fr/paris/lutece/plugins/extend/modules/favorite/service/extender/FavoriteResourceExtender.java
fr/paris/lutece/plugins/extend/modules/favorite/service/validator/FavoriteValidationManagementService.java
Rule |
Violation |
Line |
UseUtilityClass |
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. |
47–77 |
fr/paris/lutece/plugins/extend/modules/favorite/web/FavoriteJspBean.java
Rule |
Violation |
Line |
ImmutableField |
Private field '_resourceExtenderHistoryService' could be made final; it is only initialized in the declaration or constructor. |
78 |
ImmutableField |
Private field '_favoriteService' could be made final; it is only initialized in the declaration or constructor. |
79 |
CyclomaticComplexity |
The method 'doFavorite(HttpServletRequest, HttpServletResponse)' has a cyclomatic complexity of 13. |
96–192 |
NPathComplexity |
The method 'doFavorite(HttpServletRequest, HttpServletResponse)' has an NPath complexity of 360 |
96–192 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
116–134 |
UseStringBufferForStringAppends |
Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings |
159 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
228–246 |
fr/paris/lutece/plugins/extend/modules/favorite/web/action/FavoriteInstallerPluginAction.java
fr/paris/lutece/plugins/extend/modules/favorite/web/component/FavoriteResourceExtenderComponent.java
Priority 4
fr/paris/lutece/plugins/extend/modules/favorite/service/IFavoriteListener.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'java.util.Date' |
36 |
fr/paris/lutece/plugins/extend/modules/favorite/web/component/FavoriteResourceExtenderComponent.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'fr.paris.lutece.plugins.extend.modules.favorite.business.FavoriteFilter' |
41 |
Files
fr/paris/lutece/plugins/extend/modules/favorite/business/FavoriteDAO.java
fr/paris/lutece/plugins/extend/modules/favorite/business/FavoriteFilter.java
fr/paris/lutece/plugins/extend/modules/favorite/service/FavoriteAddOnService.java
fr/paris/lutece/plugins/extend/modules/favorite/service/FavoriteListenerService.java
fr/paris/lutece/plugins/extend/modules/favorite/service/FavoriteService.java
fr/paris/lutece/plugins/extend/modules/favorite/service/IFavoriteListener.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'java.util.Date' |
4 |
36 |
fr/paris/lutece/plugins/extend/modules/favorite/service/extender/FavoriteResourceExtender.java
fr/paris/lutece/plugins/extend/modules/favorite/service/validator/FavoriteValidationManagementService.java
Rule |
Violation |
Priority |
Line |
UseUtilityClass |
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. |
3 |
47–77 |
fr/paris/lutece/plugins/extend/modules/favorite/util/constants/FavoriteConstants.java
Rule |
Violation |
Priority |
Line |
ClassNamingConventions |
The utility class name 'FavoriteConstants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' |
1 |
41–101 |
FieldNamingConventions |
The public constant name 'MARK_favorite_CONFIG' doesn't match '[A-Z][A-Z_0-9]*' |
1 |
71 |
fr/paris/lutece/plugins/extend/modules/favorite/web/FavoriteJspBean.java
Rule |
Violation |
Priority |
Line |
ImmutableField |
Private field '_resourceExtenderHistoryService' could be made final; it is only initialized in the declaration or constructor. |
3 |
78 |
ImmutableField |
Private field '_favoriteService' could be made final; it is only initialized in the declaration or constructor. |
3 |
79 |
CyclomaticComplexity |
The method 'doFavorite(HttpServletRequest, HttpServletResponse)' has a cyclomatic complexity of 13. |
3 |
96–192 |
NPathComplexity |
The method 'doFavorite(HttpServletRequest, HttpServletResponse)' has an NPath complexity of 360 |
3 |
96–192 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
3 |
116–134 |
UseStringBufferForStringAppends |
Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings |
3 |
159 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
3 |
228–246 |
fr/paris/lutece/plugins/extend/modules/favorite/web/action/FavoriteInstallerPluginAction.java
fr/paris/lutece/plugins/extend/modules/favorite/web/component/FavoriteResourceExtenderComponent.java