Fork me on GitHub

Résultats PMD

Le document suivant contient les résultats de PMD 6.13.0.

Violations By Priority

Priority 3

fr/paris/lutece/plugins/directories/modules/solr/indexer/SolrDocIndexer.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34340
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 90
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 115
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 116
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 117
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 133
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 143
UnnecessaryWrapperObjectCreation Unnecessary wrapper object creation 165
ConfusingTernary Avoid if (x != y) ..; else ..; 185192
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 200
IdenticalCatchBranches 'catch' branch identical to 'SAXException' branch 202205
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 204
ConfusingTernary Avoid if (x != y) ..; else ..; 231258
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 243
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 255
ShortVariable Avoid variables with short names like sb 263
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 306
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'lstFields' 307
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 316
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'lstItems' 317
ShortVariable Avoid variables with short names like sb 335

Priority 4

fr/paris/lutece/plugins/directories/modules/solr/indexer/SolrDocIndexer.java

Rule Violation Ligne
UnusedImports Avoid unused imports such as 'javassist.expr.NewArray' 51
UnusedImports Avoid unused imports such as 'java.text.Normalizer' 62
UnusedImports Avoid unused imports such as 'java.util.regex.Pattern' 69

Fichiers

fr/paris/lutece/plugins/directories/modules/solr/indexer/SolrDocIndexer.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34340
UnusedImports Avoid unused imports such as 'javassist.expr.NewArray' 4 51
UnusedImports Avoid unused imports such as 'java.text.Normalizer' 4 62
UnusedImports Avoid unused imports such as 'java.util.regex.Pattern' 4 69
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 90
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 115
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 116
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 117
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 133
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 143
UnnecessaryWrapperObjectCreation Unnecessary wrapper object creation 3 165
ConfusingTernary Avoid if (x != y) ..; else ..; 3 185192
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 200
IdenticalCatchBranches 'catch' branch identical to 'SAXException' branch 3 202205
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 204
ConfusingTernary Avoid if (x != y) ..; else ..; 3 231258
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 243
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 255
ShortVariable Avoid variables with short names like sb 3 263
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 306
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'lstFields' 3 307
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 316
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'lstItems' 3 317
ShortVariable Avoid variables with short names like sb 3 335