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/doc/converter/collection/ItextDocCollectionPdfConverter.java

Rule Violation Ligne
AvoidFileStream Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter 119

fr/paris/lutece/plugins/doc/converter/exception/ConversionException.java

Rule Violation Ligne
FieldNamingConventions The final field name '_itemFailed' doesn't match '[a-z][a-zA-Z0-9]*' 46

Priority 3

fr/paris/lutece/plugins/doc/converter/collection/AbstractDocCollectionPdfConverter.java

Rule Violation Ligne
DefaultPackage Use explicit scoping instead of the default package private level 46
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the CONST_DOT field if you want a default access modifier 46
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 63
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 64
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 65
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 66

fr/paris/lutece/plugins/doc/converter/collection/DocCollectionPdfConverter.java

Rule Violation Ligne
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 80
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 104
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 106

fr/paris/lutece/plugins/doc/converter/collection/IDocCollectionConverter.java

Rule Violation Ligne
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 61

fr/paris/lutece/plugins/doc/converter/collection/ItextDocCollectionPdfConverter.java

Rule Violation Ligne
DefaultPackage Use explicit scoping instead of the default package private level 59
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the CONST_DOT field if you want a default access modifier 59
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 70
IdenticalCatchBranches 'catch' branch identical to 'DocumentException' branch 8285

fr/paris/lutece/plugins/doc/converter/collection/JodDocCollectionPdfConverter.java

Rule Violation Ligne
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 58
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 66

fr/paris/lutece/plugins/doc/converter/collection/config/DocConverterConfiguration.java

Rule Violation Ligne
DataClass The class 'DocConverterConfiguration' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=6, WMC=6) 39111

fr/paris/lutece/plugins/doc/converter/file/FileItem.java

Rule Violation Ligne
DataClass The class 'FileItem' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=5) 42101

fr/paris/lutece/plugins/doc/converter/jod/JodConverterInstance.java

Rule Violation Ligne
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 74
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 101
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 132

Fichiers

fr/paris/lutece/plugins/doc/converter/collection/AbstractDocCollectionPdfConverter.java

Rule Violation Priority Ligne
DefaultPackage Use explicit scoping instead of the default package private level 3 46
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the CONST_DOT field if you want a default access modifier 3 46
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 63
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 64
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 65
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 66

fr/paris/lutece/plugins/doc/converter/collection/DocCollectionPdfConverter.java

Rule Violation Priority Ligne
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 3 80
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 3 104
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 106

fr/paris/lutece/plugins/doc/converter/collection/IDocCollectionConverter.java

Rule Violation Priority Ligne
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 61

fr/paris/lutece/plugins/doc/converter/collection/ItextDocCollectionPdfConverter.java

Rule Violation Priority Ligne
DefaultPackage Use explicit scoping instead of the default package private level 3 59
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the CONST_DOT field if you want a default access modifier 3 59
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 3 70
IdenticalCatchBranches 'catch' branch identical to 'DocumentException' branch 3 8285
AvoidFileStream Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter 1 119

fr/paris/lutece/plugins/doc/converter/collection/JodDocCollectionPdfConverter.java

Rule Violation Priority Ligne
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 3 58
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 66

fr/paris/lutece/plugins/doc/converter/collection/config/DocConverterConfiguration.java

Rule Violation Priority Ligne
DataClass The class 'DocConverterConfiguration' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=6, WMC=6) 3 39111

fr/paris/lutece/plugins/doc/converter/exception/ConversionException.java

Rule Violation Priority Ligne
FieldNamingConventions The final field name '_itemFailed' doesn't match '[a-z][a-zA-Z0-9]*' 1 46

fr/paris/lutece/plugins/doc/converter/file/FileItem.java

Rule Violation Priority Ligne
DataClass The class 'FileItem' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=5) 3 42101

fr/paris/lutece/plugins/doc/converter/jod/JodConverterInstance.java

Rule Violation Priority Ligne
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 74
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 101
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 132