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/helpdesk/modules/solr/search/SolrHelpdeskIndexer.java

Rule Violation Ligne
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 223

Priority 3

fr/paris/lutece/plugins/helpdesk/modules/solr/search/SolrHelpdeskIndexer.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34478
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 97
CommentRequired Public method and constructor comments are required 100105
MissingOverride The method 'getDescription()' is missing an @Override annotation. 110113
MissingOverride The method 'getName()' is missing an @Override annotation. 118121
MissingOverride The method 'getVersion()' is missing an @Override annotation. 126129
MissingOverride The method 'indexDocuments()' is missing an @Override annotation. 134157
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 137
MissingOverride The method 'getDocuments(String)' is missing an @Override annotation. 164229
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 166
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 206218
MissingOverride The method 'isEnable()' is missing an @Override annotation. 234237
MissingOverride The method 'getAdditionalFields()' is missing an @Override annotation. 242260
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 244
AvoidPrintStackTrace Avoid printStackTrace(); use a logger call instead. 359
IdenticalCatchBranches 'catch' branch identical to 'SAXException' branch 360362
AvoidPrintStackTrace Avoid printStackTrace(); use a logger call instead. 361
UnusedFormalParameter Avoid unused method parameters such as 'plugin'. 389
AvoidPrintStackTrace Avoid printStackTrace(); use a logger call instead. 412
IdenticalCatchBranches 'catch' branch identical to 'SAXException' branch 413415
AvoidPrintStackTrace Avoid printStackTrace(); use a logger call instead. 414
StringToString Avoid calling toString() on String objects; this is unnecessary. 417
UnusedFormalParameter Avoid unused method parameters such as 'plugin'. 441
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 445
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 446
MissingOverride The method 'getResourcesName()' is missing an @Override annotation. 455458
MissingOverride The method 'getResourceUid(String, String)' is missing an @Override annotation. 463477
ShortVariable Avoid variables with short names like sb 465

fr/paris/lutece/plugins/helpdesk/modules/solr/service/HelpdeskSolrPlugin.java

Rule Violation Ligne
MissingOverride The method 'init()' is missing an @Override annotation. 4953

Priority 4

fr/paris/lutece/plugins/helpdesk/modules/solr/search/SolrHelpdeskIndexer.java

Rule Violation Ligne
UnusedImports Avoid unused imports such as 'java.io.Reader' 39
UnusedImports Avoid unused imports such as 'java.io.StringReader' 40

Fichiers

fr/paris/lutece/plugins/helpdesk/modules/solr/search/SolrHelpdeskIndexer.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34478
UnusedImports Avoid unused imports such as 'java.io.Reader' 4 39
UnusedImports Avoid unused imports such as 'java.io.StringReader' 4 40
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 97
CommentRequired Public method and constructor comments are required 3 100105
MissingOverride The method 'getDescription()' is missing an @Override annotation. 3 110113
MissingOverride The method 'getName()' is missing an @Override annotation. 3 118121
MissingOverride The method 'getVersion()' is missing an @Override annotation. 3 126129
MissingOverride The method 'indexDocuments()' is missing an @Override annotation. 3 134157
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 137
MissingOverride The method 'getDocuments(String)' is missing an @Override annotation. 3 164229
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 166
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 206218
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 223
MissingOverride The method 'isEnable()' is missing an @Override annotation. 3 234237
MissingOverride The method 'getAdditionalFields()' is missing an @Override annotation. 3 242260
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 244
AvoidPrintStackTrace Avoid printStackTrace(); use a logger call instead. 3 359
IdenticalCatchBranches 'catch' branch identical to 'SAXException' branch 3 360362
AvoidPrintStackTrace Avoid printStackTrace(); use a logger call instead. 3 361
UnusedFormalParameter Avoid unused method parameters such as 'plugin'. 3 389
AvoidPrintStackTrace Avoid printStackTrace(); use a logger call instead. 3 412
IdenticalCatchBranches 'catch' branch identical to 'SAXException' branch 3 413415
AvoidPrintStackTrace Avoid printStackTrace(); use a logger call instead. 3 414
StringToString Avoid calling toString() on String objects; this is unnecessary. 3 417
UnusedFormalParameter Avoid unused method parameters such as 'plugin'. 3 441
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 445
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 446
MissingOverride The method 'getResourcesName()' is missing an @Override annotation. 3 455458
MissingOverride The method 'getResourceUid(String, String)' is missing an @Override annotation. 3 463477
ShortVariable Avoid variables with short names like sb 3 465

fr/paris/lutece/plugins/helpdesk/modules/solr/service/HelpdeskSolrPlugin.java

Rule Violation Priority Ligne
MissingOverride The method 'init()' is missing an @Override annotation. 3 4953