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/genericalert/service/TaskNotifyReminder.java

Rule Violation Ligne
FieldNamingConventions The final field name '_stateService' doesn't match '[a-z][a-zA-Z0-9]*' 127

Priority 3

fr/paris/lutece/plugins/genericalert/business/ITaskNotifyReminderConfigDAO.java

Rule Violation Ligne
TooManyMethods This class has too many methods, consider refactoring it. 46160
MissingOverride The method 'insert(TaskNotifyReminderConfig)' is missing an @Override annotation. 54
MissingOverride The method 'store(TaskNotifyReminderConfig)' is missing an @Override annotation. 62
MissingOverride The method 'delete(int)' is missing an @Override annotation. 70
MissingOverride The method 'load(int)' is missing an @Override annotation. 82
ShortVariable Avoid variables with short names like b 115

fr/paris/lutece/plugins/genericalert/business/TaskNotifyReminderConfigDAO.java

Rule Violation Ligne
TooManyMethods This class has too many methods, consider refactoring it. 49553
CollapsibleIfStatements These nested if statements could be combined 8690
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 206
ShortVariable Avoid variables with short names like b 229
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 256
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 282
MissingOverride The method 'loadListTaskNotifyConfig(int, Plugin)' is missing an @Override annotation. 311339
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 318
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 322
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 504
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 540

fr/paris/lutece/plugins/genericalert/daemon/AppointmentReminderDaemon.java

Rule Violation Ligne
ImmutableField Private field '_taskReminder' could be made final; it is only initialized in the declaration or constructor. 62
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 102

fr/paris/lutece/plugins/genericalert/service/NotifyReminderPlugin.java

Rule Violation Ligne
UncommentedEmptyMethodBody Document empty method body 5557

fr/paris/lutece/plugins/genericalert/service/TaskNotifyReminder.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34460
GodClass Possible God Class (WMC=51, ATFD=91, TCC=3.571%) 101460
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _workflowService field if you want a default access modifier 144
DefaultPackage Use explicit scoping instead of the default package private level 144
CyclomaticComplexity The method 'sendReminder(int, String, int, int)' has a cyclomatic complexity of 14. 153210
CommentRequired Public method and constructor comments are required 153210
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 184207
NPathComplexity The method 'sendReminder(AppointmentDTO, ReminderAppointment, Date, long, int, TaskNotifyReminderConfig, String, int)' has an NPath complexity of 652 227311
CyclomaticComplexity The method 'sendReminder(AppointmentDTO, ReminderAppointment, Date, long, int, TaskNotifyReminderConfig, String, int)' has a cyclomatic complexity of 20. 227311
UnusedFormalParameter Avoid unused method parameters such as 'startAppointment'. 227
UnusedFormalParameter Avoid unused method parameters such as 'strResourceType'. 228
UnusedFormalParameter Avoid unused method parameters such as 'nIdAction'. 228
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 264
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 275293
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 283
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 288
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 303
CyclomaticComplexity The method 'getSmsFromAppointment(AppointmentDTO, ReminderAppointment)' has a cyclomatic complexity of 10. 322364

fr/paris/lutece/plugins/genericalert/service/TaskNotifyReminderConfigService.java

Rule Violation Ligne
UncommentedEmptyMethodBody Document empty method body 6163
UncommentedEmptyMethodBody Document empty method body 6769
UncommentedEmptyMethodBody Document empty method body 7981
UncommentedEmptyMethodBody Document empty method body 8587

fr/paris/lutece/plugins/genericalert/web/NotifyReminderTaskComponent.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34433
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 184
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 184
ExcessiveMethodLength Avoid really long methods. 203382
CyclomaticComplexity The method 'doSaveConfig(HttpServletRequest, Locale, ITask)' has a cyclomatic complexity of 54. 203382
NPathComplexity The method 'doSaveConfig(HttpServletRequest, Locale, ITask)' has an NPath complexity of 2147483647 203382
NcssCount The method 'doSaveConfig(HttpServletRequest, Locale, ITask)' has a NCSS line count of 94. 203382
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 207
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 208
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 210
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 210
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 212
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 268
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 270
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 271
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 272273
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 274275
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 276277
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 278279
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 280
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 281282
CollapsibleIfStatements These nested if statements could be combined 286289
CollapsibleIfStatements These nested if statements could be combined 293296
CollapsibleIfStatements These nested if statements could be combined 300303
CollapsibleIfStatements These nested if statements could be combined 307310
CollapsibleIfStatements These nested if statements could be combined 315318
CollapsibleIfStatements These nested if statements could be combined 323326
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 360
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 393
CollapsibleIfStatements These nested if statements could be combined 406409

Fichiers

fr/paris/lutece/plugins/genericalert/business/ITaskNotifyReminderConfigDAO.java

Rule Violation Priority Ligne
TooManyMethods This class has too many methods, consider refactoring it. 3 46160
MissingOverride The method 'insert(TaskNotifyReminderConfig)' is missing an @Override annotation. 3 54
MissingOverride The method 'store(TaskNotifyReminderConfig)' is missing an @Override annotation. 3 62
MissingOverride The method 'delete(int)' is missing an @Override annotation. 3 70
MissingOverride The method 'load(int)' is missing an @Override annotation. 3 82
ShortVariable Avoid variables with short names like b 3 115

fr/paris/lutece/plugins/genericalert/business/TaskNotifyReminderConfigDAO.java

Rule Violation Priority Ligne
TooManyMethods This class has too many methods, consider refactoring it. 3 49553
CollapsibleIfStatements These nested if statements could be combined 3 8690
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 206
ShortVariable Avoid variables with short names like b 3 229
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 256
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 282
MissingOverride The method 'loadListTaskNotifyConfig(int, Plugin)' is missing an @Override annotation. 3 311339
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 318
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 322
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 504
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 540

fr/paris/lutece/plugins/genericalert/daemon/AppointmentReminderDaemon.java

Rule Violation Priority Ligne
ImmutableField Private field '_taskReminder' could be made final; it is only initialized in the declaration or constructor. 3 62
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 102

fr/paris/lutece/plugins/genericalert/service/NotifyReminderPlugin.java

Rule Violation Priority Ligne
UncommentedEmptyMethodBody Document empty method body 3 5557

fr/paris/lutece/plugins/genericalert/service/TaskNotifyReminder.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34460
GodClass Possible God Class (WMC=51, ATFD=91, TCC=3.571%) 3 101460
FieldNamingConventions The final field name '_stateService' doesn't match '[a-z][a-zA-Z0-9]*' 1 127
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _workflowService field if you want a default access modifier 3 144
DefaultPackage Use explicit scoping instead of the default package private level 3 144
CyclomaticComplexity The method 'sendReminder(int, String, int, int)' has a cyclomatic complexity of 14. 3 153210
CommentRequired Public method and constructor comments are required 3 153210
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 184207
NPathComplexity The method 'sendReminder(AppointmentDTO, ReminderAppointment, Date, long, int, TaskNotifyReminderConfig, String, int)' has an NPath complexity of 652 3 227311
CyclomaticComplexity The method 'sendReminder(AppointmentDTO, ReminderAppointment, Date, long, int, TaskNotifyReminderConfig, String, int)' has a cyclomatic complexity of 20. 3 227311
UnusedFormalParameter Avoid unused method parameters such as 'startAppointment'. 3 227
UnusedFormalParameter Avoid unused method parameters such as 'strResourceType'. 3 228
UnusedFormalParameter Avoid unused method parameters such as 'nIdAction'. 3 228
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 264
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 275293
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 283
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 288
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 303
CyclomaticComplexity The method 'getSmsFromAppointment(AppointmentDTO, ReminderAppointment)' has a cyclomatic complexity of 10. 3 322364

fr/paris/lutece/plugins/genericalert/service/TaskNotifyReminderConfigService.java

Rule Violation Priority Ligne
UncommentedEmptyMethodBody Document empty method body 3 6163
UncommentedEmptyMethodBody Document empty method body 3 6769
UncommentedEmptyMethodBody Document empty method body 3 7981
UncommentedEmptyMethodBody Document empty method body 3 8587

fr/paris/lutece/plugins/genericalert/web/NotifyReminderTaskComponent.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34433
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 184
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 184
ExcessiveMethodLength Avoid really long methods. 3 203382
CyclomaticComplexity The method 'doSaveConfig(HttpServletRequest, Locale, ITask)' has a cyclomatic complexity of 54. 3 203382
NPathComplexity The method 'doSaveConfig(HttpServletRequest, Locale, ITask)' has an NPath complexity of 2147483647 3 203382
NcssCount The method 'doSaveConfig(HttpServletRequest, Locale, ITask)' has a NCSS line count of 94. 3 203382
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 207
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 208
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 210
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 210
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 212
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 268
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 270
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 271
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 272273
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 274275
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 276277
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 278279
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 280
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 281282
CollapsibleIfStatements These nested if statements could be combined 3 286289
CollapsibleIfStatements These nested if statements could be combined 3 293296
CollapsibleIfStatements These nested if statements could be combined 3 300303
CollapsibleIfStatements These nested if statements could be combined 3 307310
CollapsibleIfStatements These nested if statements could be combined 3 315318
CollapsibleIfStatements These nested if statements could be combined 3 323326
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 3 360
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 393
CollapsibleIfStatements These nested if statements could be combined 3 406409