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/termofservice/business/EntryDAO.java

Rule Violation Ligne
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 269

fr/paris/lutece/plugins/termofservice/business/IEntryDAO.java

Rule Violation Ligne
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 119
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 127

fr/paris/lutece/plugins/termofservice/business/IUserAcceptedDAO.java

Rule Violation Ligne
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 124

fr/paris/lutece/plugins/termofservice/rs/Constants.java

Rule Violation Ligne
ClassNamingConventions The utility class name 'Constants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 3980

fr/paris/lutece/plugins/termofservice/rs/UserAcceptedRest.java

Rule Violation Ligne
FormalParameterNamingConventions The method parameter name 'header_security' doesn't match '[a-z][a-zA-Z0-9]*' 86
FormalParameterNamingConventions The method parameter name 'id_entry_tos' doesn't match '[a-z][a-zA-Z0-9]*' 142
FormalParameterNamingConventions The method parameter name 'header_security' doesn't match '[a-z][a-zA-Z0-9]*' 144
FormalParameterNamingConventions The method parameter name 'fk_id_entry' doesn't match '[a-z][a-zA-Z0-9]*' 170

fr/paris/lutece/plugins/termofservice/rs/dto/UserDTO.java

Rule Violation Ligne
FieldNamingConventions The field name 'nIdTermOfService' doesn't match '_[a-z][a-zA-Z0-9]*' 47
FieldNamingConventions The field name 'strGuid' doesn't match '_[a-z][a-zA-Z0-9]*' 48
FieldNamingConventions The field name 'nId' doesn't match '_[a-z][a-zA-Z0-9]*' 49

fr/paris/lutece/plugins/termofservice/service/ClientRS.java

Rule Violation Ligne
ClassNamingConventions The utility class name 'ClientRS' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 51114

fr/paris/lutece/plugins/termofservice/service/TOSService.java

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

fr/paris/lutece/plugins/termofservice/util/TOSConstants.java

Rule Violation Ligne
ClassNamingConventions The utility class name 'TOSConstants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 4356
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 4356

Priority 3

fr/paris/lutece/plugins/termofservice/business/EntryDAO.java

Rule Violation Ligne
TooManyMethods This class has too many methods, consider refactoring it. 51334
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 230232

fr/paris/lutece/plugins/termofservice/business/IEntryDAO.java

Rule Violation Ligne
TooManyMethods This class has too many methods, consider refactoring it. 46137

fr/paris/lutece/plugins/termofservice/business/UserAcceptedDAO.java

Rule Violation Ligne
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 228230

fr/paris/lutece/plugins/termofservice/rs/Constants.java

Rule Violation Ligne
ShortVariable Avoid variables with short names like ID 46

fr/paris/lutece/plugins/termofservice/rs/UserAcceptedRest.java

Rule Violation Ligne
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 116
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 194

fr/paris/lutece/plugins/termofservice/rs/dto/UserDTO.java

Rule Violation Ligne
CommentRequired Header comments are required 4480
CommentRequired Public method and constructor comments are required 5254
CommentRequired Public method and constructor comments are required 5658
CommentRequired Public method and constructor comments are required 6062
CommentRequired Public method and constructor comments are required 6466
CommentRequired Public method and constructor comments are required 6870
CommentRequired Public method and constructor comments are required 7274

fr/paris/lutece/plugins/termofservice/service/ClientRS.java

Rule Violation Ligne
CommentRequired Header comments are required 51114
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. 51114
CommentRequired Public method and constructor comments are required 5580
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 63
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 63
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'user' 72
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 74
CommentRequired Public method and constructor comments are required 82112
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 88
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 92
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 92
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'user' 104
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 106

fr/paris/lutece/plugins/termofservice/util/TOSConstants.java

Rule Violation Ligne
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 54

fr/paris/lutece/plugins/termofservice/web/AbstractManageTOSJspBean.java

Rule Violation Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 50110
DefaultPackage Use explicit scoping instead of the default package private level 109
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 109

fr/paris/lutece/plugins/termofservice/web/EntryJspBean.java

Rule Violation Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 67328
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 129
DefaultPackage Use explicit scoping instead of the default package private level 147156
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 148156
ConfusingTernary Avoid if (x != y) ..; else ..; 175
CommentRequired Public method and constructor comments are required 311327

fr/paris/lutece/plugins/termofservice/web/EntryXPage.java

Rule Violation Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 73228
ConfusingTernary Avoid if (x != y) ..; else ..; 117
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 133
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 195

fr/paris/lutece/plugins/termofservice/web/TOSPredicate.java

Rule Violation Ligne
CommentRequired Header comments are required 4359
DefaultPackage Use explicit scoping instead of the default package private level 45
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _biPredicate field if you want a default access modifier 45
CommentRequired Public method and constructor comments are required 4751

Fichiers

fr/paris/lutece/plugins/termofservice/business/EntryDAO.java

Rule Violation Priority Ligne
TooManyMethods This class has too many methods, consider refactoring it. 3 51334
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 230232
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 1 269

fr/paris/lutece/plugins/termofservice/business/IEntryDAO.java

Rule Violation Priority Ligne
TooManyMethods This class has too many methods, consider refactoring it. 3 46137
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 1 119
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 1 127

fr/paris/lutece/plugins/termofservice/business/IUserAcceptedDAO.java

Rule Violation Priority Ligne
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 1 124

fr/paris/lutece/plugins/termofservice/business/UserAcceptedDAO.java

Rule Violation Priority Ligne
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 228230

fr/paris/lutece/plugins/termofservice/rs/Constants.java

Rule Violation Priority Ligne
ClassNamingConventions The utility class name 'Constants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 3980
ShortVariable Avoid variables with short names like ID 3 46

fr/paris/lutece/plugins/termofservice/rs/UserAcceptedRest.java

Rule Violation Priority Ligne
FormalParameterNamingConventions The method parameter name 'header_security' doesn't match '[a-z][a-zA-Z0-9]*' 1 86
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 116
FormalParameterNamingConventions The method parameter name 'id_entry_tos' doesn't match '[a-z][a-zA-Z0-9]*' 1 142
FormalParameterNamingConventions The method parameter name 'header_security' doesn't match '[a-z][a-zA-Z0-9]*' 1 144
FormalParameterNamingConventions The method parameter name 'fk_id_entry' doesn't match '[a-z][a-zA-Z0-9]*' 1 170
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 194

fr/paris/lutece/plugins/termofservice/rs/dto/UserDTO.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 4480
FieldNamingConventions The field name 'nIdTermOfService' doesn't match '_[a-z][a-zA-Z0-9]*' 1 47
FieldNamingConventions The field name 'strGuid' doesn't match '_[a-z][a-zA-Z0-9]*' 1 48
FieldNamingConventions The field name 'nId' doesn't match '_[a-z][a-zA-Z0-9]*' 1 49
CommentRequired Public method and constructor comments are required 3 5254
CommentRequired Public method and constructor comments are required 3 5658
CommentRequired Public method and constructor comments are required 3 6062
CommentRequired Public method and constructor comments are required 3 6466
CommentRequired Public method and constructor comments are required 3 6870
CommentRequired Public method and constructor comments are required 3 7274

fr/paris/lutece/plugins/termofservice/service/ClientRS.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 51114
ClassNamingConventions The utility class name 'ClientRS' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 51114
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 51114
CommentRequired Public method and constructor comments are required 3 5580
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 63
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 63
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'user' 3 72
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 74
CommentRequired Public method and constructor comments are required 3 82112
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 88
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 92
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 92
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'user' 3 104
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 106

fr/paris/lutece/plugins/termofservice/service/TOSService.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 51126

fr/paris/lutece/plugins/termofservice/util/TOSConstants.java

Rule Violation Priority Ligne
ClassNamingConventions The utility class name 'TOSConstants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 4356
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 4356
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 54

fr/paris/lutece/plugins/termofservice/web/AbstractManageTOSJspBean.java

Rule Violation Priority Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 50110
DefaultPackage Use explicit scoping instead of the default package private level 3 109
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 3 109

fr/paris/lutece/plugins/termofservice/web/EntryJspBean.java

Rule Violation Priority Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 67328
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 129
DefaultPackage Use explicit scoping instead of the default package private level 3 147156
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 3 148156
ConfusingTernary Avoid if (x != y) ..; else ..; 3 175
CommentRequired Public method and constructor comments are required 3 311327

fr/paris/lutece/plugins/termofservice/web/EntryXPage.java

Rule Violation Priority Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 73228
ConfusingTernary Avoid if (x != y) ..; else ..; 3 117
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 133
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 195

fr/paris/lutece/plugins/termofservice/web/TOSPredicate.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 4359
DefaultPackage Use explicit scoping instead of the default package private level 3 45
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _biPredicate field if you want a default access modifier 3 45
CommentRequired Public method and constructor comments are required 3 4751