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/temporarycode/business/ITemporaryCodeConfigDAO.java

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

fr/paris/lutece/plugins/temporarycode/business/ITemporaryCodeDAO.java

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

fr/paris/lutece/plugins/temporarycode/business/TemporaryCode.java

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

fr/paris/lutece/plugins/temporarycode/utils/Constants.java

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

fr/paris/lutece/plugins/temporarycode/utils/TemporaryCodeUtils.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 56–141

Priority 3

fr/paris/lutece/plugins/temporarycode/business/EnumCharacterType.java

Rule Violation Ligne
CommentRequired Public method and constructor comments are required 61–64

fr/paris/lutece/plugins/temporarycode/business/ITemporaryCodeDAO.java

Rule Violation Ligne
TooManyMethods This class has too many methods, consider refactoring it. 46–133

fr/paris/lutece/plugins/temporarycode/business/TemporaryCodeConfigDAO.java

Rule Violation Ligne
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 227–229

fr/paris/lutece/plugins/temporarycode/business/TemporaryCodeDAO.java

Rule Violation Ligne
TooManyMethods This class has too many methods, consider refactoring it. 50–371
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 240–242

fr/paris/lutece/plugins/temporarycode/service/ClearExpiredTemporaryCodeDaemon.java

Rule Violation Ligne
ShortVariable Avoid variables with short names like ts 60

fr/paris/lutece/plugins/temporarycode/service/ITemporaryCodeService.java

Rule Violation Ligne
UnnecessaryModifier Unnecessary modifier 'public' on method 'useTemporaryCode': the method is declared in an interface type 88

fr/paris/lutece/plugins/temporarycode/service/TemporaryCodeService.java

Rule Violation Ligne
NonThreadSafeSingleton Singleton is not thread safe 66–69
ShortVariable Avoid variables with short names like ts 140

fr/paris/lutece/plugins/temporarycode/utils/Constants.java

Rule Violation Ligne
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 53
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 54
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 55
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 56
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 57
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 60
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 61
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 62
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 63
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 66
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 67
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 68
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 69
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 70
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 71

fr/paris/lutece/plugins/temporarycode/utils/TemporaryCodeUtils.java

Rule Violation Ligne
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 68
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 86
ShortVariable Avoid variables with short names like c 96
IdenticalCatchBranches 'catch' branch identical to 'JsonGenerationException' branch 124–127
IdenticalCatchBranches 'catch' branch identical to 'JsonGenerationException' branch 128–131

fr/paris/lutece/plugins/temporarycode/web/AbstractManageCodeJspBean.java

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

fr/paris/lutece/plugins/temporarycode/web/TemporaryCodeConfigJspBean.java

Rule Violation Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 67–328
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 127
DefaultPackage Use explicit scoping instead of the default package private level 144–153
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 145–153
ConfusingTernary Avoid if (x != y) ..; else ..; 172

Priority 4

fr/paris/lutece/plugins/temporarycode/business/TemporaryCode.java

Rule Violation Ligne
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 166–169

fr/paris/lutece/plugins/temporarycode/web/TemporaryCodeConfigJspBean.java

Rule Violation Ligne
UnusedImports Avoid unused imports such as 'org.apache.commons.lang3.StringUtils' 57

Fichiers

fr/paris/lutece/plugins/temporarycode/business/EnumCharacterType.java

Rule Violation Priority Ligne
CommentRequired Public method and constructor comments are required 3 61–64

fr/paris/lutece/plugins/temporarycode/business/ITemporaryCodeConfigDAO.java

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

fr/paris/lutece/plugins/temporarycode/business/ITemporaryCodeDAO.java

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

fr/paris/lutece/plugins/temporarycode/business/TemporaryCode.java

Rule Violation Priority Ligne
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 166–169
FormalParameterNamingConventions The method parameter name '_strComplementaryInfo' doesn't match '[a-z][a-zA-Z0-9]*' 1 192

fr/paris/lutece/plugins/temporarycode/business/TemporaryCodeConfigDAO.java

Rule Violation Priority Ligne
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 227–229

fr/paris/lutece/plugins/temporarycode/business/TemporaryCodeDAO.java

Rule Violation Priority Ligne
TooManyMethods This class has too many methods, consider refactoring it. 3 50–371
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 240–242

fr/paris/lutece/plugins/temporarycode/service/ClearExpiredTemporaryCodeDaemon.java

Rule Violation Priority Ligne
ShortVariable Avoid variables with short names like ts 3 60

fr/paris/lutece/plugins/temporarycode/service/ITemporaryCodeService.java

Rule Violation Priority Ligne
UnnecessaryModifier Unnecessary modifier 'public' on method 'useTemporaryCode': the method is declared in an interface type 3 88

fr/paris/lutece/plugins/temporarycode/service/TemporaryCodeService.java

Rule Violation Priority Ligne
NonThreadSafeSingleton Singleton is not thread safe 3 66–69
ShortVariable Avoid variables with short names like ts 3 140

fr/paris/lutece/plugins/temporarycode/utils/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 42–74
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 53
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 54
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 55
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 56
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 57
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 60
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 61
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 62
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 63
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 66
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 67
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 68
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 69
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 70
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 71

fr/paris/lutece/plugins/temporarycode/utils/TemporaryCodeUtils.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 56–141
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 68
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 86
ShortVariable Avoid variables with short names like c 3 96
IdenticalCatchBranches 'catch' branch identical to 'JsonGenerationException' branch 3 124–127
IdenticalCatchBranches 'catch' branch identical to 'JsonGenerationException' branch 3 128–131

fr/paris/lutece/plugins/temporarycode/web/AbstractManageCodeJspBean.java

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

fr/paris/lutece/plugins/temporarycode/web/TemporaryCodeConfigJspBean.java

Rule Violation Priority Ligne
UnusedImports Avoid unused imports such as 'org.apache.commons.lang3.StringUtils' 4 57
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 67–328
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 127
DefaultPackage Use explicit scoping instead of the default package private level 3 144–153
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 3 145–153
ConfusingTernary Avoid if (x != y) ..; else ..; 3 172