Fork me on GitHub

Résultats PMD

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

Fichiers

fr/paris/lutece/plugins/managewferror/business/Config.java

Violation Ligne
Avoid unused imports such as 'javax.validation.constraints' 36
Avoid unused imports such as 'org.hibernate.validator.constraints' 38

fr/paris/lutece/plugins/managewferror/business/Error.java

Violation Ligne
Avoid unused imports such as 'java.sql.Date' 37
Avoid unused imports such as 'java.sql.Date' 37

fr/paris/lutece/plugins/managewferror/business/ErrorDAO.java

Violation Ligne
Avoid throwing raw exception types. 112
Avoid throwing raw exception types. 171

fr/paris/lutece/plugins/managewferror/business/Resource.java

Violation Ligne
Avoid unused imports such as 'javax.validation.constraints' 36
Avoid unused imports such as 'org.hibernate.validator.constraints' 38

fr/paris/lutece/plugins/managewferror/business/ResourceDAO.java

Violation Ligne
The class 'ResourceDAO' has a Cyclomatic Complexity of 3 (Highest = 14). 46448
The class 'ResourceDAO' has a Modified Cyclomatic Complexity of 3 (Highest = 14). 46448
The class 'ResourceDAO' has a Standard Cyclomatic Complexity of 3 (Highest = 14). 46448
Avoid unused private fields such as 'CONSTANT_ORDER_BY'. 70
Avoid unused private fields such as 'CONSTANT_PERCENT'. 71
Avoid unused private fields such as 'CONSTANT_QUESTION_MARK'. 72
Avoid unused private fields such as 'CONSTANT_COMMA'. 73
Avoid unused private fields such as 'CONSTANT_CLOSE_PARENTHESIS'. 74
Avoid unused private fields such as 'CONSTANT_ASC'. 75
Avoid unused private fields such as 'CONSTANT_DESC'. 76
The method 'getSqlQueryFromFilter' has a Standard Cyclomatic Complexity of 14. 317373
The method getSqlQueryFromFilter() has an NPath complexity of 93312 317373
The method 'getSqlQueryFromFilter' has a Cyclomatic Complexity of 14. 317373
The method 'getSqlQueryFromFilter' has a Modified Cyclomatic Complexity of 14. 317373

fr/paris/lutece/plugins/managewferror/business/service/ConfigResourceIdService.java

Violation Ligne
Avoid variables with short names like rt 57
Avoid variables with short names like p 63

fr/paris/lutece/plugins/managewferror/business/service/ConfigService.java

Violation Ligne
Singleton is not thread safe 5257
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 79
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 102
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 131

fr/paris/lutece/plugins/managewferror/business/service/IProcessTaskErrorService.java

Violation Ligne
Avoid modifiers which are implied by the context 46
Avoid modifiers which are implied by the context 64

fr/paris/lutece/plugins/managewferror/business/service/ProcessTaskErrorService.java

Violation Ligne
Avoid unused imports such as 'fr.paris.lutece.plugins.workflowcore.business.workflow.WorkflowFilter' 48
Avoid unused imports such as 'fr.paris.lutece.plugins.workflowcore.business.workflow.WorkflowFilter' 48
Singleton is not thread safe 6772
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 111

fr/paris/lutece/plugins/managewferror/web/ConfigJspBean.java

Violation Ligne
The class 'ConfigJspBean' has a Modified Cyclomatic Complexity of 5 (Highest = 23). 71623
The class 'ConfigJspBean' has a Standard Cyclomatic Complexity of 5 (Highest = 23). 71623
The class 'ConfigJspBean' has a Cyclomatic Complexity of 7 (Highest = 35). 71623
Avoid unused private fields such as 'MARK_RESOURCEFORM_LIST'. 122
Avoid unused private fields such as 'MARK_RESOURCEFORM_CONFIG_LIST'. 123
Private field '_actionService' could be made final; it is only initialized in the declaration or constructor. 135
Assigning an Object to null is a code smell. Consider refactoring. 148
The method 'getCreateConfig' has a Modified Cyclomatic Complexity of 15. 171261
The method getCreateConfig() has an NPath complexity of 3920 171261
The method 'getCreateConfig' has a Standard Cyclomatic Complexity of 15. 171261
The method 'getCreateConfig' has a Cyclomatic Complexity of 22. 171261
Avoid using if statements without curly braces 193194
Avoid really long methods. 350499
The method 'getModifyConfig' has a Cyclomatic Complexity of 35. 350499
The method 'getModifyConfig' has a Standard Cyclomatic Complexity of 23. 350499
The method getModifyConfig() has an NPath complexity of 27930 350499
The method 'getModifyConfig' has a Modified Cyclomatic Complexity of 23. 350499
Avoid declaring a variable if it is unreferenced before a possible exit point. 353
Avoid declaring a variable if it is unreferenced before a possible exit point. 355
Avoid declaring a variable if it is unreferenced before a possible exit point. 356
Avoid declaring a variable if it is unreferenced before a possible exit point. 357
Avoid declaring a variable if it is unreferenced before a possible exit point. 358
Avoid unused local variables such as 'removedAction'. 358
Avoid declaring a variable if it is unreferenced before a possible exit point. 360
Avoid using if statements without curly braces 379380
Avoid using a branching statement as the last in a loop. 421
Avoid using if statements without curly braces 616617

fr/paris/lutece/plugins/managewferror/web/ConfigurationJspBean.java

Violation Ligne
Abstract classes should be named AbstractXXX 53111
Perhaps '_nDefaultItemsPerPage' could be replaced by a local variable. 70
Do not add empty strings 101

fr/paris/lutece/plugins/managewferror/web/ErrorJspBean.java

Violation Ligne
Assigning an Object to null is a code smell. Consider refactoring. 110

fr/paris/lutece/plugins/managewferror/web/ManageErrorJspBean.java

Violation Ligne
Abstract classes should be named AbstractXXX 53111
Perhaps '_nDefaultItemsPerPage' could be replaced by a local variable. 70
Do not add empty strings 101

fr/paris/lutece/plugins/managewferror/web/ManageQueueJspBean.java

Violation Ligne
Abstract classes should be named AbstractXXX 53110
Perhaps '_nDefaultItemsPerPage' could be replaced by a local variable. 69
Do not add empty strings 100

fr/paris/lutece/plugins/managewferror/web/ResourceJspBean.java

Violation Ligne
Avoid unused private fields such as 'TEMPLATE_CREATE_RESOURCE'. 71
Avoid unused private fields such as 'PROPERTY_PAGE_TITLE_CREATE_RESOURCE'. 81
Avoid unused private fields such as 'VALIDATION_ATTRIBUTES_PREFIX'. 94
Avoid unused private fields such as 'VIEW_CREATE_RESOURCE'. 98
Assigning an Object to null is a code smell. Consider refactoring. 123
Avoid using if statements without curly braces 144145
Deeply nested if..then statements are hard to read 144145
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 205
Avoid declaring a variable if it is unreferenced before a possible exit point. 239
Avoid unused local variables such as 'resource'. 239
Deeply nested if..then statements are hard to read 249252
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 267