Le document suivant contient les résultats de PMD 6.13.0.
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 42–69 |
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 42–58 |
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 41–69 |
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 46–320 |
MethodNamingConventions | The static method name 'formattageStringToUtilDateDDMMYYYY_avecSlash' doesn't match '[a-z][a-zA-Z0-9]*' | 69–77 |
MethodNamingConventions | The static method name 'formattageStringToUtilDateDDMMMMYYYY_avecSlash' doesn't match '[a-z][a-zA-Z0-9]*' | 85–93 |
MethodNamingConventions | The static method name 'formattageStringToUtilDateDDMMMMYYYY_avecSlash' doesn't match '[a-z][a-zA-Z0-9]*' | 101–109 |
MethodNamingConventions | The static method name 'formattageStringToSqlDateDDMMYYYY_avecSlash' doesn't match '[a-z][a-zA-Z0-9]*' | 116–125 |
MethodNamingConventions | The static method name 'formattageStringToSqlDateDDMMYYYY_avecSlashSansException' doesn't match '[a-z][a-zA-Z0-9]*' | 132–148 |
MethodNamingConventions | The static method name 'formattageDateToStringDDMMYYYY_avecSlash' doesn't match '[a-z][a-zA-Z0-9]*' | 155–158 |
MethodNamingConventions | The static method name 'formattageDateToStringDDMMMMYYYY_avecEspace' doesn't match '[a-z][a-zA-Z0-9]*' | 160–163 |
MethodNamingConventions | The static method name 'formattageDateToStringDDMMMMYYYY_avecEspace' doesn't match '[a-z][a-zA-Z0-9]*' | 165–168 |
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 41–227 |
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 49–111 |
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 40–65 |
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 41–63 |
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 41–211 |
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 39–112 |
Rule | Violation | Ligne |
---|---|---|
AvoidReassigningParameters | Avoid reassigning parameters such as 'element' | 64 |
AvoidReassigningParameters | Avoid reassigning parameters such as 'element' | 64 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 42–69 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 42–58 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 44–46 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 41–69 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 46–320 |
GodClass | Possible God Class (WMC=47, ATFD=28, TCC=7.018%) | 46–320 |
TooManyMethods | This class has too many methods, consider refactoring it. | 47–320 |
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 | 160–163 |
CommentRequired | Public method and constructor comments are required | 165–168 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 185 |
CommentRequired | Public method and constructor comments are required | 240–244 |
CommentRequired | Public method and constructor comments are required | 246–250 |
CommentRequired | Public method and constructor comments are required | 252–274 |
CommentRequired | Public method and constructor comments are required | 276–279 |
ShortVariable | Avoid variables with short names like ts | 281 |
CommentRequired | Public method and constructor comments are required | 281–288 |
CommentRequired | Public method and constructor comments are required | 290–308 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 300 |
CommentRequired | Public method and constructor comments are required | 310–319 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 41–227 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 43–46 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 49–111 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 40–65 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 54–177 |
MissingOverride | The method 'create(Gson, TypeToken)' is missing an @Override annotation. | 66–72 |
CommentRequired | Public method and constructor comments are required | 66–72 |
CommentRequired | Public method and constructor comments are required | 80–89 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 80–89 |
ShortVariable | Avoid variables with short names like in | 112 |
CommentRequired | Public method and constructor comments are required | 112–118 |
MissingOverride | The method 'read(JsonReader)' is missing an @Override annotation. | 112–118 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 120–166 |
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 | 168–176 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 168–176 |
MissingOverride | The method 'write(JsonWriter, Date)' is missing an @Override annotation. | 168–176 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 41–63 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 41–211 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 62–65 |
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 | 149–164 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 157 |
CyclomaticComplexity | The method 'formattePrenom(String)' has a cyclomatic complexity of 11. | 171–210 |
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 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 39–112 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 86 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 40–206 |
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. | 41–206 |
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 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 42–69 |
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 42–69 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 42–58 |
CommentRequired | Header comments are required | 3 | 42–58 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 44–46 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 41–69 |
CommentRequired | Header comments are required | 3 | 41–69 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 46–320 |
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 46–320 |
GodClass | Possible God Class (WMC=47, ATFD=28, TCC=7.018%) | 3 | 46–320 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 47–320 |
MethodNamingConventions | The static method name 'formattageStringToUtilDateDDMMYYYY_avecSlash' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 69–77 |
MethodNamingConventions | The static method name 'formattageStringToUtilDateDDMMMMYYYY_avecSlash' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 85–93 |
MethodNamingConventions | The static method name 'formattageStringToUtilDateDDMMMMYYYY_avecSlash' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 101–109 |
MethodNamingConventions | The static method name 'formattageStringToSqlDateDDMMYYYY_avecSlash' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 116–125 |
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 | 132–148 |
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 | 155–158 |
MethodNamingConventions | The static method name 'formattageDateToStringDDMMMMYYYY_avecEspace' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 160–163 |
CommentRequired | Public method and constructor comments are required | 3 | 160–163 |
MethodNamingConventions | The static method name 'formattageDateToStringDDMMMMYYYY_avecEspace' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 165–168 |
CommentRequired | Public method and constructor comments are required | 3 | 165–168 |
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 | 240–244 |
CommentRequired | Public method and constructor comments are required | 3 | 246–250 |
CommentRequired | Public method and constructor comments are required | 3 | 252–274 |
CommentRequired | Public method and constructor comments are required | 3 | 276–279 |
ShortVariable | Avoid variables with short names like ts | 3 | 281 |
CommentRequired | Public method and constructor comments are required | 3 | 281–288 |
CommentRequired | Public method and constructor comments are required | 3 | 290–308 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 3 | 300 |
CommentRequired | Public method and constructor comments are required | 3 | 310–319 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 41–227 |
CommentRequired | Header comments are required | 3 | 41–227 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 43–46 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 49–111 |
CommentRequired | Header comments are required | 3 | 49–111 |
AvoidReassigningParameters | Avoid reassigning parameters such as 'element' | 2 | 64 |
AvoidReassigningParameters | Avoid reassigning parameters such as 'element' | 2 | 64 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 40–65 |
CommentRequired | Header comments are required | 3 | 40–65 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 54–177 |
MissingOverride | The method 'create(Gson, TypeToken)' is missing an @Override annotation. | 3 | 66–72 |
CommentRequired | Public method and constructor comments are required | 3 | 66–72 |
CommentRequired | Public method and constructor comments are required | 3 | 80–89 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 80–89 |
ShortVariable | Avoid variables with short names like in | 3 | 112 |
CommentRequired | Public method and constructor comments are required | 3 | 112–118 |
MissingOverride | The method 'read(JsonReader)' is missing an @Override annotation. | 3 | 112–118 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 120–166 |
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 | 168–176 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 168–176 |
MissingOverride | The method 'write(JsonWriter, Date)' is missing an @Override annotation. | 3 | 168–176 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 41–63 |
CommentRequired | Header comments are required | 3 | 41–63 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 41–211 |
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 41–211 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 62–65 |
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 | 149–164 |
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 | 171–210 |
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 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 39–112 |
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 39–112 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 86 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 40–206 |
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 | 41–206 |