Résultats PMD
Le document suivant contient les résultats de PMD 6.13.0.
Violations By Priority
Priority 1
fr/paris/lutece/plugins/mydashboard/modules/favorites/business/ICategoryDAO.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/business/IFavoriteDAO.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/rest/rs/Constants.java
Rule |
Violation |
Ligne |
ClassNamingConventions |
The utility class name 'Constants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' |
40–53 |
fr/paris/lutece/plugins/mydashboard/modules/favorites/service/FavoriteService.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/service/provider/ProviderFavoriteService.java
Priority 3
fr/paris/lutece/plugins/mydashboard/modules/favorites/business/Category.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/business/CategoryDAO.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/business/FavoriteDAO.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/business/FavoriteHome.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/business/ICategoryDAO.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/business/IFavoriteDAO.java
Rule |
Violation |
Ligne |
TooManyMethods |
This class has too many methods, consider refactoring it. |
45–140 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'selectActivatedFavoritesList': the method is declared in an interface type |
104 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'selectProviderNameFavoritesList': the method is declared in an interface type |
112 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'countProviderNameRemoteId': the method is declared in an interface type |
121 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'selectDefaultFavoritesList': the method is declared in an interface type |
128 |
CommentRequired |
Public method and constructor comments are required |
138 |
fr/paris/lutece/plugins/mydashboard/modules/favorites/service/CategoriesSubscriptionProviderService.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/service/FavoriteService.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/service/FavoritesSubscriptionProviderService.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/service/provider/IFavoriteProvider.java
Rule |
Violation |
Ligne |
CommentRequired |
Header comments are required |
39–43 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getProvideFavorites': the method is declared in an interface type |
41 |
CommentRequired |
Public method and constructor comments are required |
41 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getFavoriteProviderName': the method is declared in an interface type |
42 |
CommentRequired |
Public method and constructor comments are required |
42 |
fr/paris/lutece/plugins/mydashboard/modules/favorites/service/provider/MokeFavoriteProvider.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/service/provider/ProviderFavoriteService.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/util/UrlUtil.java
Rule |
Violation |
Ligne |
CommentRequired |
Header comments are required |
38–54 |
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. |
39–54 |
CommentRequired |
Public method and constructor comments are required |
47–53 |
ConsecutiveAppendsShouldReuse |
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
50 |
fr/paris/lutece/plugins/mydashboard/modules/favorites/web/CategoriesXPage.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/web/CategoryJspBean.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/web/FavoriteJspBean.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/web/FavoritesXPage.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/web/ManageFavoritesJspBean.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/web/MyDashboardCategoriesComponent.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/web/MyDashboardFavoritesComponent.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/web/MyDashboardListFavoritesComponent.java
Rule |
Violation |
Ligne |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
86 |
fr/paris/lutece/plugins/mydashboard/modules/favorites/web/includes/FavoritesInclude.java
Priority 4
fr/paris/lutece/plugins/mydashboard/modules/favorites/business/Favorite.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/web/MyDashboardCategoriesComponent.java
Rule |
Violation |
Ligne |
UnusedImports |
Avoid unused imports such as 'fr.paris.lutece.plugins.mydashboard.modules.favorites.business.Favorite' |
46 |
UnusedImports |
Avoid unused imports such as 'fr.paris.lutece.plugins.mydashboard.modules.favorites.service.FavoritesSubscriptionProviderService' |
49 |
fr/paris/lutece/plugins/mydashboard/modules/favorites/web/includes/FavoritesInclude.java
Rule |
Violation |
Ligne |
UnusedImports |
Avoid unused imports such as 'fr.paris.lutece.plugins.mydashboard.modules.favorites.service.FavoriteService' |
12 |
Fichiers
fr/paris/lutece/plugins/mydashboard/modules/favorites/business/Category.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/business/CategoryDAO.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/business/Favorite.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/business/FavoriteDAO.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/business/FavoriteHome.java
Rule |
Violation |
Priority |
Ligne |
CommentRequired |
Public method and constructor comments are required |
3 |
169–172 |
fr/paris/lutece/plugins/mydashboard/modules/favorites/business/ICategoryDAO.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/business/IFavoriteDAO.java
Rule |
Violation |
Priority |
Ligne |
TooManyMethods |
This class has too many methods, consider refactoring it. |
3 |
45–140 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'selectActivatedFavoritesList': the method is declared in an interface type |
3 |
104 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'selectProviderNameFavoritesList': the method is declared in an interface type |
3 |
112 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'countProviderNameRemoteId': the method is declared in an interface type |
3 |
121 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'selectDefaultFavoritesList': the method is declared in an interface type |
3 |
128 |
CommentRequired |
Public method and constructor comments are required |
3 |
138 |
FormalParameterNamingConventions |
The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' |
1 |
138 |
fr/paris/lutece/plugins/mydashboard/modules/favorites/rest/rs/Constants.java
Rule |
Violation |
Priority |
Ligne |
ClassNamingConventions |
The utility class name 'Constants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' |
1 |
40–53 |
fr/paris/lutece/plugins/mydashboard/modules/favorites/service/CategoriesSubscriptionProviderService.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/service/FavoriteService.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/service/FavoritesSubscriptionProviderService.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/service/provider/IFavoriteProvider.java
Rule |
Violation |
Priority |
Ligne |
CommentRequired |
Header comments are required |
3 |
39–43 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getProvideFavorites': the method is declared in an interface type |
3 |
41 |
CommentRequired |
Public method and constructor comments are required |
3 |
41 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getFavoriteProviderName': the method is declared in an interface type |
3 |
42 |
CommentRequired |
Public method and constructor comments are required |
3 |
42 |
fr/paris/lutece/plugins/mydashboard/modules/favorites/service/provider/MokeFavoriteProvider.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/service/provider/ProviderFavoriteService.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/util/UrlUtil.java
Rule |
Violation |
Priority |
Ligne |
CommentRequired |
Header comments are required |
3 |
38–54 |
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 |
39–54 |
CommentRequired |
Public method and constructor comments are required |
3 |
47–53 |
ConsecutiveAppendsShouldReuse |
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3 |
50 |
fr/paris/lutece/plugins/mydashboard/modules/favorites/web/CategoriesXPage.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/web/CategoryJspBean.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/web/FavoriteJspBean.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/web/FavoritesXPage.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/web/ManageFavoritesJspBean.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/web/MyDashboardCategoriesComponent.java
Rule |
Violation |
Priority |
Ligne |
UnusedImports |
Avoid unused imports such as 'fr.paris.lutece.plugins.mydashboard.modules.favorites.business.Favorite' |
4 |
46 |
UnusedImports |
Avoid unused imports such as 'fr.paris.lutece.plugins.mydashboard.modules.favorites.service.FavoritesSubscriptionProviderService' |
4 |
49 |
CommentRequired |
Header comments are required |
3 |
64–129 |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
94 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
3 |
94 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
3 |
103 |
fr/paris/lutece/plugins/mydashboard/modules/favorites/web/MyDashboardFavoritesComponent.java
fr/paris/lutece/plugins/mydashboard/modules/favorites/web/MyDashboardListFavoritesComponent.java
Rule |
Violation |
Priority |
Ligne |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
86 |
fr/paris/lutece/plugins/mydashboard/modules/favorites/web/includes/FavoritesInclude.java