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/progressmanager/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)' 3973

fr/paris/lutece/plugins/progressmanager/rs/ProgressFeedRest.java

Rule Violation Line
FieldNamingConventions The final field name '_logger' doesn't match '[a-z][a-zA-Z0-9]*' 57
LocalVariableNamingConventions The local variable name '_service' doesn't match '[a-z][a-zA-Z0-9]*' 90
LocalVariableNamingConventions The local variable name '_service' doesn't match '[a-z][a-zA-Z0-9]*' 134
LocalVariableNamingConventions The local variable name '_service' doesn't match '[a-z][a-zA-Z0-9]*' 178
LocalVariableNamingConventions The local variable name '_service' doesn't match '[a-z][a-zA-Z0-9]*' 222

Priority 2

fr/paris/lutece/plugins/progressmanager/rs/ProgressFeedRest.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 57

Priority 3

fr/paris/lutece/plugins/progressmanager/business/ProgressFeed.java

Rule Violation Line
RedundantFieldInitializer Avoid using redundant field initializer for '_nNbItemTotal' 51
RedundantFieldInitializer Avoid using redundant field initializer for '_nNbItemSuccess' 53
RedundantFieldInitializer Avoid using redundant field initializer for '_nNbItemFailure' 55
ImmutableField Private field '_report' could be made final; it is only initialized in the declaration or constructor. 57
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 179

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

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

fr/paris/lutece/plugins/progressmanager/service/ProgressManagerService.java

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 6977
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 86
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 140146
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 154160
ConfusingTernary Avoid if (x != y) ..; else ..; 260268

fr/paris/lutece/plugins/progressmanager/web/ProgressManagerJspBean.java

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

Files

fr/paris/lutece/plugins/progressmanager/business/ProgressFeed.java

Rule Violation Priority Line
RedundantFieldInitializer Avoid using redundant field initializer for '_nNbItemTotal' 3 51
RedundantFieldInitializer Avoid using redundant field initializer for '_nNbItemSuccess' 3 53
RedundantFieldInitializer Avoid using redundant field initializer for '_nNbItemFailure' 3 55
ImmutableField Private field '_report' could be made final; it is only initialized in the declaration or constructor. 3 57
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 3 179

fr/paris/lutece/plugins/progressmanager/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 3973
ShortVariable Avoid variables with short names like ID 3 45

fr/paris/lutece/plugins/progressmanager/rs/ProgressFeedRest.java

Rule Violation Priority Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 57
FieldNamingConventions The final field name '_logger' doesn't match '[a-z][a-zA-Z0-9]*' 1 57
LocalVariableNamingConventions The local variable name '_service' doesn't match '[a-z][a-zA-Z0-9]*' 1 90
LocalVariableNamingConventions The local variable name '_service' doesn't match '[a-z][a-zA-Z0-9]*' 1 134
LocalVariableNamingConventions The local variable name '_service' doesn't match '[a-z][a-zA-Z0-9]*' 1 178
LocalVariableNamingConventions The local variable name '_service' doesn't match '[a-z][a-zA-Z0-9]*' 1 222

fr/paris/lutece/plugins/progressmanager/service/ProgressManagerService.java

Rule Violation Priority Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 6977
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 86
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 140146
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 154160
ConfusingTernary Avoid if (x != y) ..; else ..; 3 260268

fr/paris/lutece/plugins/progressmanager/web/ProgressManagerJspBean.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 85