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/document/modules/geoloc/service/DocumentIconProvider.java

Rule Violation Line
LocalVariableNamingConventions The local variable name '_attribute' doesn't match '[a-z][a-zA-Z0-9]*' 58

fr/paris/lutece/plugins/document/modules/geoloc/service/DocumentPopupContentProvider.java

Rule Violation Line
LocalVariableNamingConventions The local variable name '_attribute' doesn't match '[a-z][a-zA-Z0-9]*' 183

Priority 2

fr/paris/lutece/plugins/document/modules/geoloc/service/DocumentPopupContentProvider.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 135
GuardLogStatement Logger calls should be surrounded by log level guards. 148149
GuardLogStatement Logger calls should be surrounded by log level guards. 161162

Priority 3

fr/paris/lutece/plugins/document/modules/geoloc/service/DocumentIconProvider.java

Rule Violation Line
CommentRequired Header comments are required 4584
CommentRequired Public method and constructor comments are required 5083
MissingOverride The method 'getIcon(String)' is missing an @Override annotation. 5083
UseIndexOfChar String.indexOf(char) is faster than String.indexOf(String). 52
UseIndexOfChar String.indexOf(char) is faster than String.indexOf(String). 53
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 77

fr/paris/lutece/plugins/document/modules/geoloc/service/DocumentPopupContentProvider.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34271
CommentRequired Header comments are required 70271
UnusedPrivateField Avoid unused private fields such as 'PARAMETER_PLUGIN_NAME'. 87
UnusedPrivateField Avoid unused private fields such as 'PARAMETER_PORTLET'. 88
NPathComplexity The method 'getPopup(HttpServletRequest, String, String)' has an NPath complexity of 912384 90270
ExcessiveMethodLength Avoid really long methods. 90270
NcssCount The method 'getPopup(HttpServletRequest, String, String)' has a NCSS line count of 87. 90270
CyclomaticComplexity The method 'getPopup(HttpServletRequest, String, String)' has a cyclomatic complexity of 26. 90270
MissingOverride The method 'getPopup(HttpServletRequest, String, String)' is missing an @Override annotation. 90270
CommentRequired Public method and constructor comments are required 90270
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 117
ShortVariable Avoid variables with short names like p 131
CollapsibleIfStatements These nested if statements could be combined 146152
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 146152
CollapsibleIfStatements These nested if statements could be combined 159165
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 159165
ConfusingTernary Avoid if (x != y) ..; else ..; 221
ConfusingTernary Avoid if (x != y) ..; else ..; 224
ConfusingTernary Avoid if (x != y) ..; else ..; 227
ConfusingTernary Avoid if (x != y) ..; else ..; 230
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 242
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 242
ConfusingTernary Avoid if (x != y) ..; else ..; 250

fr/paris/lutece/plugins/document/modules/geoloc/service/attributes/GeolocManager.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'TAG_GEOLOC_RESOURCE'. 78
MissingOverride The method 'getCreateTemplate()' is missing an @Override annotation. 8588
MissingOverride The method 'getModifyTemplate()' is missing an @Override annotation. 9598
MissingOverride The method 'getCreateParametersTemplate()' is missing an @Override annotation. 105108
MissingOverride The method 'getModifyParametersTemplate()' is missing an @Override annotation. 115118
MissingOverride The method 'getCreateParametersFormHtml(List, Locale)' is missing an @Override annotation. 123130
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 125
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 125
MissingOverride The method 'getModifyParametersFormHtml(Locale, int)' is missing an @Override annotation. 135142
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 137
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 137
MissingOverride The method 'validateValue(int, String, Locale)' is missing an @Override annotation. 147198
ConfusingTernary Avoid if (x != y) ..; else ..; 171193
ShortVariable Avoid variables with short names like it 177
MissingOverride The method 'getAttributeXmlValue(Document, DocumentAttribute)' is missing an @Override annotation. 209231

Priority 4

fr/paris/lutece/plugins/document/modules/geoloc/service/DocumentPopupContentProvider.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.document.business.portlet.DocumentListPortletHome' 42

Files

fr/paris/lutece/plugins/document/modules/geoloc/service/DocumentIconProvider.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4584
CommentRequired Public method and constructor comments are required 3 5083
MissingOverride The method 'getIcon(String)' is missing an @Override annotation. 3 5083
UseIndexOfChar String.indexOf(char) is faster than String.indexOf(String). 3 52
UseIndexOfChar String.indexOf(char) is faster than String.indexOf(String). 3 53
LocalVariableNamingConventions The local variable name '_attribute' doesn't match '[a-z][a-zA-Z0-9]*' 1 58
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 3 77

fr/paris/lutece/plugins/document/modules/geoloc/service/DocumentPopupContentProvider.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34271
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.document.business.portlet.DocumentListPortletHome' 4 42
CommentRequired Header comments are required 3 70271
UnusedPrivateField Avoid unused private fields such as 'PARAMETER_PLUGIN_NAME'. 3 87
UnusedPrivateField Avoid unused private fields such as 'PARAMETER_PORTLET'. 3 88
NPathComplexity The method 'getPopup(HttpServletRequest, String, String)' has an NPath complexity of 912384 3 90270
ExcessiveMethodLength Avoid really long methods. 3 90270
NcssCount The method 'getPopup(HttpServletRequest, String, String)' has a NCSS line count of 87. 3 90270
CyclomaticComplexity The method 'getPopup(HttpServletRequest, String, String)' has a cyclomatic complexity of 26. 3 90270
MissingOverride The method 'getPopup(HttpServletRequest, String, String)' is missing an @Override annotation. 3 90270
CommentRequired Public method and constructor comments are required 3 90270
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 3 117
ShortVariable Avoid variables with short names like p 3 131
GuardLogStatement Logger calls should be surrounded by log level guards. 2 135
CollapsibleIfStatements These nested if statements could be combined 3 146152
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 146152
GuardLogStatement Logger calls should be surrounded by log level guards. 2 148149
CollapsibleIfStatements These nested if statements could be combined 3 159165
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 159165
GuardLogStatement Logger calls should be surrounded by log level guards. 2 161162
LocalVariableNamingConventions The local variable name '_attribute' doesn't match '[a-z][a-zA-Z0-9]*' 1 183
ConfusingTernary Avoid if (x != y) ..; else ..; 3 221
ConfusingTernary Avoid if (x != y) ..; else ..; 3 224
ConfusingTernary Avoid if (x != y) ..; else ..; 3 227
ConfusingTernary Avoid if (x != y) ..; else ..; 3 230
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 242
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 242
ConfusingTernary Avoid if (x != y) ..; else ..; 3 250

fr/paris/lutece/plugins/document/modules/geoloc/service/attributes/GeolocManager.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'TAG_GEOLOC_RESOURCE'. 3 78
MissingOverride The method 'getCreateTemplate()' is missing an @Override annotation. 3 8588
MissingOverride The method 'getModifyTemplate()' is missing an @Override annotation. 3 9598
MissingOverride The method 'getCreateParametersTemplate()' is missing an @Override annotation. 3 105108
MissingOverride The method 'getModifyParametersTemplate()' is missing an @Override annotation. 3 115118
MissingOverride The method 'getCreateParametersFormHtml(List, Locale)' is missing an @Override annotation. 3 123130
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 125
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 125
MissingOverride The method 'getModifyParametersFormHtml(Locale, int)' is missing an @Override annotation. 3 135142
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 137
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 137
MissingOverride The method 'validateValue(int, String, Locale)' is missing an @Override annotation. 3 147198
ConfusingTernary Avoid if (x != y) ..; else ..; 3 171193
ShortVariable Avoid variables with short names like it 3 177
MissingOverride The method 'getAttributeXmlValue(Document, DocumentAttribute)' is missing an @Override annotation. 3 209231