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/participatoryideation/modules/participatorybudget/service/export/ExportToBudgetTask.java

Rule Violation Line
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 122

fr/paris/lutece/plugins/participatoryideation/modules/participatorybudget/service/export/ReinitProposalTask.java

Rule Violation Line
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 112

fr/paris/lutece/plugins/participatoryideation/modules/participatorybudget/service/ideation/ParticipatoryIdeationCampaignEventListener.java

Rule Violation Line
MethodNamingConventions The instance method name 'process_CAMPAIGN_CLONED' doesn't match '[a-z][a-zA-Z0-9]*' 7491
MethodNamingConventions The instance method name 'process_CAMPAIGN_CODE_MODIFICATION_AUTHORISATION' doesn't match '[a-z][a-zA-Z0-9]*' 98111
MethodNamingConventions The instance method name 'process_CAMPAIGN_CODE_MODIFIED' doesn't match '[a-z][a-zA-Z0-9]*' 113119

fr/paris/lutece/plugins/participatoryideation/modules/participatorybudget/service/ideation/ParticipatoryIdeationCampaignModuleDataProvider.java

Rule Violation Line
FieldNamingConventions The field name 'dataFromBudget' doesn't match '_[a-z][a-zA-Z0-9]*' 49

Priority 3

fr/paris/lutece/plugins/participatoryideation/modules/participatorybudget/service/export/ExportToBudgetService.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 6674
NonThreadSafeSingleton Singleton is not thread safe 6871
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 89
AddEmptyString Do not add empty strings 114
AddEmptyString Do not add empty strings 116

fr/paris/lutece/plugins/participatoryideation/modules/participatorybudget/service/export/ExportToBudgetTask.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 73
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 101
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 119

fr/paris/lutece/plugins/participatoryideation/modules/participatorybudget/service/export/IExportToBudgetService.java

Rule Violation Line
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 54
UnnecessaryModifier Unnecessary modifier 'public' on method 'exportToParticipatoryBudgetAction': the method is declared in an interface type 54

fr/paris/lutece/plugins/participatoryideation/modules/participatorybudget/service/export/ReinitProposalTask.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 73
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 109

fr/paris/lutece/plugins/participatoryideation/modules/participatorybudget/service/ideation/IdeationMyInfosListener.java

Rule Violation Line
CommentRequired Header comments are required 59129
ImmutableField Private field '_commentService' could be made final; it is only initialized in the declaration or constructor. 65
ImmutableField Private field '_solrProposalIndexer' could be made final; it is only initialized in the declaration or constructor. 66
ImmutableField Private field '_commentDAO' could be made final; it is only initialized in the declaration or constructor. 67
UseUnderscoresInNumericLiterals Number 10000 should separate every third digit with an underscore 76

fr/paris/lutece/plugins/participatoryideation/modules/participatorybudget/service/ideation/ParticipatoryIdeationCampaignEventListener.java

Rule Violation Line
CommentRequired Header comments are required 48121
SwitchStmtsShouldHaveDefault Switch statements should have a default label 5464

fr/paris/lutece/plugins/participatoryideation/modules/participatorybudget/service/ideation/ParticipatoryIdeationCampaignModuleDataFromBudgetService.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 6269
NonThreadSafeSingleton Singleton is not thread safe 6467
CommentRequired Public method and constructor comments are required 7680
CommentRequired Public method and constructor comments are required 8791
CommentRequired Public method and constructor comments are required 9397
CommentRequired Public method and constructor comments are required 99103
CommentRequired Public method and constructor comments are required 105109
CommentRequired Public method and constructor comments are required 111115
CommentRequired Public method and constructor comments are required 117121
CommentRequired Public method and constructor comments are required 123127
CommentRequired Public method and constructor comments are required 129133
CommentRequired Public method and constructor comments are required 135139
CommentRequired Public method and constructor comments are required 141145
CommentRequired Public method and constructor comments are required 152156
CommentRequired Public method and constructor comments are required 158162
CommentRequired Public method and constructor comments are required 164168
CommentRequired Public method and constructor comments are required 170174
CommentRequired Public method and constructor comments are required 176180
CommentRequired Public method and constructor comments are required 182186
CommentRequired Public method and constructor comments are required 188198
CommentRequired Public method and constructor comments are required 200210
CommentRequired Public method and constructor comments are required 217221
CommentRequired Public method and constructor comments are required 223227
CommentRequired Public method and constructor comments are required 229233

Files

fr/paris/lutece/plugins/participatoryideation/modules/participatorybudget/service/export/ExportToBudgetService.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 6674
NonThreadSafeSingleton Singleton is not thread safe 3 6871
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 89
AddEmptyString Do not add empty strings 3 114
AddEmptyString Do not add empty strings 3 116

fr/paris/lutece/plugins/participatoryideation/modules/participatorybudget/service/export/ExportToBudgetTask.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 73
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 101
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 119
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 122

fr/paris/lutece/plugins/participatoryideation/modules/participatorybudget/service/export/IExportToBudgetService.java

Rule Violation Priority Line
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 54
UnnecessaryModifier Unnecessary modifier 'public' on method 'exportToParticipatoryBudgetAction': the method is declared in an interface type 3 54

fr/paris/lutece/plugins/participatoryideation/modules/participatorybudget/service/export/ReinitProposalTask.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 73
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 109
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 112

fr/paris/lutece/plugins/participatoryideation/modules/participatorybudget/service/ideation/IdeationMyInfosListener.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 59129
ImmutableField Private field '_commentService' could be made final; it is only initialized in the declaration or constructor. 3 65
ImmutableField Private field '_solrProposalIndexer' could be made final; it is only initialized in the declaration or constructor. 3 66
ImmutableField Private field '_commentDAO' could be made final; it is only initialized in the declaration or constructor. 3 67
UseUnderscoresInNumericLiterals Number 10000 should separate every third digit with an underscore 3 76

fr/paris/lutece/plugins/participatoryideation/modules/participatorybudget/service/ideation/ParticipatoryIdeationCampaignEventListener.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 48121
SwitchStmtsShouldHaveDefault Switch statements should have a default label 3 5464
MethodNamingConventions The instance method name 'process_CAMPAIGN_CLONED' doesn't match '[a-z][a-zA-Z0-9]*' 1 7491
MethodNamingConventions The instance method name 'process_CAMPAIGN_CODE_MODIFICATION_AUTHORISATION' doesn't match '[a-z][a-zA-Z0-9]*' 1 98111
MethodNamingConventions The instance method name 'process_CAMPAIGN_CODE_MODIFIED' doesn't match '[a-z][a-zA-Z0-9]*' 1 113119

fr/paris/lutece/plugins/participatoryideation/modules/participatorybudget/service/ideation/ParticipatoryIdeationCampaignModuleDataFromBudgetService.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 6269
NonThreadSafeSingleton Singleton is not thread safe 3 6467
CommentRequired Public method and constructor comments are required 3 7680
CommentRequired Public method and constructor comments are required 3 8791
CommentRequired Public method and constructor comments are required 3 9397
CommentRequired Public method and constructor comments are required 3 99103
CommentRequired Public method and constructor comments are required 3 105109
CommentRequired Public method and constructor comments are required 3 111115
CommentRequired Public method and constructor comments are required 3 117121
CommentRequired Public method and constructor comments are required 3 123127
CommentRequired Public method and constructor comments are required 3 129133
CommentRequired Public method and constructor comments are required 3 135139
CommentRequired Public method and constructor comments are required 3 141145
CommentRequired Public method and constructor comments are required 3 152156
CommentRequired Public method and constructor comments are required 3 158162
CommentRequired Public method and constructor comments are required 3 164168
CommentRequired Public method and constructor comments are required 3 170174
CommentRequired Public method and constructor comments are required 3 176180
CommentRequired Public method and constructor comments are required 3 182186
CommentRequired Public method and constructor comments are required 3 188198
CommentRequired Public method and constructor comments are required 3 200210
CommentRequired Public method and constructor comments are required 3 217221
CommentRequired Public method and constructor comments are required 3 223227
CommentRequired Public method and constructor comments are required 3 229233

fr/paris/lutece/plugins/participatoryideation/modules/participatorybudget/service/ideation/ParticipatoryIdeationCampaignModuleDataProvider.java

Rule Violation Priority Line
FieldNamingConventions The field name 'dataFromBudget' doesn't match '_[a-z][a-zA-Z0-9]*' 1 49