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/myportal/modules/myapps/web/MyPortalMyAppsXPage.java

Rule Violation Ligne
FieldNamingConventions The final field name '_myPortalMyAppsService' doesn't match '[a-z][a-zA-Z0-9]*' 149
FieldNamingConventions The final field name '_widgetContentService' doesn't match '[a-z][a-zA-Z0-9]*' 150

Priority 3

fr/paris/lutece/plugins/myportal/modules/myapps/services/MyPortalMyAppsWidgetHandler.java

Rule Violation Ligne
ConfusingTernary Avoid if (x != y) ..; else ..; 122
ConfusingTernary Avoid if (x != y) ..; else ..; 123
ConfusingTernary Avoid if (x != y) ..; else ..; 124
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 129
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 129
ConfusingTernary Avoid if (x != y) ..; else ..; 132

fr/paris/lutece/plugins/myportal/modules/myapps/web/MyPortalMyAppsXPage.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34639
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 167
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 188
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 188
ConfusingTernary Avoid if (x != y) ..; else ..; 232259
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 239
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 239
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 287
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 287
ConfusingTernary Avoid if (x != y) ..; else ..; 354385
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 361
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 361
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 412
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 412
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 514
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 514
CyclomaticComplexity The method 'getMyAppsDatabaseUserInfo(HttpServletRequest, LuteceUser, Plugin)' has a cyclomatic complexity of 16. 592638
ConfusingTernary Avoid if (x != y) ..; else ..; 622
ConfusingTernary Avoid if (x != y) ..; else ..; 623
ConfusingTernary Avoid if (x != y) ..; else ..; 624

fr/paris/lutece/plugins/myportal/modules/myapps/web/rs/MyPortalMyAppsRest.java

Rule Violation Ligne
ConfusingTernary Avoid if (x != y) ..; else ..; 106131
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 121
ConfusingTernary Avoid if (x != y) ..; else ..; 157182
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 172

Fichiers

fr/paris/lutece/plugins/myportal/modules/myapps/services/MyPortalMyAppsWidgetHandler.java

Rule Violation Priority Ligne
ConfusingTernary Avoid if (x != y) ..; else ..; 3 122
ConfusingTernary Avoid if (x != y) ..; else ..; 3 123
ConfusingTernary Avoid if (x != y) ..; else ..; 3 124
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 129
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 129
ConfusingTernary Avoid if (x != y) ..; else ..; 3 132

fr/paris/lutece/plugins/myportal/modules/myapps/web/MyPortalMyAppsXPage.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34639
FieldNamingConventions The final field name '_myPortalMyAppsService' doesn't match '[a-z][a-zA-Z0-9]*' 1 149
FieldNamingConventions The final field name '_widgetContentService' doesn't match '[a-z][a-zA-Z0-9]*' 1 150
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 167
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 188
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 188
ConfusingTernary Avoid if (x != y) ..; else ..; 3 232259
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 239
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 239
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 287
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 287
ConfusingTernary Avoid if (x != y) ..; else ..; 3 354385
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 361
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 361
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 412
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 412
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 514
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 514
CyclomaticComplexity The method 'getMyAppsDatabaseUserInfo(HttpServletRequest, LuteceUser, Plugin)' has a cyclomatic complexity of 16. 3 592638
ConfusingTernary Avoid if (x != y) ..; else ..; 3 622
ConfusingTernary Avoid if (x != y) ..; else ..; 3 623
ConfusingTernary Avoid if (x != y) ..; else ..; 3 624

fr/paris/lutece/plugins/myportal/modules/myapps/web/rs/MyPortalMyAppsRest.java

Rule Violation Priority Ligne
ConfusingTernary Avoid if (x != y) ..; else ..; 3 106131
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 121
ConfusingTernary Avoid if (x != y) ..; else ..; 3 157182
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 172