Le document suivant contient les résultats de PMD 6.13.0.
| Rule | Violation | Ligne |
|---|---|---|
| ClassNamingConventions | The utility class name 'CartoProviderManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 46–92 |
| Rule | Violation | Ligne |
|---|---|---|
| ClassNamingConventions | The utility class name 'MapProviderManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 46–92 |
| Rule | Violation | Ligne |
|---|---|---|
| ClassNamingConventions | The utility class name 'OcrProviderManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 46–92 |
| Rule | Violation | Ligne |
|---|---|---|
| ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 47–108 |
| Rule | Violation | Ligne |
|---|---|---|
| EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 58–61 |
| Rule | Violation | Ligne |
|---|---|---|
| EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 64–67 |
| EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 73–76 |
| EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 102–105 |
| EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 160–163 |
| Rule | Violation | Ligne |
|---|---|---|
| FieldNamingConventions | The field name 'FIELD_BEGIN_HOUR' doesn't match '_[a-z][a-zA-Z0-9]*' | 22 |
| FieldNamingConventions | The field name 'FIELD_END_HOUR' doesn't match '_[a-z][a-zA-Z0-9]*' | 23 |
| Rule | Violation | Ligne |
|---|---|---|
| EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 369–372 |
| Rule | Violation | Ligne |
|---|---|---|
| EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 66–69 |
| EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 75–78 |
| EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 102–105 |
| EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 120–123 |
| Rule | Violation | Ligne |
|---|---|---|
| ClassNamingConventions | The utility class name 'EntryTypeServiceManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 43–75 |
| Rule | Violation | Ligne |
|---|---|---|
| ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 49–262 |
| FieldNamingConventions | The constant name '_instance' doesn't match '[A-Z][A-Z_0-9]*' | 54 |
| Rule | Violation | Ligne |
|---|---|---|
| FieldNamingConventions | The final field name '_oldEntryId' doesn't match '[a-z][a-zA-Z0-9]*' | 43 |
| Rule | Violation | Ligne |
|---|---|---|
| FieldNamingConventions | The final field name '_valuesMap' doesn't match '[a-z][a-zA-Z0-9]*' | 49 |
| Rule | Violation | Ligne |
|---|---|---|
| ProperCloneImplementation | Object clone() should be implemented with super.clone() | 500 |
| Rule | Violation | Ligne |
|---|---|---|
| AvoidReassigningParameters | Avoid reassigning parameters such as 'strOrigin' | 191 |
| AvoidReassigningParameters | Avoid reassigning parameters such as 'strOrigin' | 215 |
| Rule | Violation | Ligne |
|---|---|---|
| ExcessivePublicCount | This class has a bunch of public methods and attributes | 34–601 |
| GodClass | Possible God Class (WMC=53, ATFD=12, TCC=1.333%) | 48–601 |
| TooManyFields | Too many fields | 48–601 |
| CloneThrowsCloneNotSupportedException | clone() method should throw CloneNotSupportedException | 500–512 |
| CloneMethodReturnTypeMustMatchClassName | The return type of the clone() method must be the class name when implements Cloneable | 500–512 |
| CommentRequired | Public method and constructor comments are required | 514–517 |
| CommentRequired | Public method and constructor comments are required | 519–522 |
| CommentRequired | Public method and constructor comments are required | 524–527 |
| CommentRequired | Public method and constructor comments are required | 529–532 |
| Rule | Violation | Ligne |
|---|---|---|
| TooManyMethods | This class has too many methods, consider refactoring it. | 53–768 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 113–120 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 131–138 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 237–244 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 262–269 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 274–281 |
| NPathComplexity | The method 'selectEntryListByFilter(EntryFilter, Plugin)' has an NPath complexity of 2050 | 297–379 |
| CyclomaticComplexity | The method 'selectEntryListByFilter(EntryFilter, Plugin)' has a cyclomatic complexity of 12. | 297–379 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 314 |
| ShortVariable | Avoid variables with short names like sb | 381 |
| CyclomaticComplexity | The method 'selectNumberEntryByFilter(EntryFilter, Plugin)' has a cyclomatic complexity of 10. | 390–461 |
| NPathComplexity | The method 'selectNumberEntryByFilter(EntryFilter, Plugin)' has an NPath complexity of 513 | 390–461 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 404 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 584–608 |
| AssignmentInOperand | Avoid assignments in operands | 667 |
| AssignmentInOperand | Avoid assignments in operands | 682 |
| AssignmentInOperand | Avoid assignments in operands | 692 |
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 729 |
| Rule | Violation | Ligne |
|---|---|---|
| TooManyMethods | This class has too many methods, consider refactoring it. | 46–377 |
| CommentRequired | Public method and constructor comments are required | 363–366 |
| CommentRequired | Public method and constructor comments are required | 368–371 |
| CommentRequired | Public method and constructor comments are required | 373–376 |
| Rule | Violation | Ligne |
|---|---|---|
| TooManyMethods | This class has too many methods, consider refactoring it. | 54–394 |
| AvoidReassigningLoopVariables | Avoid reassigning the loop control variable 'field' | 99 |
| AvoidReassigningLoopVariables | Avoid reassigning the loop control variable 'entryChild' | 115 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 134 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 202 |
| NonThreadSafeSingleton | Singleton is not thread safe | 359–362 |
| Rule | Violation | Ligne |
|---|---|---|
| NonThreadSafeSingleton | Singleton is not thread safe | 67–70 |
| Rule | Violation | Ligne |
|---|---|---|
| TooManyMethods | This class has too many methods, consider refactoring it. | 53–358 |
| AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 103–129 |
| NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 116 |
| NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 119 |
| NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 181 |
| NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 184 |
| Rule | Violation | Ligne |
|---|---|---|
| ShortVariable | Avoid variables with short names like id | 74 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 117 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 197–200 |
| NonThreadSafeSingleton | Singleton is not thread safe | 302–305 |
| Rule | Violation | Ligne |
|---|---|---|
| ImmutableField | Private field '_strFileName' could be made final; it is only initialized in the declaration or constructor. | 54 |
| ArrayIsStoredDirectly | The user-supplied array 'bValue' is stored directly. | 68 |
| ArrayIsStoredDirectly | The user-supplied array 'bValue' is stored directly. | 84 |
| ArrayIsStoredDirectly | The user-supplied array 'bValue' is stored directly. | 104 |
| NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 120 |
| MethodReturnsInternalArray | Returning '_bValue' may expose an internal array. | 129 |
| CommentRequired | Public method and constructor comments are required | 269–272 |
| Rule | Violation | Ligne |
|---|---|---|
| ShortVariable | Avoid variables with short names like y | 99 |
| ShortVariable | Avoid variables with short names like x | 99 |
| Rule | Violation | Ligne |
|---|---|---|
| TooManyMethods | This class has too many methods, consider refactoring it. | 45–191 |
| Rule | Violation | Ligne |
|---|---|---|
| SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 135 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Public method and constructor comments are required | 121 |
| Rule | Violation | Ligne |
|---|---|---|
| CallSuperInConstructor | It is a good practice to call super() in a constructor | 58–70 |
| Rule | Violation | Ligne |
|---|---|---|
| AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 88–130 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 98–105 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 107–117 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 181–188 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 190–200 |
| CyclomaticComplexity | The method 'selectListByFilter(ResponseFilter, Plugin)' has a cyclomatic complexity of 18. | 214–314 |
| ExcessiveMethodLength | Avoid really long methods. | 214–314 |
| NPathComplexity | The method 'selectListByFilter(ResponseFilter, Plugin)' has an NPath complexity of 132096 | 214–314 |
| ShortVariable | Avoid variables with short names like sb | 252 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 253 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 254 |
| ShortVariable | Avoid variables with short names like sb | 260 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 261 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 262 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 266 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 267 |
| ShortVariable | Avoid variables with short names like s | 426 |
| ShortVariable | Avoid variables with short names like sb | 433 |
| ShortVariable | Avoid variables with short names like c | 437 |
| CollapsibleIfStatements | These nested if statements could be combined | 442–446 |
| MissingOverride | The method 'storeFileKey(int, String, String, Plugin)' is missing an @Override annotation. | 455–466 |
| CommentRequired | Public method and constructor comments are required | 455–466 |
| Rule | Violation | Ligne |
|---|---|---|
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 85 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 109–116 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 122 |
| CommentRequired | Public method and constructor comments are required | 129–143 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 138 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 171 |
| NonThreadSafeSingleton | Singleton is not thread safe | 236–239 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Header comments are required | 51–101 |
| Rule | Violation | Ligne |
|---|---|---|
| ShortVariable | Avoid variables with short names like se | 51 |
| ShortVariable | Avoid variables with short names like se | 60 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Header comments are required | 42–96 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Header comments are required | 39–63 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Header comments are required | 39–68 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Header comments are required | 41–90 |
| ImmutableField | Private field '_wildcard' could be made final; it is only initialized in the declaration or constructor. | 43 |
| ImmutableField | Private field '_helpKey' could be made final; it is only initialized in the declaration or constructor. | 44 |
| ImmutableField | Private field '_serviceName' could be made final; it is only initialized in the declaration or constructor. | 45 |
| Rule | Violation | Ligne |
|---|---|---|
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 68–90 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Header comments are required | 38–55 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Header comments are required | 39–57 |
| Rule | Violation | Ligne |
|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 67 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 69 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 98–114 |
| Rule | Violation | Ligne |
|---|---|---|
| CyclomaticComplexity | The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 11. | 83–185 |
| ExcessiveMethodLength | Avoid really long methods. | 83–185 |
| NPathComplexity | The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 432 | 83–185 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 86 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 88 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 88 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 89 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 90 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 91 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 93 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 94 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 95 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 96 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 97 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 99 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 101 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 102 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 103 |
| CyclomaticComplexity | The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 10. | 191–233 |
| SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 253 |
| ShortVariable | Avoid variables with short names like dt | 253 |
| ShortVariable | Avoid variables with short names like c | 258 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 277–284 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 385 |
| UseUnderscoresInNumericLiterals | Number 5242880 should separate every third digit with an underscore | 391 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 397 |
| Rule | Violation | Ligne |
|---|---|---|
| UnusedPrivateField | Avoid unused private fields such as 'MESSAGE_SPECIFY_BOTH_X_AND_Y'. | 109 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 122 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 123 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 123 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 124 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 125 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 126 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 127 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 128 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 129 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 130 |
| CyclomaticComplexity | The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 11. | 173–239 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 189–200 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 193–200 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 268–275 |
| UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 293 |
| Rule | Violation | Ligne |
|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 70 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 72 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 72 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 73 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 74 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 75 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 76 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 77 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 78 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 80 |
| ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 139–151 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Header comments are required | 53–154 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 71–74 |
| CommentRequired | Protected method constructor comments are required | 83–133 |
| CommentRequired | Public method and constructor comments are required | 135–153 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 143–146 |
| Rule | Violation | Ligne |
|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 73 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 75 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 76 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 77 |
| Rule | Violation | Ligne |
|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 72 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 73 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 73 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 74 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 75 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 76 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 77 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 78 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 79 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 80 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 118 |
| Rule | Violation | Ligne |
|---|---|---|
| ExcessiveMethodLength | Avoid really long methods. | 78–190 |
| NPathComplexity | The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has an NPath complexity of 14820 | 78–190 |
| CyclomaticComplexity | The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 20. | 78–190 |
| NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 102 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 126–129 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 258–261 |
| Rule | Violation | Ligne |
|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 171 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 172 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 172 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 173 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 174 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 175 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 176 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 177 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 178 |
| Rule | Violation | Ligne |
|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 125 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 126 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 126 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 127 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 128 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 129 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 130 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 131 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 132 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 133 |
| CyclomaticComplexity | The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 12. | 192–255 |
| NPathComplexity | The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has an NPath complexity of 288 | 192–255 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 197–206 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 207–214 |
| ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 320–323 |
| UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 344 |
| NcssCount | The method 'getGeolocationResponseList(Entry, int, String, String, String, String, String, String)' has a NCSS line count of 60. | 400–492 |
| UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 400–401 |
| Rule | Violation | Ligne |
|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 70 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 73 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Header comments are required | 51–127 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 64–70 |
| Rule | Violation | Ligne |
|---|---|---|
| CyclomaticComplexity | The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 13. | 66–144 |
| NPathComplexity | The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 4096 | 66–144 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 69 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 71 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 71 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 72 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 73 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 74 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 75 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 76 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 77 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 78 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 79 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 80 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 81 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 82 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 83 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 84 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 139 |
| ShortVariable | Avoid variables with short names like sb | 294 |
| Rule | Violation | Ligne |
|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 70 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 71 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 72 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 73 |
| Rule | Violation | Ligne |
|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 67 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 68 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 68 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 69 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 70 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 71 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 72 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 73 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 75 |
| Rule | Violation | Ligne |
|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 66 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 67 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 67 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 68 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 69 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 70 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 71 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 72 |
| Rule | Violation | Ligne |
|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 68 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 69 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 69 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 70 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 71 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 72 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 73 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 74 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 75 |
| ShortVariable | Avoid variables with short names like id | 131 |
| Rule | Violation | Ligne |
|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 69 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 70 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 70 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 71 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 72 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 73 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 178 |
| Rule | Violation | Ligne |
|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 72 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 74 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Header comments are required | 16–176 |
| DefaultPackage | Use explicit scoping instead of the default package private level | 22 |
| CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the FIELD_BEGIN_HOUR field if you want a default access modifier | 22 |
| DefaultPackage | Use explicit scoping instead of the default package private level | 23 |
| CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the FIELD_END_HOUR field if you want a default access modifier | 23 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 33 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 34 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 34 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 35 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 36 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 37 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 38 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 39 |
| CyclomaticComplexity | The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 10. | 74–148 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 78 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 98 |
| CommentRequired | Protected method constructor comments are required | 150–161 |
| Rule | Violation | Ligne |
|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 78 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 79 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 79 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 80 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 81 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 82 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 83 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 84 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 85 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 86 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 87 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 88 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 133 |
| CyclomaticComplexity | The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 13. | 145–232 |
| Rule | Violation | Ligne |
|---|---|---|
| ExcessiveMethodLength | Avoid really long methods. | 78–213 |
| NPathComplexity | The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 27648 | 78–213 |
| NcssCount | The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a NCSS line count of 76. | 78–213 |
| CyclomaticComplexity | The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 19. | 78–213 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 81 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 83 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 83 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 84 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 85 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 86 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 88 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 91 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 92 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 93 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 94 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 95 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 96 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 97 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 106 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 107 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 187 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 197 |
| CyclomaticComplexity | The method 'checkErrors(Entry, Field, String, String, List, boolean, Locale)' has a cyclomatic complexity of 13. | 286–343 |
| Rule | Violation | Ligne |
|---|---|---|
| CyclomaticComplexity | The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 13. | 69–184 |
| NcssCount | The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a NCSS line count of 65. | 69–184 |
| NPathComplexity | The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 1536 | 69–184 |
| ExcessiveMethodLength | Avoid really long methods. | 69–184 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 73 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 74 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 74 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 75 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 76 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 77 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 80 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 81 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 82 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 83 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 84 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 85 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 86 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 88 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 89 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 90 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 178 |
| Rule | Violation | Ligne |
|---|---|---|
| ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–432 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 165–168 |
| CyclomaticComplexity | The method 'getResponseValueForExport(Entry, HttpServletRequest, Response, Locale)' has a cyclomatic complexity of 10. | 180–214 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 196–205 |
| UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 287 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 302 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 303 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 303 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 304 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 305 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 306 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 307 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 308 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 309 |
| Rule | Violation | Ligne |
|---|---|---|
| LinguisticNaming | Linguistics Antipattern - The method 'canUploadFiles' indicates linguistically it returns a boolean, but it returns 'GenericAttributeError' | 297 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Header comments are required | 49–262 |
| AssignmentToNonFinalStatic | Possible unsafe assignment to a non-final static field in a constructor. | 55 |
| CollapsibleIfStatements | These nested if statements could be combined | 91–94 |
| Rule | Violation | Ligne |
|---|---|---|
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 104–107 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Public method and constructor comments are required | 45–48 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Public method and constructor comments are required | 56–59 |
| CommentRequired | Public method and constructor comments are required | 61–74 |
| AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 61–74 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Public method and constructor comments are required | 76–125 |
| CyclomaticComplexity | The method 'checkFileSize(Entry, List, List, Locale)' has a cyclomatic complexity of 11. | 76–125 |
| UseUnderscoresInNumericLiterals | Number 5242880 should separate every third digit with an underscore | 91 |
| CommentRequired | Public method and constructor comments are required | 127–161 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 203–211 |
| CyclomaticComplexity | The method 'checkResponseData(Entry, List, Locale)' has a cyclomatic complexity of 11. | 236–286 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Header comments are required | 52–210 |
| UnnecessaryAnnotationValueElement | Avoid the use of value in annotations when its the only element | 179 |
| CommentRequired | Public method and constructor comments are required | 180–193 |
| CommentRequired | Public method and constructor comments are required | 196–209 |
| Rule | Violation | Ligne |
|---|---|---|
| BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 145–148 |
| Rule | Violation | Ligne |
|---|---|---|
| BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 304–307 |
| Rule | Violation | Ligne |
|---|---|---|
| UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.business.file.FileHome' | 39 |
| Rule | Violation | Ligne |
|---|---|---|
| UnusedImports | Avoid unused imports such as 'java.util.Optional' | 42 |
| Rule | Violation | Ligne |
|---|---|---|
| UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.service.file.FileService' | 50 |
| UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.service.file.FileServiceException' | 51 |
| UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.service.file.IFileStoreServiceProvider' | 52 |
| UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppLogService' | 56 |
| Rule | Violation | Ligne |
|---|---|---|
| UnusedImports | Avoid unused imports such as 'fr.paris.lutece.util.string.StringUtil' | 54 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| ClassNamingConventions | The utility class name 'CartoProviderManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 46–92 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| ExcessivePublicCount | This class has a bunch of public methods and attributes | 3 | 34–601 |
| GodClass | Possible God Class (WMC=53, ATFD=12, TCC=1.333%) | 3 | 48–601 |
| TooManyFields | Too many fields | 3 | 48–601 |
| ProperCloneImplementation | Object clone() should be implemented with super.clone() | 2 | 500 |
| CloneThrowsCloneNotSupportedException | clone() method should throw CloneNotSupportedException | 3 | 500–512 |
| CloneMethodReturnTypeMustMatchClassName | The return type of the clone() method must be the class name when implements Cloneable | 3 | 500–512 |
| CommentRequired | Public method and constructor comments are required | 3 | 514–517 |
| CommentRequired | Public method and constructor comments are required | 3 | 519–522 |
| CommentRequired | Public method and constructor comments are required | 3 | 524–527 |
| CommentRequired | Public method and constructor comments are required | 3 | 529–532 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 53–768 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 113–120 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 131–138 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 237–244 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 262–269 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 274–281 |
| NPathComplexity | The method 'selectEntryListByFilter(EntryFilter, Plugin)' has an NPath complexity of 2050 | 3 | 297–379 |
| CyclomaticComplexity | The method 'selectEntryListByFilter(EntryFilter, Plugin)' has a cyclomatic complexity of 12. | 3 | 297–379 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 314 |
| ShortVariable | Avoid variables with short names like sb | 3 | 381 |
| CyclomaticComplexity | The method 'selectNumberEntryByFilter(EntryFilter, Plugin)' has a cyclomatic complexity of 10. | 3 | 390–461 |
| NPathComplexity | The method 'selectNumberEntryByFilter(EntryFilter, Plugin)' has an NPath complexity of 513 | 3 | 390–461 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 404 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 584–608 |
| AssignmentInOperand | Avoid assignments in operands | 3 | 667 |
| AssignmentInOperand | Avoid assignments in operands | 3 | 682 |
| AssignmentInOperand | Avoid assignments in operands | 3 | 692 |
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 729 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 46–377 |
| CommentRequired | Public method and constructor comments are required | 3 | 363–366 |
| CommentRequired | Public method and constructor comments are required | 3 | 368–371 |
| CommentRequired | Public method and constructor comments are required | 3 | 373–376 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 54–394 |
| AvoidReassigningLoopVariables | Avoid reassigning the loop control variable 'field' | 3 | 99 |
| AvoidReassigningLoopVariables | Avoid reassigning the loop control variable 'entryChild' | 3 | 115 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 134 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 202 |
| NonThreadSafeSingleton | Singleton is not thread safe | 3 | 359–362 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| NonThreadSafeSingleton | Singleton is not thread safe | 3 | 67–70 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 53–358 |
| AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 103–129 |
| NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 116 |
| NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 119 |
| NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 181 |
| NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 184 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| ShortVariable | Avoid variables with short names like id | 3 | 74 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 117 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 197–200 |
| NonThreadSafeSingleton | Singleton is not thread safe | 3 | 302–305 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| ImmutableField | Private field '_strFileName' could be made final; it is only initialized in the declaration or constructor. | 3 | 54 |
| ArrayIsStoredDirectly | The user-supplied array 'bValue' is stored directly. | 3 | 68 |
| ArrayIsStoredDirectly | The user-supplied array 'bValue' is stored directly. | 3 | 84 |
| ArrayIsStoredDirectly | The user-supplied array 'bValue' is stored directly. | 3 | 104 |
| NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 120 |
| MethodReturnsInternalArray | Returning '_bValue' may expose an internal array. | 3 | 129 |
| CommentRequired | Public method and constructor comments are required | 3 | 269–272 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 145–148 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| ShortVariable | Avoid variables with short names like y | 3 | 99 |
| ShortVariable | Avoid variables with short names like x | 3 | 99 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 45–191 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 3 | 135 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CommentRequired | Public method and constructor comments are required | 3 | 121 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 58–70 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| ClassNamingConventions | The utility class name 'MapProviderManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 46–92 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| ClassNamingConventions | The utility class name 'OcrProviderManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 46–92 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 47–108 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 304–307 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 88–130 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 98–105 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 107–117 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 181–188 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 190–200 |
| CyclomaticComplexity | The method 'selectListByFilter(ResponseFilter, Plugin)' has a cyclomatic complexity of 18. | 3 | 214–314 |
| ExcessiveMethodLength | Avoid really long methods. | 3 | 214–314 |
| NPathComplexity | The method 'selectListByFilter(ResponseFilter, Plugin)' has an NPath complexity of 132096 | 3 | 214–314 |
| ShortVariable | Avoid variables with short names like sb | 3 | 252 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 253 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 254 |
| ShortVariable | Avoid variables with short names like sb | 3 | 260 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 261 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 262 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 266 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 267 |
| ShortVariable | Avoid variables with short names like s | 3 | 426 |
| ShortVariable | Avoid variables with short names like sb | 3 | 433 |
| ShortVariable | Avoid variables with short names like c | 3 | 437 |
| CollapsibleIfStatements | These nested if statements could be combined | 3 | 442–446 |
| MissingOverride | The method 'storeFileKey(int, String, String, Plugin)' is missing an @Override annotation. | 3 | 455–466 |
| CommentRequired | Public method and constructor comments are required | 3 | 455–466 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.business.file.FileHome' | 4 | 39 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 85 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 109–116 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 122 |
| CommentRequired | Public method and constructor comments are required | 3 | 129–143 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 138 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 171 |
| NonThreadSafeSingleton | Singleton is not thread safe | 3 | 236–239 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CommentRequired | Header comments are required | 3 | 51–101 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| ShortVariable | Avoid variables with short names like se | 3 | 51 |
| ShortVariable | Avoid variables with short names like se | 3 | 60 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CommentRequired | Header comments are required | 3 | 42–96 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CommentRequired | Header comments are required | 3 | 39–63 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CommentRequired | Header comments are required | 3 | 39–68 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CommentRequired | Header comments are required | 3 | 41–90 |
| ImmutableField | Private field '_wildcard' could be made final; it is only initialized in the declaration or constructor. | 3 | 43 |
| ImmutableField | Private field '_helpKey' could be made final; it is only initialized in the declaration or constructor. | 3 | 44 |
| ImmutableField | Private field '_serviceName' could be made final; it is only initialized in the declaration or constructor. | 3 | 45 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 68–90 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CommentRequired | Header comments are required | 3 | 38–55 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CommentRequired | Header comments are required | 3 | 39–57 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 67 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 69 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 98–114 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CyclomaticComplexity | The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 11. | 3 | 83–185 |
| ExcessiveMethodLength | Avoid really long methods. | 3 | 83–185 |
| NPathComplexity | The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 432 | 3 | 83–185 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 86 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 88 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 88 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 89 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 90 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 91 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 93 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 94 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 95 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 96 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 97 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 99 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 101 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 102 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 103 |
| CyclomaticComplexity | The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 10. | 3 | 191–233 |
| SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 3 | 253 |
| ShortVariable | Avoid variables with short names like dt | 3 | 253 |
| ShortVariable | Avoid variables with short names like c | 3 | 258 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 277–284 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 385 |
| UseUnderscoresInNumericLiterals | Number 5242880 should separate every third digit with an underscore | 3 | 391 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 397 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| UnusedImports | Avoid unused imports such as 'java.util.Optional' | 4 | 42 |
| UnusedPrivateField | Avoid unused private fields such as 'MESSAGE_SPECIFY_BOTH_X_AND_Y'. | 3 | 109 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 122 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 123 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 123 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 124 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 125 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 126 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 127 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 128 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 129 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 130 |
| CyclomaticComplexity | The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 11. | 3 | 173–239 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 189–200 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 193–200 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 268–275 |
| UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 293 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 70 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 72 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 72 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 73 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 74 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 75 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 76 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 77 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 78 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 80 |
| ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 139–151 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CommentRequired | Header comments are required | 3 | 53–154 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 71–74 |
| CommentRequired | Protected method constructor comments are required | 3 | 83–133 |
| CommentRequired | Public method and constructor comments are required | 3 | 135–153 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 143–146 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.service.file.FileService' | 4 | 50 |
| UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.service.file.FileServiceException' | 4 | 51 |
| UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.service.file.IFileStoreServiceProvider' | 4 | 52 |
| UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppLogService' | 4 | 56 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 73 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 75 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 76 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 77 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 72 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 73 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 73 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 74 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 75 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 76 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 77 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 78 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 79 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 80 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 118 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| ExcessiveMethodLength | Avoid really long methods. | 3 | 78–190 |
| NPathComplexity | The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has an NPath complexity of 14820 | 3 | 78–190 |
| CyclomaticComplexity | The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 20. | 3 | 78–190 |
| NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 102 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 126–129 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 258–261 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 171 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 172 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 172 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 173 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 174 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 175 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 176 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 177 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 178 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 125 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 126 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 126 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 127 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 128 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 129 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 130 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 131 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 132 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 133 |
| CyclomaticComplexity | The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 12. | 3 | 192–255 |
| NPathComplexity | The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has an NPath complexity of 288 | 3 | 192–255 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 197–206 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 207–214 |
| ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 320–323 |
| UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 344 |
| NcssCount | The method 'getGeolocationResponseList(Entry, int, String, String, String, String, String, String)' has a NCSS line count of 60. | 3 | 400–492 |
| UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 400–401 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 58–61 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 70 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 73 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CommentRequired | Header comments are required | 3 | 51–127 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 64–70 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 64–67 |
| EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 73–76 |
| EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 102–105 |
| EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 160–163 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CyclomaticComplexity | The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 13. | 3 | 66–144 |
| NPathComplexity | The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 4096 | 3 | 66–144 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 69 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 71 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 71 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 72 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 73 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 74 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 75 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 76 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 77 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 78 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 79 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 80 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 81 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 82 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 83 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 84 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 139 |
| ShortVariable | Avoid variables with short names like sb | 3 | 294 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 70 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 71 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 72 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 73 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 67 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 68 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 68 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 69 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 70 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 71 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 72 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 73 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 75 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 66 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 67 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 67 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 68 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 69 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 70 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 71 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 72 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 68 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 69 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 69 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 70 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 71 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 72 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 73 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 74 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 75 |
| ShortVariable | Avoid variables with short names like id | 3 | 131 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 69 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 70 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 70 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 71 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 72 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 73 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 178 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 72 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 74 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CommentRequired | Header comments are required | 3 | 16–176 |
| DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 22 |
| FieldNamingConventions | The field name 'FIELD_BEGIN_HOUR' doesn't match '_[a-z][a-zA-Z0-9]*' | 1 | 22 |
| CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the FIELD_BEGIN_HOUR field if you want a default access modifier | 3 | 22 |
| FieldNamingConventions | The field name 'FIELD_END_HOUR' doesn't match '_[a-z][a-zA-Z0-9]*' | 1 | 23 |
| DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 23 |
| CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the FIELD_END_HOUR field if you want a default access modifier | 3 | 23 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 33 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 34 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 34 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 35 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 36 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 37 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 38 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 39 |
| CyclomaticComplexity | The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 10. | 3 | 74–148 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 78 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 98 |
| CommentRequired | Protected method constructor comments are required | 3 | 150–161 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 78 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 79 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 79 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 80 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 81 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 82 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 83 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 84 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 85 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 86 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 87 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 88 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 133 |
| CyclomaticComplexity | The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 13. | 3 | 145–232 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| ExcessiveMethodLength | Avoid really long methods. | 3 | 78–213 |
| NPathComplexity | The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 27648 | 3 | 78–213 |
| NcssCount | The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a NCSS line count of 76. | 3 | 78–213 |
| CyclomaticComplexity | The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 19. | 3 | 78–213 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 81 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 83 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 83 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 84 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 85 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 86 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 88 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 91 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 92 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 93 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 94 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 95 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 96 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 97 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 106 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 107 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 187 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 197 |
| CyclomaticComplexity | The method 'checkErrors(Entry, Field, String, String, List, boolean, Locale)' has a cyclomatic complexity of 13. | 3 | 286–343 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| UnusedImports | Avoid unused imports such as 'fr.paris.lutece.util.string.StringUtil' | 4 | 54 |
| CyclomaticComplexity | The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a cyclomatic complexity of 13. | 3 | 69–184 |
| NcssCount | The method 'getRequestData(Entry, HttpServletRequest, Locale)' has a NCSS line count of 65. | 3 | 69–184 |
| NPathComplexity | The method 'getRequestData(Entry, HttpServletRequest, Locale)' has an NPath complexity of 1536 | 3 | 69–184 |
| ExcessiveMethodLength | Avoid really long methods. | 3 | 69–184 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 73 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 74 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 74 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 75 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 76 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 77 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 80 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 81 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 82 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 83 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 84 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 85 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 86 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 88 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 89 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 90 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 178 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–432 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 165–168 |
| CyclomaticComplexity | The method 'getResponseValueForExport(Entry, HttpServletRequest, Response, Locale)' has a cyclomatic complexity of 10. | 3 | 180–214 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 196–205 |
| UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 287 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 302 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 303 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 303 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 304 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 305 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 306 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 307 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 308 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 309 |
| EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 369–372 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 66–69 |
| EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 75–78 |
| EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 102–105 |
| EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 120–123 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| ClassNamingConventions | The utility class name 'EntryTypeServiceManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 43–75 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| LinguisticNaming | Linguistics Antipattern - The method 'canUploadFiles' indicates linguistically it returns a boolean, but it returns 'GenericAttributeError' | 3 | 297 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 49–262 |
| CommentRequired | Header comments are required | 3 | 49–262 |
| FieldNamingConventions | The constant name '_instance' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 54 |
| AssignmentToNonFinalStatic | Possible unsafe assignment to a non-final static field in a constructor. | 3 | 55 |
| CollapsibleIfStatements | These nested if statements could be combined | 3 | 91–94 |
| AvoidReassigningParameters | Avoid reassigning parameters such as 'strOrigin' | 2 | 191 |
| AvoidReassigningParameters | Avoid reassigning parameters such as 'strOrigin' | 2 | 215 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 104–107 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| FieldNamingConventions | The final field name '_oldEntryId' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 43 |
| CommentRequired | Public method and constructor comments are required | 3 | 45–48 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| FieldNamingConventions | The final field name '_valuesMap' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 49 |
| CommentRequired | Public method and constructor comments are required | 3 | 56–59 |
| CommentRequired | Public method and constructor comments are required | 3 | 61–74 |
| AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 61–74 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CommentRequired | Public method and constructor comments are required | 3 | 76–125 |
| CyclomaticComplexity | The method 'checkFileSize(Entry, List, List, Locale)' has a cyclomatic complexity of 11. | 3 | 76–125 |
| UseUnderscoresInNumericLiterals | Number 5242880 should separate every third digit with an underscore | 3 | 91 |
| CommentRequired | Public method and constructor comments are required | 3 | 127–161 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 203–211 |
| CyclomaticComplexity | The method 'checkResponseData(Entry, List, Locale)' has a cyclomatic complexity of 11. | 3 | 236–286 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CommentRequired | Header comments are required | 3 | 52–210 |
| UnnecessaryAnnotationValueElement | Avoid the use of value in annotations when its the only element | 3 | 179 |
| CommentRequired | Public method and constructor comments are required | 3 | 180–193 |
| CommentRequired | Public method and constructor comments are required | 3 | 196–209 |