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/geocode/v1/web/rs/service/HttpAccessTransport.java

Rule Violation Ligne
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 150
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 154

fr/paris/lutece/plugins/geocode/v1/web/rs/service/HttpApiManagerAccessTransport.java

Rule Violation Ligne
FieldNamingConventions The constant name '_objectMapper' doesn't match '[A-Z][A-Z_0-9]*' 64

fr/paris/lutece/plugins/geocode/v1/web/rs/util/Constants.java

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

fr/paris/lutece/plugins/geocode/v1/web/service/CustomResponseStatusValidator.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 3860
FieldNamingConventions The static field name 'instance' doesn't match '_[a-z][a-zA-Z0-9]*' 40

Priority 2

fr/paris/lutece/plugins/geocode/v1/web/rs/service/GeoCodeTransportRest.java

Rule Violation Ligne
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 57
GuardLogStatement Logger calls should be surrounded by log level guards. 89
GuardLogStatement Logger calls should be surrounded by log level guards. 104
GuardLogStatement Logger calls should be surrounded by log level guards. 120
GuardLogStatement Logger calls should be surrounded by log level guards. 135

fr/paris/lutece/plugins/geocode/v1/web/rs/service/HttpAccessTransport.java

Rule Violation Ligne
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 59

fr/paris/lutece/plugins/geocode/v1/web/rs/service/HttpApiManagerAccessTransport.java

Rule Violation Ligne
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 63
GuardLogStatement Logger calls should be surrounded by log level guards. 102
GuardLogStatement Logger calls should be surrounded by log level guards. 139

Priority 3

fr/paris/lutece/plugins/geocode/v1/web/rs/dto/City.java

Rule Violation Ligne
CommentRequired Header comments are required 11224

fr/paris/lutece/plugins/geocode/v1/web/rs/dto/Country.java

Rule Violation Ligne
CommentRequired Header comments are required 11103

fr/paris/lutece/plugins/geocode/v1/web/rs/service/AbstractTransportRest.java

Rule Violation Ligne
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 4489

fr/paris/lutece/plugins/geocode/v1/web/rs/service/GeoCodeTransportRest.java

Rule Violation Ligne
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 90
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 105
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 121
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 136

fr/paris/lutece/plugins/geocode/v1/web/rs/service/HttpAccessTransport.java

Rule Violation Ligne
CommentRequired Public method and constructor comments are required 6467
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 92
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 123
ShortVariable Avoid variables with short names like e 141
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 141
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 165
MissingOverride The method 'setApiEndPointUrl(String)' is missing an @Override annotation. 175179
MissingOverride The method 'getApiEndPointUrl()' is missing an @Override annotation. 186190
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 214
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 245
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 254

fr/paris/lutece/plugins/geocode/v1/web/rs/service/HttpApiManagerAccessTransport.java

Rule Violation Ligne
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 98
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 104
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 104
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 105
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 105
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 113
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 120

fr/paris/lutece/plugins/geocode/v1/web/rs/util/Constants.java

Rule Violation Ligne
CommentRequired Header comments are required 344

fr/paris/lutece/plugins/geocode/v1/web/service/CustomResponseStatusValidator.java

Rule Violation Ligne
CommentRequired Header comments are required 3860
CommentRequired Public method and constructor comments are required 4249
NonThreadSafeSingleton Singleton is not thread safe 4447
ShortVariable Avoid variables with short names like i 56

fr/paris/lutece/plugins/geocode/v1/web/service/GeoCodeQualityService.java

Rule Violation Ligne
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 91
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 106
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 121

fr/paris/lutece/plugins/geocode/v1/web/service/IGeoCodeTransportProvider.java

Rule Violation Ligne
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 58
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 70
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 82
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 94

fr/paris/lutece/plugins/geocode/v1/web/service/IHttpTransportProvider.java

Rule Violation Ligne
UnnecessaryModifier Unnecessary modifier 'public' on method 'setApiEndPointUrl': the method is declared in an interface type 52
UnnecessaryModifier Unnecessary modifier 'public' on method 'getApiEndPointUrl': the method is declared in an interface type 59
CommentRequired Public method and constructor comments are required 6163
UnnecessaryModifier Unnecessary modifier 'public' on method 'doGet': the method is declared in an interface type 6163
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 63
UnnecessaryModifier Unnecessary modifier 'public' on method 'doGetList': the method is declared in an interface type 6667
CommentRequired Public method and constructor comments are required 6667
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 67

Priority 4

fr/paris/lutece/plugins/geocode/v1/web/rs/dto/City.java

Rule Violation Ligne
ShortClassName Avoid short class names like City 11224

Fichiers

fr/paris/lutece/plugins/geocode/v1/web/rs/dto/City.java

Rule Violation Priority Ligne
ShortClassName Avoid short class names like City 4 11224
CommentRequired Header comments are required 3 11224

fr/paris/lutece/plugins/geocode/v1/web/rs/dto/Country.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 11103

fr/paris/lutece/plugins/geocode/v1/web/rs/service/AbstractTransportRest.java

Rule Violation Priority Ligne
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 3 4489

fr/paris/lutece/plugins/geocode/v1/web/rs/service/GeoCodeTransportRest.java

Rule Violation Priority Ligne
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 57
GuardLogStatement Logger calls should be surrounded by log level guards. 2 89
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 90
GuardLogStatement Logger calls should be surrounded by log level guards. 2 104
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 105
GuardLogStatement Logger calls should be surrounded by log level guards. 2 120
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 121
GuardLogStatement Logger calls should be surrounded by log level guards. 2 135
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 136

fr/paris/lutece/plugins/geocode/v1/web/rs/service/HttpAccessTransport.java

Rule Violation Priority Ligne
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 59
CommentRequired Public method and constructor comments are required 3 6467
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 92
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 123
ShortVariable Avoid variables with short names like e 3 141
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 141
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 150
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 154
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 165
MissingOverride The method 'setApiEndPointUrl(String)' is missing an @Override annotation. 3 175179
MissingOverride The method 'getApiEndPointUrl()' is missing an @Override annotation. 3 186190
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 214
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 245
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 254

fr/paris/lutece/plugins/geocode/v1/web/rs/service/HttpApiManagerAccessTransport.java

Rule Violation Priority Ligne
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 63
FieldNamingConventions The constant name '_objectMapper' doesn't match '[A-Z][A-Z_0-9]*' 1 64
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 98
GuardLogStatement Logger calls should be surrounded by log level guards. 2 102
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 104
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 104
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 105
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 105
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 113
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 120
GuardLogStatement Logger calls should be surrounded by log level guards. 2 139

fr/paris/lutece/plugins/geocode/v1/web/rs/util/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 344
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 344
CommentRequired Header comments are required 3 344

fr/paris/lutece/plugins/geocode/v1/web/service/CustomResponseStatusValidator.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 3860
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 3860
FieldNamingConventions The static field name 'instance' doesn't match '_[a-z][a-zA-Z0-9]*' 1 40
CommentRequired Public method and constructor comments are required 3 4249
NonThreadSafeSingleton Singleton is not thread safe 3 4447
ShortVariable Avoid variables with short names like i 3 56

fr/paris/lutece/plugins/geocode/v1/web/service/GeoCodeQualityService.java

Rule Violation Priority Ligne
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 91
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 106
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 121

fr/paris/lutece/plugins/geocode/v1/web/service/IGeoCodeTransportProvider.java

Rule Violation Priority Ligne
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 58
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 70
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 82
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 94

fr/paris/lutece/plugins/geocode/v1/web/service/IHttpTransportProvider.java

Rule Violation Priority Ligne
UnnecessaryModifier Unnecessary modifier 'public' on method 'setApiEndPointUrl': the method is declared in an interface type 3 52
UnnecessaryModifier Unnecessary modifier 'public' on method 'getApiEndPointUrl': the method is declared in an interface type 3 59
CommentRequired Public method and constructor comments are required 3 6163
UnnecessaryModifier Unnecessary modifier 'public' on method 'doGet': the method is declared in an interface type 3 6163
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 63
UnnecessaryModifier Unnecessary modifier 'public' on method 'doGetList': the method is declared in an interface type 3 6667
CommentRequired Public method and constructor comments are required 3 6667
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 67