Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.13.0.

Violations By Priority

Priority 1

fr/paris/lutece/plugins/rest/modules/healthcheck/business/HealthCheckResponseBuilder.java

Rule Violation Line
FieldNamingConventions The field name 'name' doesn't match '_[a-z][a-zA-Z0-9]*' 48
FieldNamingConventions The field name 'status' doesn't match '_[a-z][a-zA-Z0-9]*' 50

fr/paris/lutece/plugins/rest/modules/healthcheck/business/impl/CpuUsageCheck.java

Rule Violation Line
FieldNamingConventions The static field name 'CPU_MAX' doesn't match '_[a-z][a-zA-Z0-9]*' 46

fr/paris/lutece/plugins/rest/modules/healthcheck/rs/Constants.java

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

fr/paris/lutece/plugins/rest/modules/healthcheck/service/HealthCheckService.java

Rule Violation Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 45106

Priority 3

fr/paris/lutece/plugins/rest/modules/healthcheck/business/HealthCheckResponseBuilder.java

Rule Violation Line
CommentRequired Header comments are required 45118
AvoidFieldNameMatchingMethodName Field name has the same name as a method 48
AvoidFieldNameMatchingMethodName Field status has the same name as a method 50
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 52
ShortMethodName Avoid using short method names 83
ShortVariable Avoid variables with short names like up 97

fr/paris/lutece/plugins/rest/modules/healthcheck/business/LuteceHealthCheckResponseProvider.java

Rule Violation Line
CommentRequired Header comments are required 3947

fr/paris/lutece/plugins/rest/modules/healthcheck/business/impl/CpuUsageCheck.java

Rule Violation Line
CommentRequired Header comments are required 4465
UnusedPrivateField Avoid unused private fields such as 'CPU_MAX'. 46
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 44 characters appended. 57

fr/paris/lutece/plugins/rest/modules/healthcheck/business/impl/DBCheck.java

Rule Violation Line
CommentRequired Header comments are required 4570
AssignmentToNonFinalStatic Possible unsafe assignment to a non-final static field in a constructor. 49

fr/paris/lutece/plugins/rest/modules/healthcheck/business/impl/DBCheckDAO.java

Rule Violation Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 68

fr/paris/lutece/plugins/rest/modules/healthcheck/business/impl/ForcedStatusCheck.java

Rule Violation Line
CommentRequired Header comments are required 4562

fr/paris/lutece/plugins/rest/modules/healthcheck/business/impl/MemoryUsageCheck.java

Rule Violation Line
CommentRequired Header comments are required 4460
ShortVariable Avoid variables with short names like sb 54

fr/paris/lutece/plugins/rest/modules/healthcheck/rs/Constants.java

Rule Violation Line
ShortVariable Avoid variables with short names like ID 45

fr/paris/lutece/plugins/rest/modules/healthcheck/rs/SwaggerRest.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 141
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 151
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 154

fr/paris/lutece/plugins/rest/modules/healthcheck/service/HealthCheckService.java

Rule Violation Line
CommentRequired Header comments are required 45106
AssignmentToNonFinalStatic Possible unsafe assignment to a non-final static field in a constructor. 50
NonThreadSafeSingleton Singleton is not thread safe 6770

Files

fr/paris/lutece/plugins/rest/modules/healthcheck/business/HealthCheckResponseBuilder.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 45118
FieldNamingConventions The field name 'name' doesn't match '_[a-z][a-zA-Z0-9]*' 1 48
AvoidFieldNameMatchingMethodName Field name has the same name as a method 3 48
AvoidFieldNameMatchingMethodName Field status has the same name as a method 3 50
FieldNamingConventions The field name 'status' doesn't match '_[a-z][a-zA-Z0-9]*' 1 50
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 52
ShortMethodName Avoid using short method names 3 83
ShortVariable Avoid variables with short names like up 3 97

fr/paris/lutece/plugins/rest/modules/healthcheck/business/LuteceHealthCheckResponseProvider.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3947

fr/paris/lutece/plugins/rest/modules/healthcheck/business/impl/CpuUsageCheck.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4465
UnusedPrivateField Avoid unused private fields such as 'CPU_MAX'. 3 46
FieldNamingConventions The static field name 'CPU_MAX' doesn't match '_[a-z][a-zA-Z0-9]*' 1 46
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 44 characters appended. 3 57

fr/paris/lutece/plugins/rest/modules/healthcheck/business/impl/DBCheck.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4570
AssignmentToNonFinalStatic Possible unsafe assignment to a non-final static field in a constructor. 3 49

fr/paris/lutece/plugins/rest/modules/healthcheck/business/impl/DBCheckDAO.java

Rule Violation Priority Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 68

fr/paris/lutece/plugins/rest/modules/healthcheck/business/impl/ForcedStatusCheck.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4562

fr/paris/lutece/plugins/rest/modules/healthcheck/business/impl/MemoryUsageCheck.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4460
ShortVariable Avoid variables with short names like sb 3 54

fr/paris/lutece/plugins/rest/modules/healthcheck/rs/Constants.java

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

fr/paris/lutece/plugins/rest/modules/healthcheck/rs/SwaggerRest.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 141
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 151
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 154

fr/paris/lutece/plugins/rest/modules/healthcheck/service/HealthCheckService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 45106
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 45106
AssignmentToNonFinalStatic Possible unsafe assignment to a non-final static field in a constructor. 3 50
NonThreadSafeSingleton Singleton is not thread safe 3 6770