Fork me on GitHub

Résultats PMD

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

Violations By Priority

Priority 1

fr/paris/lutece/plugins/appcenter/modules/sources/business/SourcesData.java

Rule Violation Ligne
FormalParameterNamingConventions The method parameter name '_listUserData' doesn't match '[a-z][a-zA-Z0-9]*' 78
FormalParameterNamingConventions The method parameter name '_strRepositoryType' doesn't match '[a-z][a-zA-Z0-9]*' 88
FormalParameterNamingConventions The method parameter name '_strRepositoryName' doesn't match '[a-z][a-zA-Z0-9]*' 98

fr/paris/lutece/plugins/appcenter/modules/sources/business/SourcesDemand.java

Rule Violation Ligne
FormalParameterNamingConventions The method parameter name '_strRepositoryType' doesn't match '[a-z][a-zA-Z0-9]*' 116
FormalParameterNamingConventions The method parameter name '_strRepositoryName' doesn't match '[a-z][a-zA-Z0-9]*' 126
FormalParameterNamingConventions The method parameter name '_strCategory' doesn't match '[a-z][a-zA-Z0-9]*' 146
FormalParameterNamingConventions The method parameter name '_listSourceUserDemand' doesn't match '[a-z][a-zA-Z0-9]*' 156

fr/paris/lutece/plugins/appcenter/modules/sources/business/SourcesRightData.java

Rule Violation Ligne
FormalParameterNamingConventions The method parameter name '_listAddUserData' doesn't match '[a-z][a-zA-Z0-9]*' 76
FormalParameterNamingConventions The method parameter name '_listRemoveUserData' doesn't match '[a-z][a-zA-Z0-9]*' 86

fr/paris/lutece/plugins/appcenter/modules/sources/business/SourcesRightDemand.java

Rule Violation Ligne
FormalParameterNamingConventions The method parameter name '_strRepositoryUrl' doesn't match '[a-z][a-zA-Z0-9]*' 109
FormalParameterNamingConventions The method parameter name '_listSourceAddUserDemand' doesn't match '[a-z][a-zA-Z0-9]*' 119
FormalParameterNamingConventions The method parameter name '_listSourceRemoveUserDemand' doesn't match '[a-z][a-zA-Z0-9]*' 130

fr/paris/lutece/plugins/appcenter/modules/sources/service/SourcesUtil.java

Rule Violation Ligne
FieldNamingConventions The constant name 'tabRepositoryTypes' doesn't match '[A-Z][A-Z_0-9]*' 14
FieldNamingConventions The static field name 'I18n_REPOSITORY_TYPE_PREFIX' doesn't match '_[a-z][a-zA-Z0-9]*' 15

Priority 2

fr/paris/lutece/plugins/appcenter/modules/sources/web/SourcesRightTaskComponent.java

Rule Violation Ligne
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 120

fr/paris/lutece/plugins/appcenter/modules/sources/web/SourcesTaskComponent.java

Rule Violation Ligne
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 96

Priority 3

fr/paris/lutece/plugins/appcenter/modules/sources/business/SourceUserData.java

Rule Violation Ligne
CommentRequired Header comments are required 552

fr/paris/lutece/plugins/appcenter/modules/sources/business/SourceUserDemand.java

Rule Violation Ligne
CommentRequired Header comments are required 554

fr/paris/lutece/plugins/appcenter/modules/sources/business/SourcesData.java

Rule Violation Ligne
CommentRequired Public method and constructor comments are required 8386
CommentRequired Public method and constructor comments are required 8891
CommentRequired Public method and constructor comments are required 9396
CommentRequired Public method and constructor comments are required 98101

fr/paris/lutece/plugins/appcenter/modules/sources/business/SourcesDemand.java

Rule Violation Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 49162
CommentRequired Header comments are required 49162
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 73
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 73
CommentRequired Public method and constructor comments are required 111114
CommentRequired Public method and constructor comments are required 116119
CommentRequired Public method and constructor comments are required 121124
CommentRequired Public method and constructor comments are required 126129
CommentRequired Public method and constructor comments are required 131134
CommentRequired Public method and constructor comments are required 136139
CommentRequired Public method and constructor comments are required 141144
CommentRequired Public method and constructor comments are required 146149

fr/paris/lutece/plugins/appcenter/modules/sources/business/SourcesRightDemand.java

Rule Violation Ligne
CommentRequired Header comments are required 49135
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 49135
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 67
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 67
CommentRequired Public method and constructor comments are required 104107
CommentRequired Public method and constructor comments are required 109112

fr/paris/lutece/plugins/appcenter/modules/sources/service/SourcesPermissionProvider.java

Rule Violation Ligne
CommentRequired Header comments are required 1439

fr/paris/lutece/plugins/appcenter/modules/sources/service/SourcesRightPermissionProvider.java

Rule Violation Ligne
CommentRequired Header comments are required 4266

fr/paris/lutece/plugins/appcenter/modules/sources/service/SourcesRightTask.java

Rule Violation Ligne
CommentRequired Header comments are required 5296
CommentRequired Public method and constructor comments are required 6895

fr/paris/lutece/plugins/appcenter/modules/sources/service/SourcesTask.java

Rule Violation Ligne
CommentRequired Header comments are required 3073
CommentRequired Public method and constructor comments are required 5066

fr/paris/lutece/plugins/appcenter/modules/sources/service/SourcesUtil.java

Rule Violation Ligne
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. 953
CommentRequired Header comments are required 953
CommentRequired Public method and constructor comments are required 1822
CommentRequired Public method and constructor comments are required 2339
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3335
CommentRequired Public method and constructor comments are required 4550

fr/paris/lutece/plugins/appcenter/modules/sources/web/SourcesRightTaskComponent.java

Rule Violation Ligne
CommentRequired Header comments are required 65151
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 80
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 80
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 134
UnusedLocalVariable Avoid unused local variables such as 'demand'. 134
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 137
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 137

fr/paris/lutece/plugins/appcenter/modules/sources/web/SourcesRightXPage.java

Rule Violation Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 62196
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 124

fr/paris/lutece/plugins/appcenter/modules/sources/web/SourcesTaskComponent.java

Rule Violation Ligne
CommentRequired Header comments are required 35128
UnusedPrivateField Avoid unused private fields such as 'MARK_REPOSITORY_TYPES_MAP'. 41
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 51
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 51
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 110
UnusedLocalVariable Avoid unused local variables such as 'demand'. 110
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 112
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 112

fr/paris/lutece/plugins/appcenter/modules/sources/web/SourcesXPage.java

Rule Violation Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 71197
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 138

Priority 4

fr/paris/lutece/plugins/appcenter/modules/sources/business/SourcesRightDemand.java

Rule Violation Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.modules.sources.service.SourcesUtil' 46

fr/paris/lutece/plugins/appcenter/modules/sources/service/SourcesRightTask.java

Rule Violation Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.modules.sources.business.SourcesData' 43
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.modules.sources.business.SourcesDatas' 44
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.modules.sources.business.SourcesDemand' 45

fr/paris/lutece/plugins/appcenter/modules/sources/service/SourcesTask.java

Rule Violation Ligne
UnusedImports Avoid unused imports such as 'javax.inject.Inject' 6
UnusedImports Avoid unused imports such as 'com.rometools.rome.feed.rss.Source' 9
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.business.Application' 11
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.business.ApplicationHome' 12
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.business.Demand' 13
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.business.DemandHome' 14
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.modules.sources.web.SourcesTaskComponent' 20
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.service.ApplicationService' 21
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory' 24
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.workflowcore.service.resource.IResourceHistoryService' 25
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.workflowcore.service.task.SimpleTask' 26
UnusedImports Avoid unused imports such as 'fr.paris.lutece.util.bean.BeanUtil' 27
UnusedImports Avoid unused imports such as 'fr.paris.lutece.util.beanvalidation.BeanValidationUtil' 28

fr/paris/lutece/plugins/appcenter/modules/sources/web/SourcesRightTaskComponent.java

Rule Violation Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.modules.sources.service.SourcesUtil' 52

fr/paris/lutece/plugins/appcenter/modules/sources/web/SourcesTaskComponent.java

Rule Violation Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.business.Demand' 16
UnusedImports Avoid unused imports such as 'fr.paris.lutece.util.ReferenceList' 30

fr/paris/lutece/plugins/appcenter/modules/sources/web/SourcesXPage.java

Rule Violation Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.web.Constants.MARK_USER' 37
UnusedImports Avoid unused imports such as 'com.rometools.rome.feed.rss.Source' 46
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.service.ApplicationService' 53
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.service.UserService' 55

Fichiers

fr/paris/lutece/plugins/appcenter/modules/sources/business/SourceUserData.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 552

fr/paris/lutece/plugins/appcenter/modules/sources/business/SourceUserDemand.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 554

fr/paris/lutece/plugins/appcenter/modules/sources/business/SourcesData.java

Rule Violation Priority Ligne
FormalParameterNamingConventions The method parameter name '_listUserData' doesn't match '[a-z][a-zA-Z0-9]*' 1 78
CommentRequired Public method and constructor comments are required 3 8386
FormalParameterNamingConventions The method parameter name '_strRepositoryType' doesn't match '[a-z][a-zA-Z0-9]*' 1 88
CommentRequired Public method and constructor comments are required 3 8891
CommentRequired Public method and constructor comments are required 3 9396
FormalParameterNamingConventions The method parameter name '_strRepositoryName' doesn't match '[a-z][a-zA-Z0-9]*' 1 98
CommentRequired Public method and constructor comments are required 3 98101

fr/paris/lutece/plugins/appcenter/modules/sources/business/SourcesDemand.java

Rule Violation Priority Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 49162
CommentRequired Header comments are required 3 49162
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 73
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 73
CommentRequired Public method and constructor comments are required 3 111114
CommentRequired Public method and constructor comments are required 3 116119
FormalParameterNamingConventions The method parameter name '_strRepositoryType' doesn't match '[a-z][a-zA-Z0-9]*' 1 116
CommentRequired Public method and constructor comments are required 3 121124
FormalParameterNamingConventions The method parameter name '_strRepositoryName' doesn't match '[a-z][a-zA-Z0-9]*' 1 126
CommentRequired Public method and constructor comments are required 3 126129
CommentRequired Public method and constructor comments are required 3 131134
CommentRequired Public method and constructor comments are required 3 136139
CommentRequired Public method and constructor comments are required 3 141144
FormalParameterNamingConventions The method parameter name '_strCategory' doesn't match '[a-z][a-zA-Z0-9]*' 1 146
CommentRequired Public method and constructor comments are required 3 146149
FormalParameterNamingConventions The method parameter name '_listSourceUserDemand' doesn't match '[a-z][a-zA-Z0-9]*' 1 156

fr/paris/lutece/plugins/appcenter/modules/sources/business/SourcesRightData.java

Rule Violation Priority Ligne
FormalParameterNamingConventions The method parameter name '_listAddUserData' doesn't match '[a-z][a-zA-Z0-9]*' 1 76
FormalParameterNamingConventions The method parameter name '_listRemoveUserData' doesn't match '[a-z][a-zA-Z0-9]*' 1 86

fr/paris/lutece/plugins/appcenter/modules/sources/business/SourcesRightDemand.java

Rule Violation Priority Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.modules.sources.service.SourcesUtil' 4 46
CommentRequired Header comments are required 3 49135
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 49135
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 67
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 67
CommentRequired Public method and constructor comments are required 3 104107
FormalParameterNamingConventions The method parameter name '_strRepositoryUrl' doesn't match '[a-z][a-zA-Z0-9]*' 1 109
CommentRequired Public method and constructor comments are required 3 109112
FormalParameterNamingConventions The method parameter name '_listSourceAddUserDemand' doesn't match '[a-z][a-zA-Z0-9]*' 1 119
FormalParameterNamingConventions The method parameter name '_listSourceRemoveUserDemand' doesn't match '[a-z][a-zA-Z0-9]*' 1 130

fr/paris/lutece/plugins/appcenter/modules/sources/service/SourcesPermissionProvider.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 1439

fr/paris/lutece/plugins/appcenter/modules/sources/service/SourcesRightPermissionProvider.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 4266

fr/paris/lutece/plugins/appcenter/modules/sources/service/SourcesRightTask.java

Rule Violation Priority Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.modules.sources.business.SourcesData' 4 43
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.modules.sources.business.SourcesDatas' 4 44
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.modules.sources.business.SourcesDemand' 4 45
CommentRequired Header comments are required 3 5296
CommentRequired Public method and constructor comments are required 3 6895

fr/paris/lutece/plugins/appcenter/modules/sources/service/SourcesTask.java

Rule Violation Priority Ligne
UnusedImports Avoid unused imports such as 'javax.inject.Inject' 4 6
UnusedImports Avoid unused imports such as 'com.rometools.rome.feed.rss.Source' 4 9
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.business.Application' 4 11
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.business.ApplicationHome' 4 12
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.business.Demand' 4 13
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.business.DemandHome' 4 14
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.modules.sources.web.SourcesTaskComponent' 4 20
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.service.ApplicationService' 4 21
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory' 4 24
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.workflowcore.service.resource.IResourceHistoryService' 4 25
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.workflowcore.service.task.SimpleTask' 4 26
UnusedImports Avoid unused imports such as 'fr.paris.lutece.util.bean.BeanUtil' 4 27
UnusedImports Avoid unused imports such as 'fr.paris.lutece.util.beanvalidation.BeanValidationUtil' 4 28
CommentRequired Header comments are required 3 3073
CommentRequired Public method and constructor comments are required 3 5066

fr/paris/lutece/plugins/appcenter/modules/sources/service/SourcesUtil.java

Rule Violation Priority Ligne
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 953
CommentRequired Header comments are required 3 953
FieldNamingConventions The constant name 'tabRepositoryTypes' doesn't match '[A-Z][A-Z_0-9]*' 1 14
FieldNamingConventions The static field name 'I18n_REPOSITORY_TYPE_PREFIX' doesn't match '_[a-z][a-zA-Z0-9]*' 1 15
CommentRequired Public method and constructor comments are required 3 1822
CommentRequired Public method and constructor comments are required 3 2339
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 3335
CommentRequired Public method and constructor comments are required 3 4550

fr/paris/lutece/plugins/appcenter/modules/sources/web/SourcesRightTaskComponent.java

Rule Violation Priority Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.modules.sources.service.SourcesUtil' 4 52
CommentRequired Header comments are required 3 65151
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 80
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 80
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 120
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 134
UnusedLocalVariable Avoid unused local variables such as 'demand'. 3 134
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 137
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 137

fr/paris/lutece/plugins/appcenter/modules/sources/web/SourcesRightXPage.java

Rule Violation Priority Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 62196
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 124

fr/paris/lutece/plugins/appcenter/modules/sources/web/SourcesTaskComponent.java

Rule Violation Priority Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.business.Demand' 4 16
UnusedImports Avoid unused imports such as 'fr.paris.lutece.util.ReferenceList' 4 30
CommentRequired Header comments are required 3 35128
UnusedPrivateField Avoid unused private fields such as 'MARK_REPOSITORY_TYPES_MAP'. 3 41
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 51
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 51
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 96
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 110
UnusedLocalVariable Avoid unused local variables such as 'demand'. 3 110
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 112
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 112

fr/paris/lutece/plugins/appcenter/modules/sources/web/SourcesXPage.java

Rule Violation Priority Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.web.Constants.MARK_USER' 4 37
UnusedImports Avoid unused imports such as 'com.rometools.rome.feed.rss.Source' 4 46
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.service.ApplicationService' 4 53
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appcenter.service.UserService' 4 55
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 71197
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 138