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. 49564
CollapsibleIfStatements These nested if statements could be combined 8690
ShortVariable Avoid variables with short names like b 233
MissingOverride The method 'loadListTaskNotifyConfig(int, Plugin)' is missing an @Override annotation. 317345
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 513

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. 63
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 106

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. 34461
GodClass Possible God Class (WMC=52, ATFD=90, TCC=3.571%) 101461
DefaultPackage Use explicit scoping instead of the default package private level 144
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _workflowService field if you want a default access modifier 144
CommentRequired Public method and constructor comments are required 153211
CyclomaticComplexity The method 'sendReminder(int, String, int, int)' has a cyclomatic complexity of 15. 153211
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 228312
CyclomaticComplexity The method 'sendReminder(AppointmentDTO, ReminderAppointment, Date, long, int, TaskNotifyReminderConfig, String, int)' has a cyclomatic complexity of 20. 228312
UnusedFormalParameter Avoid unused method parameters such as 'startAppointment'. 228
UnusedFormalParameter Avoid unused method parameters such as 'strResourceType'. 229
UnusedFormalParameter Avoid unused method parameters such as 'nIdAction'. 229
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 265
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 276294
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 284
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 289
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 304
CyclomaticComplexity The method 'getSmsFromAppointment(AppointmentDTO, ReminderAppointment)' has a cyclomatic complexity of 10. 323365

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. 34432
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 184
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
ExcessiveMethodLength Avoid really long methods. 203382
CyclomaticComplexity The method 'doSaveConfig(HttpServletRequest, Locale, ITask)' has a cyclomatic complexity of 54. 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
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
CollapsibleIfStatements These nested if statements could be combined 406409
CommentRequired Public method and constructor comments are required 421424

Priority 4

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

Rule Violation Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.workflowcore.business.state.State' 42

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 49564
CollapsibleIfStatements These nested if statements could be combined 3 8690
ShortVariable Avoid variables with short names like b 3 233
MissingOverride The method 'loadListTaskNotifyConfig(int, Plugin)' is missing an @Override annotation. 3 317345
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 513

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

Rule Violation Priority Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.workflowcore.business.state.State' 4 42
ImmutableField Private field '_taskReminder' could be made final; it is only initialized in the declaration or constructor. 3 63
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 106

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 34461
GodClass Possible God Class (WMC=52, ATFD=90, TCC=3.571%) 3 101461
FieldNamingConventions The final field name '_stateService' doesn't match '[a-z][a-zA-Z0-9]*' 1 127
DefaultPackage Use explicit scoping instead of the default package private level 3 144
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _workflowService field if you want a default access modifier 3 144
CommentRequired Public method and constructor comments are required 3 153211
CyclomaticComplexity The method 'sendReminder(int, String, int, int)' has a cyclomatic complexity of 15. 3 153211
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 228312
CyclomaticComplexity The method 'sendReminder(AppointmentDTO, ReminderAppointment, Date, long, int, TaskNotifyReminderConfig, String, int)' has a cyclomatic complexity of 20. 3 228312
UnusedFormalParameter Avoid unused method parameters such as 'startAppointment'. 3 228
UnusedFormalParameter Avoid unused method parameters such as 'strResourceType'. 3 229
UnusedFormalParameter Avoid unused method parameters such as 'nIdAction'. 3 229
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 265
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 276294
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 284
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 289
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 304
CyclomaticComplexity The method 'getSmsFromAppointment(AppointmentDTO, ReminderAppointment)' has a cyclomatic complexity of 10. 3 323365

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 34432
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 184
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
ExcessiveMethodLength Avoid really long methods. 3 203382
CyclomaticComplexity The method 'doSaveConfig(HttpServletRequest, Locale, ITask)' has a cyclomatic complexity of 54. 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
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
CollapsibleIfStatements These nested if statements could be combined 3 406409
CommentRequired Public method and constructor comments are required 3 421424