Fork me on GitHub

Résultats PMD

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

Fichiers

fr/paris/lutece/plugins/portalrest/rs/PageRest.java

Violation Ligne
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 105
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 136
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 165
Rather than using a lot of String arguments, consider using a container object for those values. 185195
Avoid long parameter lists. 185195
Avoid reassigning parameters such as 'strDescription' 189
Avoid reassigning parameters such as 'strRole' 190
Avoid reassigning parameters such as 'strTheme' 191
Avoid reassigning parameters such as 'strOrder' 192
Avoid reassigning parameters such as 'strMetaKeywords' 194
Avoid reassigning parameters such as 'strMetaDescription' 195
Do not add empty strings 233
Avoid variables with short names like p 237
Do not add empty strings 238
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 241
StringBuffer constructor is initialized with size 16, but has at least 25 characters appended. 268
StringBuffer constructor is initialized with size 16, but has at least 25 characters appended. 285
Avoid unused private methods such as 'getPagesAsJson(String)'. 308

fr/paris/lutece/plugins/portalrest/rs/PageTemplateRest.java

Violation Ligne
StringBuffer constructor is initialized with size 16, but has at least 25 characters appended. 66

fr/paris/lutece/plugins/portalrest/rs/PortletRest.java

Violation Ligne
StringBuffer constructor is initialized with size 16, but has at least 45 characters appended. 75
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 92
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 136
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 170
StringBuffer constructor is initialized with size 16, but has at least 52 characters appended. 180
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 181
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 181
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 197
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 198
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 199
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 200
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 202
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 203
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 204
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 205
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 206
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 207
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 208

fr/paris/lutece/plugins/portalrest/rs/RoleRest.java

Violation Ligne
StringBuffer constructor is initialized with size 16, but has at least 25 characters appended. 65

fr/paris/lutece/plugins/portalrest/rs/ThemeRest.java

Violation Ligne
StringBuffer constructor is initialized with size 16, but has at least 25 characters appended. 69

fr/paris/lutece/plugins/portalrest/rs/WorkgroupRest.java

Violation Ligne
StringBuffer constructor is initialized with size 16, but has at least 25 characters appended. 72

fr/paris/lutece/plugins/portalrest/util/XmlResponseUtil.java

Violation Ligne
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 4466
Do not add empty strings 61