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/utilitairesfo/utils/CSRFUtils.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 4269

fr/paris/lutece/plugins/utilitairesfo/utils/CollectionUtils.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 4258

fr/paris/lutece/plugins/utilitairesfo/utils/ConnexionUtils.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 4169

fr/paris/lutece/plugins/utilitairesfo/utils/DateFormatUtils.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 46320
MethodNamingConventions The static method name 'formattageStringToUtilDateDDMMYYYY_avecSlash' doesn't match '[a-z][a-zA-Z0-9]*' 6977
MethodNamingConventions The static method name 'formattageStringToUtilDateDDMMMMYYYY_avecSlash' doesn't match '[a-z][a-zA-Z0-9]*' 8593
MethodNamingConventions The static method name 'formattageStringToUtilDateDDMMMMYYYY_avecSlash' doesn't match '[a-z][a-zA-Z0-9]*' 101109
MethodNamingConventions The static method name 'formattageStringToSqlDateDDMMYYYY_avecSlash' doesn't match '[a-z][a-zA-Z0-9]*' 116125
MethodNamingConventions The static method name 'formattageStringToSqlDateDDMMYYYY_avecSlashSansException' doesn't match '[a-z][a-zA-Z0-9]*' 132148
MethodNamingConventions The static method name 'formattageDateToStringDDMMYYYY_avecSlash' doesn't match '[a-z][a-zA-Z0-9]*' 155158
MethodNamingConventions The static method name 'formattageDateToStringDDMMMMYYYY_avecEspace' doesn't match '[a-z][a-zA-Z0-9]*' 160163
MethodNamingConventions The static method name 'formattageDateToStringDDMMMMYYYY_avecEspace' doesn't match '[a-z][a-zA-Z0-9]*' 165168

fr/paris/lutece/plugins/utilitairesfo/utils/DateUtils.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 41227

fr/paris/lutece/plugins/utilitairesfo/utils/DiversUtils.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 49111

fr/paris/lutece/plugins/utilitairesfo/utils/EmailUtils.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 4065

fr/paris/lutece/plugins/utilitairesfo/utils/MessageUtils.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 4163

fr/paris/lutece/plugins/utilitairesfo/utils/StringUtils.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 41211

fr/paris/lutece/plugins/utilitairesfo/utils/TelephoneUtils.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 39112

Priority 2

fr/paris/lutece/plugins/utilitairesfo/utils/DiversUtils.java

Rule Violation Ligne
AvoidReassigningParameters Avoid reassigning parameters such as 'element' 64
AvoidReassigningParameters Avoid reassigning parameters such as 'element' 64

Priority 3

fr/paris/lutece/plugins/utilitairesfo/utils/CSRFUtils.java

Rule Violation Ligne
CommentRequired Header comments are required 4269

fr/paris/lutece/plugins/utilitairesfo/utils/CollectionUtils.java

Rule Violation Ligne
CommentRequired Header comments are required 4258
CallSuperInConstructor It is a good practice to call super() in a constructor 4446

fr/paris/lutece/plugins/utilitairesfo/utils/ConnexionUtils.java

Rule Violation Ligne
CommentRequired Header comments are required 4169

fr/paris/lutece/plugins/utilitairesfo/utils/DateFormatUtils.java

Rule Violation Ligne
CommentRequired Header comments are required 46320
GodClass Possible God Class (WMC=47, ATFD=28, TCC=7.018%) 46320
TooManyMethods This class has too many methods, consider refactoring it. 47320
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 124
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 142
CommentRequired Public method and constructor comments are required 160163
CommentRequired Public method and constructor comments are required 165168
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 185
CommentRequired Public method and constructor comments are required 240244
CommentRequired Public method and constructor comments are required 246250
CommentRequired Public method and constructor comments are required 252274
CommentRequired Public method and constructor comments are required 276279
ShortVariable Avoid variables with short names like ts 281
CommentRequired Public method and constructor comments are required 281288
CommentRequired Public method and constructor comments are required 290308
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 300
CommentRequired Public method and constructor comments are required 310319

fr/paris/lutece/plugins/utilitairesfo/utils/DateUtils.java

Rule Violation Ligne
CommentRequired Header comments are required 41227
CallSuperInConstructor It is a good practice to call super() in a constructor 4346

fr/paris/lutece/plugins/utilitairesfo/utils/DiversUtils.java

Rule Violation Ligne
CommentRequired Header comments are required 49111

fr/paris/lutece/plugins/utilitairesfo/utils/EmailUtils.java

Rule Violation Ligne
CommentRequired Header comments are required 4065

fr/paris/lutece/plugins/utilitairesfo/utils/ImprovedDateTypeAdapter.java

Rule Violation Ligne
CommentRequired Header comments are required 54177
MissingOverride The method 'create(Gson, TypeToken)' is missing an @Override annotation. 6672
CommentRequired Public method and constructor comments are required 6672
CommentRequired Public method and constructor comments are required 8089
CallSuperInConstructor It is a good practice to call super() in a constructor 8089
ShortVariable Avoid variables with short names like in 112
CommentRequired Public method and constructor comments are required 112118
MissingOverride The method 'read(JsonReader)' is missing an @Override annotation. 112118
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 120166
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 125
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 158
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 158
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 158
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 158
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 158
CommentRequired Public method and constructor comments are required 168176
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 168176
MissingOverride The method 'write(JsonWriter, Date)' is missing an @Override annotation. 168176

fr/paris/lutece/plugins/utilitairesfo/utils/MessageUtils.java

Rule Violation Ligne
CommentRequired Header comments are required 4163

fr/paris/lutece/plugins/utilitairesfo/utils/StringUtils.java

Rule Violation Ligne
CommentRequired Header comments are required 41211
CallSuperInConstructor It is a good practice to call super() in a constructor 6265
ConfusingTernary Avoid if (x != y) ..; else ..; 80
ConfusingTernary Avoid if (x != y) ..; else ..; 99
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 140
CommentRequired Public method and constructor comments are required 149164
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 157
CyclomaticComplexity The method 'formattePrenom(String)' has a cyclomatic complexity of 11. 171210
ShortVariable Avoid variables with short names like sb 178
ShortVariable Avoid variables with short names like s 187
ShortVariable Avoid variables with short names like s 195
ShortVariable Avoid variables with short names like s 202
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 203

fr/paris/lutece/plugins/utilitairesfo/utils/TelephoneUtils.java

Rule Violation Ligne
CommentRequired Header comments are required 39112
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 86

fr/paris/lutece/plugins/utilitairesfo/utils/VerificationUtils.java

Rule Violation Ligne
CommentRequired Header comments are required 40206
UseUtilityClass 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. 41206

Priority 4

fr/paris/lutece/plugins/utilitairesfo/utils/DateFormatUtils.java

Rule Violation Ligne
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' 217
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' 231
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' 237

Fichiers

fr/paris/lutece/plugins/utilitairesfo/utils/CSRFUtils.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 4269
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 4269

fr/paris/lutece/plugins/utilitairesfo/utils/CollectionUtils.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 4258
CommentRequired Header comments are required 3 4258
CallSuperInConstructor It is a good practice to call super() in a constructor 3 4446

fr/paris/lutece/plugins/utilitairesfo/utils/ConnexionUtils.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 4169
CommentRequired Header comments are required 3 4169

fr/paris/lutece/plugins/utilitairesfo/utils/DateFormatUtils.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 46320
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 46320
GodClass Possible God Class (WMC=47, ATFD=28, TCC=7.018%) 3 46320
TooManyMethods This class has too many methods, consider refactoring it. 3 47320
MethodNamingConventions The static method name 'formattageStringToUtilDateDDMMYYYY_avecSlash' doesn't match '[a-z][a-zA-Z0-9]*' 1 6977
MethodNamingConventions The static method name 'formattageStringToUtilDateDDMMMMYYYY_avecSlash' doesn't match '[a-z][a-zA-Z0-9]*' 1 8593
MethodNamingConventions The static method name 'formattageStringToUtilDateDDMMMMYYYY_avecSlash' doesn't match '[a-z][a-zA-Z0-9]*' 1 101109
MethodNamingConventions The static method name 'formattageStringToSqlDateDDMMYYYY_avecSlash' doesn't match '[a-z][a-zA-Z0-9]*' 1 116125
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 124
MethodNamingConventions The static method name 'formattageStringToSqlDateDDMMYYYY_avecSlashSansException' doesn't match '[a-z][a-zA-Z0-9]*' 1 132148
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 142
MethodNamingConventions The static method name 'formattageDateToStringDDMMYYYY_avecSlash' doesn't match '[a-z][a-zA-Z0-9]*' 1 155158
MethodNamingConventions The static method name 'formattageDateToStringDDMMMMYYYY_avecEspace' doesn't match '[a-z][a-zA-Z0-9]*' 1 160163
CommentRequired Public method and constructor comments are required 3 160163
MethodNamingConventions The static method name 'formattageDateToStringDDMMMMYYYY_avecEspace' doesn't match '[a-z][a-zA-Z0-9]*' 1 165168
CommentRequired Public method and constructor comments are required 3 165168
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 185
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' 4 217
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' 4 231
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' 4 237
CommentRequired Public method and constructor comments are required 3 240244
CommentRequired Public method and constructor comments are required 3 246250
CommentRequired Public method and constructor comments are required 3 252274
CommentRequired Public method and constructor comments are required 3 276279
ShortVariable Avoid variables with short names like ts 3 281
CommentRequired Public method and constructor comments are required 3 281288
CommentRequired Public method and constructor comments are required 3 290308
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 300
CommentRequired Public method and constructor comments are required 3 310319

fr/paris/lutece/plugins/utilitairesfo/utils/DateUtils.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 41227
CommentRequired Header comments are required 3 41227
CallSuperInConstructor It is a good practice to call super() in a constructor 3 4346

fr/paris/lutece/plugins/utilitairesfo/utils/DiversUtils.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 49111
CommentRequired Header comments are required 3 49111
AvoidReassigningParameters Avoid reassigning parameters such as 'element' 2 64
AvoidReassigningParameters Avoid reassigning parameters such as 'element' 2 64

fr/paris/lutece/plugins/utilitairesfo/utils/EmailUtils.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 4065
CommentRequired Header comments are required 3 4065

fr/paris/lutece/plugins/utilitairesfo/utils/ImprovedDateTypeAdapter.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 54177
MissingOverride The method 'create(Gson, TypeToken)' is missing an @Override annotation. 3 6672
CommentRequired Public method and constructor comments are required 3 6672
CommentRequired Public method and constructor comments are required 3 8089
CallSuperInConstructor It is a good practice to call super() in a constructor 3 8089
ShortVariable Avoid variables with short names like in 3 112
CommentRequired Public method and constructor comments are required 3 112118
MissingOverride The method 'read(JsonReader)' is missing an @Override annotation. 3 112118
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 120166
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 125
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 158
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 158
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 158
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 158
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 158
CommentRequired Public method and constructor comments are required 3 168176
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 168176
MissingOverride The method 'write(JsonWriter, Date)' is missing an @Override annotation. 3 168176

fr/paris/lutece/plugins/utilitairesfo/utils/MessageUtils.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 4163
CommentRequired Header comments are required 3 4163

fr/paris/lutece/plugins/utilitairesfo/utils/StringUtils.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 41211
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 41211
CallSuperInConstructor It is a good practice to call super() in a constructor 3 6265
ConfusingTernary Avoid if (x != y) ..; else ..; 3 80
ConfusingTernary Avoid if (x != y) ..; else ..; 3 99
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 140
CommentRequired Public method and constructor comments are required 3 149164
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 157
CyclomaticComplexity The method 'formattePrenom(String)' has a cyclomatic complexity of 11. 3 171210
ShortVariable Avoid variables with short names like sb 3 178
ShortVariable Avoid variables with short names like s 3 187
ShortVariable Avoid variables with short names like s 3 195
ShortVariable Avoid variables with short names like s 3 202
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 203

fr/paris/lutece/plugins/utilitairesfo/utils/TelephoneUtils.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 39112
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 39112
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 86

fr/paris/lutece/plugins/utilitairesfo/utils/VerificationUtils.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 40206
UseUtilityClass 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. 3 41206