Résultats PMD
Le document suivant contient les résultats de PMD 6.13.0.
Violations By Priority
Priority 1
fr/paris/lutece/plugins/rest/service/RestConstants.java
Rule |
Violation |
Ligne |
ClassNamingConventions |
The utility class name 'RestConstants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' |
39–58 |
fr/paris/lutece/plugins/rest/service/mediatype/RestMediaTypes.java
Rule |
Violation |
Ligne |
ClassNamingConventions |
The utility class name 'RestMediaTypes' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' |
44–63 |
fr/paris/lutece/plugins/rest/service/param/AbstractParam.java
fr/paris/lutece/plugins/rest/service/resourceinfo/AbstractResourceInfoProvider.java
Rule |
Violation |
Ligne |
AbstractClassWithoutAnyMethod |
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. |
41–43 |
fr/paris/lutece/plugins/rest/service/resourceinfo/ResourceInfoManager.java
Rule |
Violation |
Ligne |
ClassNamingConventions |
The utility class name 'ResourceInfoManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' |
48–88 |
Priority 3
fr/paris/lutece/plugins/rest/business/resourceinfo/AbstractResourceInfo.java
fr/paris/lutece/plugins/rest/business/resourceinfo/ResourceInfo.java
fr/paris/lutece/plugins/rest/service/LuteceApplicationResourceConfig.java
fr/paris/lutece/plugins/rest/service/LuteceJerseySpringServlet.java
fr/paris/lutece/plugins/rest/service/mapper/GenericUncaughtExceptionMapper.java
fr/paris/lutece/plugins/rest/service/mapper/GenericUncaughtJerseyExceptionMapper.java
Rule |
Violation |
Ligne |
CommentRequired |
Protected method constructor comments are required |
63 |
fr/paris/lutece/plugins/rest/service/param/AbstractParam.java
fr/paris/lutece/plugins/rest/service/resourceinfo/ResourceInfoManager.java
Rule |
Violation |
Ligne |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
76 |
fr/paris/lutece/plugins/rest/service/writers/AbstractWriter.java
Rule |
Violation |
Ligne |
MissingOverride |
The method 'getSize(List, Class, Type, Annotation, MediaType)' is missing an @Override annotation. |
92–95 |
MissingOverride |
The method 'writeTo(List, Class, Type, Annotation, MediaType, MultivaluedMap, OutputStream)' is missing an @Override annotation. |
100–158 |
CyclomaticComplexity |
The method 'writeTo(List, Class, Type, Annotation, MediaType, MultivaluedMap, OutputStream)' has a cyclomatic complexity of 11. |
100–158 |
AvoidUncheckedExceptionsInSignatures |
A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause |
101 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
103–157 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
105 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
114–142 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
116 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
120–127 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
130 |
fr/paris/lutece/plugins/rest/util/xml/XMLUtil.java
Priority 4
fr/paris/lutece/plugins/rest/service/LuteceJerseySpringServlet.java
Rule |
Violation |
Ligne |
UnusedImports |
Avoid unused imports such as 'fr.paris.lutece.plugins.rest.service.mediatype.MediaTypeMapping' |
36 |
UnusedImports |
Avoid unused imports such as 'fr.paris.lutece.plugins.rest.service.mediatype.RestMediaTypes' |
37 |
UnusedImports |
Avoid unused imports such as 'org.apache.commons.lang3.StringUtils' |
41 |
UnusedImports |
Avoid unused imports such as 'org.apache.log4j.Level' |
43 |
UnusedImports |
Avoid unused imports such as 'org.glassfish.jersey.server.ResourceConfig' |
46 |
UnusedImports |
Avoid unused imports such as 'java.util.List' |
55 |
UnusedImports |
Avoid unused imports such as 'java.util.Map' |
56 |
Fichiers
fr/paris/lutece/plugins/rest/business/resourceinfo/AbstractResourceInfo.java
fr/paris/lutece/plugins/rest/business/resourceinfo/ResourceInfo.java
fr/paris/lutece/plugins/rest/service/LuteceApplicationResourceConfig.java
fr/paris/lutece/plugins/rest/service/LuteceJerseySpringServlet.java
Rule |
Violation |
Priority |
Ligne |
UnusedImports |
Avoid unused imports such as 'fr.paris.lutece.plugins.rest.service.mediatype.MediaTypeMapping' |
4 |
36 |
UnusedImports |
Avoid unused imports such as 'fr.paris.lutece.plugins.rest.service.mediatype.RestMediaTypes' |
4 |
37 |
UnusedImports |
Avoid unused imports such as 'org.apache.commons.lang3.StringUtils' |
4 |
41 |
UnusedImports |
Avoid unused imports such as 'org.apache.log4j.Level' |
4 |
43 |
UnusedImports |
Avoid unused imports such as 'org.glassfish.jersey.server.ResourceConfig' |
4 |
46 |
UnusedImports |
Avoid unused imports such as 'java.util.List' |
4 |
55 |
UnusedImports |
Avoid unused imports such as 'java.util.Map' |
4 |
56 |
DefaultPackage |
Use explicit scoping instead of the default package private level |
3 |
76 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the LOGGER field if you want a default access modifier |
3 |
76 |
ShortVariable |
Avoid variables with short names like ra |
3 |
143 |
fr/paris/lutece/plugins/rest/service/RestConstants.java
Rule |
Violation |
Priority |
Ligne |
ClassNamingConventions |
The utility class name 'RestConstants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' |
1 |
39–58 |
fr/paris/lutece/plugins/rest/service/mapper/GenericUncaughtExceptionMapper.java
fr/paris/lutece/plugins/rest/service/mapper/GenericUncaughtJerseyExceptionMapper.java
Rule |
Violation |
Priority |
Ligne |
CommentRequired |
Protected method constructor comments are required |
3 |
63 |
fr/paris/lutece/plugins/rest/service/mediatype/RestMediaTypes.java
Rule |
Violation |
Priority |
Ligne |
ClassNamingConventions |
The utility class name 'RestMediaTypes' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' |
1 |
44–63 |
fr/paris/lutece/plugins/rest/service/param/AbstractParam.java
fr/paris/lutece/plugins/rest/service/resourceinfo/AbstractResourceInfoProvider.java
Rule |
Violation |
Priority |
Ligne |
AbstractClassWithoutAnyMethod |
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. |
1 |
41–43 |
fr/paris/lutece/plugins/rest/service/resourceinfo/ResourceInfoManager.java
Rule |
Violation |
Priority |
Ligne |
ClassNamingConventions |
The utility class name 'ResourceInfoManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' |
1 |
48–88 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
3 |
76 |
fr/paris/lutece/plugins/rest/service/writers/AbstractWriter.java
Rule |
Violation |
Priority |
Ligne |
MissingOverride |
The method 'getSize(List, Class, Type, Annotation, MediaType)' is missing an @Override annotation. |
3 |
92–95 |
MissingOverride |
The method 'writeTo(List, Class, Type, Annotation, MediaType, MultivaluedMap, OutputStream)' is missing an @Override annotation. |
3 |
100–158 |
CyclomaticComplexity |
The method 'writeTo(List, Class, Type, Annotation, MediaType, MultivaluedMap, OutputStream)' has a cyclomatic complexity of 11. |
3 |
100–158 |
AvoidUncheckedExceptionsInSignatures |
A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause |
3 |
101 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
3 |
103–157 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
105 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
3 |
114–142 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
116 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
3 |
120–127 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
130 |
fr/paris/lutece/plugins/rest/util/xml/XMLUtil.java