Le document suivant contient les résultats de PMD 6.13.0.
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like rt | 66 |
ShortVariable | Avoid variables with short names like p | 73 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like rt | 69 |
ShortVariable | Avoid variables with short names like p | 76 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryModifier | Unnecessary modifiers 'public static final' on field 'BEAN_NAME': the field is declared in an interface type | 47 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–306 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 105 |
ShortVariable | Avoid variables with short names like os | 122 |
CyclomaticComplexity | The method 'safeImage(FileItem)' has a cyclomatic complexity of 22. | 139–291 |
ExcessiveMethodLength | Avoid really long methods. | 139–291 |
NPathComplexity | The method 'safeImage(FileItem)' has an NPath complexity of 290 | 139–291 |
NcssCount | The method 'safeImage(FileItem)' has a NCSS line count of 72. | 139–291 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 154–172 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 157–165 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 177–184 |
ShortVariable | Avoid variables with short names like bg | 206 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 212–276 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 284 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–409 |
CommentRequired | Header comments are required | 75–409 |
CommentRequired | Public method and constructor comments are required | 131–141 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 134 |
CommentRequired | Public method and constructor comments are required | 144–159 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 152 |
CommentRequired | Public method and constructor comments are required | 162–186 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 164 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 165 |
CommentRequired | Public method and constructor comments are required | 189–205 |
CommentRequired | Public method and constructor comments are required | 208–224 |
CommentRequired | Public method and constructor comments are required | 227–245 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 261 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 262 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 262 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 349 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 350 |
CommentRequired | Public method and constructor comments are required | 367–381 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 369 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 397 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 64–313 |
ImmutableField | Private field '_imageService' could be made final; it is only initialized in the declaration or constructor. | 94 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 115 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 137 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 138 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 154 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 186 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 213 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 240 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 241 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 242 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 259 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 109 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 138 |
Rule | Violation | Ligne |
---|---|---|
UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppPropertiesService' | 41 |
UnusedImports | Avoid unused imports such as 'com.google.common.collect.Lists' | 45 |
Rule | Violation | Ligne |
---|---|---|
UnusedImports | Avoid unused imports such as 'com.rometools.rome.io.impl.Base64' | 48 |
UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.service.security.RsaService' | 61 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppPropertiesService' | 4 | 41 |
UnusedImports | Avoid unused imports such as 'com.google.common.collect.Lists' | 4 | 45 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortVariable | Avoid variables with short names like rt | 3 | 66 |
ShortVariable | Avoid variables with short names like p | 3 | 73 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortVariable | Avoid variables with short names like rt | 3 | 69 |
ShortVariable | Avoid variables with short names like p | 3 | 76 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnnecessaryModifier | Unnecessary modifiers 'public static final' on field 'BEAN_NAME': the field is declared in an interface type | 3 | 47 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–306 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 105 |
ShortVariable | Avoid variables with short names like os | 3 | 122 |
CyclomaticComplexity | The method 'safeImage(FileItem)' has a cyclomatic complexity of 22. | 3 | 139–291 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 139–291 |
NPathComplexity | The method 'safeImage(FileItem)' has an NPath complexity of 290 | 3 | 139–291 |
NcssCount | The method 'safeImage(FileItem)' has a NCSS line count of 72. | 3 | 139–291 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 154–172 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 157–165 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 177–184 |
ShortVariable | Avoid variables with short names like bg | 3 | 206 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 212–276 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 284 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–409 |
UnusedImports | Avoid unused imports such as 'com.rometools.rome.io.impl.Base64' | 4 | 48 |
UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.service.security.RsaService' | 4 | 61 |
CommentRequired | Header comments are required | 3 | 75–409 |
CommentRequired | Public method and constructor comments are required | 3 | 131–141 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 134 |
CommentRequired | Public method and constructor comments are required | 3 | 144–159 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 152 |
CommentRequired | Public method and constructor comments are required | 3 | 162–186 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 164 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 165 |
CommentRequired | Public method and constructor comments are required | 3 | 189–205 |
CommentRequired | Public method and constructor comments are required | 3 | 208–224 |
CommentRequired | Public method and constructor comments are required | 3 | 227–245 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 261 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 262 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 262 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 349 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 350 |
CommentRequired | Public method and constructor comments are required | 3 | 367–381 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 369 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 397 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 64–313 |
ImmutableField | Private field '_imageService' could be made final; it is only initialized in the declaration or constructor. | 3 | 94 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 115 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 137 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 138 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 154 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 186 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 213 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 240 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 241 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 242 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 259 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 109 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 138 |