Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.13.0.

Violations By Priority

Priority 1

fr/paris/lutece/plugins/appointment/log/LogUtilities.java

Rule Violation Line
ClassNamingConventions The utility class name 'LogUtilities' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 42–67

fr/paris/lutece/plugins/appointment/service/AppointmentExecutorService.java

Rule Violation Line
FieldNamingConventions The final field name '_executorService' doesn't match '[a-z][a-zA-Z0-9]*' 51

fr/paris/lutece/plugins/appointment/service/AppointmentUtilities.java

Rule Violation Line
ClassNamingConventions The utility class name 'AppointmentUtilities' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 102–1334
FieldNamingConventions The constant name '_secheduledExecutor' doesn't match '[A-Z][A-Z_0-9]*' 124

fr/paris/lutece/plugins/appointment/service/CalendarBuilder.java

Rule Violation Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 51–428

fr/paris/lutece/plugins/appointment/service/CommentService.java

Rule Violation Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 60–264

fr/paris/lutece/plugins/appointment/service/SlotSafeService.java

Rule Violation Line
FieldNamingConventions The constant name '_listSlot' doesn't match '[A-Z][A-Z_0-9]*' 89
FieldNamingConventions The constant name '_lockFormId' doesn't match '[A-Z][A-Z_0-9]*' 90

fr/paris/lutece/plugins/appointment/service/Utilities.java

Rule Violation Line
ClassNamingConventions The utility class name 'Utilities' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 48–128

fr/paris/lutece/plugins/appointment/service/addon/AppointmentAddOnManager.java

Rule Violation Line
ClassNamingConventions The utility class name 'AppointmentAddOnManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 47–77

fr/paris/lutece/plugins/appointment/service/export/ExcelAppointmentGenerator.java

Rule Violation Line
FieldNamingConventions The final field name '_fileName' doesn't match '[a-z][a-zA-Z0-9]*' 60
FieldNamingConventions The final field name '_fileDescription' doesn't match '[a-z][a-zA-Z0-9]*' 61
FieldNamingConventions The final field name '_defaultColumnList' doesn't match '[a-z][a-zA-Z0-9]*' 62
FieldNamingConventions The final field name '_locale' doesn't match '[a-z][a-zA-Z0-9]*' 63
FieldNamingConventions The final field name '_listAppointmentsDTO' doesn't match '[a-z][a-zA-Z0-9]*' 64
FieldNamingConventions The final field name '_entryList' doesn't match '[a-z][a-zA-Z0-9]*' 65

fr/paris/lutece/plugins/appointment/service/listeners/AppointmentListenerManager.java

Rule Violation Line
ClassNamingConventions The utility class name 'AppointmentListenerManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 51–174

fr/paris/lutece/plugins/appointment/service/listeners/FormListenerManager.java

Rule Violation Line
ClassNamingConventions The utility class name 'FormListenerManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 39–98

fr/paris/lutece/plugins/appointment/service/listeners/SlotListenerManager.java

Rule Violation Line
ClassNamingConventions The utility class name 'SlotListenerManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 48–126

fr/paris/lutece/plugins/appointment/service/listeners/WeekDefinitionManagerListener.java

Rule Violation Line
ClassNamingConventions The utility class name 'WeekDefinitionManagerListener' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 42–103

fr/paris/lutece/plugins/appointment/web/AbstractAppointmentFormAndSlotJspBean.java

Rule Violation Line
FieldNamingConventions The constant name '_captchaSecurityService' doesn't match '[A-Z][A-Z_0-9]*' 113

fr/paris/lutece/plugins/appointment/web/AppointmentJspBean.java

Rule Violation Line
FieldNamingConventions The field name 'listFormErrors' doesn't match '_[a-z][a-zA-Z0-9]*' 324

fr/paris/lutece/plugins/appointment/web/file/AppointmentFormIconService.java

Rule Violation Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 47–129

Priority 2

fr/paris/lutece/plugins/appointment/business/appointment/AppointmentDAO.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 746
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 746
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 746
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 746
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 746
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 746
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 746
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 746
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 746
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 769
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 769
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 769
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 769
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 769

fr/paris/lutece/plugins/appointment/service/FormService.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'reservationRule' 411

fr/paris/lutece/plugins/appointment/web/AppointmentApp.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'model' 1448
AvoidReassigningParameters Avoid reassigning parameters such as 'model' 1493
AvoidReassigningParameters Avoid reassigning parameters such as 'model' 1534

fr/paris/lutece/plugins/appointment/web/SpecificWeekJspBean.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 450

fr/paris/lutece/plugins/appointment/web/TypicalWeekJspBean.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 661
AvoidReassigningParameters Avoid reassigning parameters such as 'nMaxCapacity' 902
AvoidReassigningParameters Avoid reassigning parameters such as 'slot' 975
AvoidReassigningParameters Avoid reassigning parameters such as 'nNewNbMaxCapacity' 975

Priority 3

fr/paris/lutece/plugins/appointment/business/AbstractDateConversion.java

Rule Violation Line
CommentRequired Header comments are required 39–159
ConfusingTernary Avoid if (x != y) ..; else ..; 96–103
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 102
ConfusingTernary Avoid if (x != y) ..; else ..; 150–157
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 156

fr/paris/lutece/plugins/appointment/business/appointment/Appointment.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 342–352
CommentRequired Public method and constructor comments are required 354–368
ConfusingTernary Avoid if (x != y) ..; else ..; 456–463
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 462

fr/paris/lutece/plugins/appointment/business/appointment/AppointmentDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 62–830
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 374
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 444
NPathComplexity The method 'addFilterParametersToDAOUtil(AppointmentFilterDTO, DAOUtil)' has an NPath complexity of 2304 497–561
CyclomaticComplexity The method 'addFilterParametersToDAOUtil(AppointmentFilterDTO, DAOUtil)' has a cyclomatic complexity of 13. 497–561
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 506
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 510
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 514
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 518
NPathComplexity The method 'getSqlQueryFromFilter(AppointmentFilterDTO, String)' has an NPath complexity of 1024 570–629
CyclomaticComplexity The method 'getSqlQueryFromFilter(AppointmentFilterDTO, String)' has a cyclomatic complexity of 11. 570–629
CyclomaticComplexity The method 'getOrderQuery(AppointmentFilterDTO, String)' has a cyclomatic complexity of 11. 631–680
MissingBreakInSwitch A switch statement does not contain a break 642–670

fr/paris/lutece/plugins/appointment/business/appointment/AppointmentHome.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 51–243
CommentRequired Public method and constructor comments are required 214–217

fr/paris/lutece/plugins/appointment/business/appointment/AppointmentSlot.java

Rule Violation Line
CommentRequired Header comments are required 38–112

fr/paris/lutece/plugins/appointment/business/appointment/IAppointmentDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 48–209

fr/paris/lutece/plugins/appointment/business/comment/CommentDAO.java

Rule Violation Line
ConfusingTernary Avoid if (x != y) ..; else ..; 73–80
ConfusingTernary Avoid if (x != y) ..; else ..; 82–89

fr/paris/lutece/plugins/appointment/business/comment/ICommentNotificationConfigDAO.java

Rule Violation Line
CommentRequired Header comments are required 40–73

fr/paris/lutece/plugins/appointment/business/form/Form.java

Rule Violation Line
TooManyFields Too many fields 58–541
ConfusingTernary Avoid if (x != y) ..; else ..; 306–313
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 312
ConfusingTernary Avoid if (x != y) ..; else ..; 360–367
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 366
CommentRequired Public method and constructor comments are required 521–524
CommentRequired Public method and constructor comments are required 526–529
CommentRequired Public method and constructor comments are required 531–534
CommentRequired Public method and constructor comments are required 536–539

fr/paris/lutece/plugins/appointment/business/form/FormDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 50–276

fr/paris/lutece/plugins/appointment/business/localization/LocalizationDAO.java

Rule Violation Line
CommentRequired Header comments are required 41–195
ConfusingTernary Avoid if (x != y) ..; else ..; 171–178
ConfusingTernary Avoid if (x != y) ..; else ..; 179–186

fr/paris/lutece/plugins/appointment/business/message/FormMessage.java

Rule Violation Line
TooManyFields Too many fields 44–543

fr/paris/lutece/plugins/appointment/business/planning/ClosingDay.java

Rule Violation Line
ConfusingTernary Avoid if (x != y) ..; else ..; 134–141
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 140

fr/paris/lutece/plugins/appointment/business/planning/ClosingDayDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 52–237

fr/paris/lutece/plugins/appointment/business/planning/WeekDefinitionDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 52–245

fr/paris/lutece/plugins/appointment/business/portlet/AppointmentFormListPortlet.java

Rule Violation Line
CallSuperInConstructor It is a good practice to call super() in a constructor 61–64

fr/paris/lutece/plugins/appointment/business/portlet/AppointmentFormPortlet.java

Rule Violation Line
CallSuperInConstructor It is a good practice to call super() in a constructor 56–59

fr/paris/lutece/plugins/appointment/business/portlet/AppointmentFormPortletDAO.java

Rule Violation Line
ShortVariable Avoid variables with short names like p 68
ShortVariable Avoid variables with short names like p 105

fr/paris/lutece/plugins/appointment/business/portlet/AppointmentPortlet.java

Rule Violation Line
CallSuperInConstructor It is a good practice to call super() in a constructor 58–61

fr/paris/lutece/plugins/appointment/business/rule/FormRuleDAO.java

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 59–69

fr/paris/lutece/plugins/appointment/business/slot/ISlotDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 49–229
UnnecessaryModifier Unnecessary modifier 'public' on method 'deleteByIdForm': the method is declared in an interface type 88

fr/paris/lutece/plugins/appointment/business/slot/Period.java

Rule Violation Line
CommentRequired Header comments are required 39–105
DataClass The class 'Period' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=5) 39–105
CommentRequired Public method and constructor comments are required 57–61

fr/paris/lutece/plugins/appointment/business/slot/Slot.java

Rule Violation Line
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 492

fr/paris/lutece/plugins/appointment/business/slot/SlotDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 53–375

fr/paris/lutece/plugins/appointment/business/slot/SlotHome.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 52–280

fr/paris/lutece/plugins/appointment/business/user/UserDAO.java

Rule Violation Line
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 148
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 149
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 150

fr/paris/lutece/plugins/appointment/exception/AppointmentSavedException.java

Rule Violation Line
CommentRequired Header comments are required 36–58
CommentRequired Public method and constructor comments are required 53–57
ShortVariable Avoid variables with short names like e 53

fr/paris/lutece/plugins/appointment/exception/SlotEditTaskExpiredTimeException.java

Rule Violation Line
CommentRequired Header comments are required 36–58
ShortVariable Avoid variables with short names like e 53
CommentRequired Public method and constructor comments are required 53–57

fr/paris/lutece/plugins/appointment/exception/SlotFullException.java

Rule Violation Line
CommentRequired Header comments are required 36–58
ShortVariable Avoid variables with short names like e 53
CommentRequired Public method and constructor comments are required 53–57

fr/paris/lutece/plugins/appointment/log/LogUtilities.java

Rule Violation Line
CommentRequired Header comments are required 42–67
ShortVariable Avoid variables with short names like BY 46
CommentRequired Public method and constructor comments are required 56–65

fr/paris/lutece/plugins/appointment/service/AppointmentExecutorService.java

Rule Violation Line
CommentRequired Enum comments are required 47–113
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 66
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 83

fr/paris/lutece/plugins/appointment/service/AppointmentResourceIdService.java

Rule Violation Line
DataClass The class 'AppointmentResourceIdService' is suspected to be a Data Class (WOC=0.000%, NOPA=16, NOAM=0, WMC=1) 57–237
CallSuperInConstructor It is a good practice to call super() in a constructor 112–115
NcssCount The method 'register()' has a NCSS line count of 65. 121–202

fr/paris/lutece/plugins/appointment/service/AppointmentService.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34–649
GodClass Possible God Class (WMC=64, ATFD=109, TCC=0.000%) 79–649
TooManyMethods This class has too many methods, consider refactoring it. 80–649
DefaultPackage Use explicit scoping instead of the default package private level 181–226
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the buildAndCreateAppointment method if you want a default access modifier 181–226
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 215
ConfusingTernary Avoid if (x != y) ..; else ..; 355–368
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 424
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 440
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 472
CyclomaticComplexity The method 'updateAppointment(Appointment)' has a cyclomatic complexity of 11. 546–592
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 585
CommentRequired Public method and constructor comments are required 622–647
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 630

fr/paris/lutece/plugins/appointment/service/AppointmentShutdownService.java

Rule Violation Line
CommentRequired Header comments are required 39–63

fr/paris/lutece/plugins/appointment/service/AppointmentUtilities.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34–1334
CyclomaticComplexity The class 'AppointmentUtilities' has a total cyclomatic complexity of 148 (highest 12). 102–1334
GodClass Possible God Class (WMC=148, ATFD=240, TCC=0.840%) 102–1334
ExcessiveClassLength Avoid really long classes. 102–1334
TooManyMethods This class has too many methods, consider refactoring it. 103–1334
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 125
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 222–235
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 276–280
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 314–317
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 347–350
CyclomaticComplexity The method 'checkNbMaxAppointmentsOnAGivenPeriod(AppointmentDTO, String, AppointmentFormDTO)' has a cyclomatic complexity of 11. 370–431
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 415–419
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 422–426
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 505
AvoidCatchingNPE Avoid catching NullPointerException; consider removing the cause of the NPE. 505
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 548
CommentRequired Public method and constructor comments are required 595–607
ControlStatementBraces This statement should have braces 660
CommentRequired Public method and constructor comments are required 665–669
ShortVariable Avoid variables with short names like nI 726
EmptyIfStmt Avoid empty if statements 837–839
EmptyIfStmt Avoid empty if statements 905–907
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 925
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 926
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 927
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 928
ConfusingTernary Avoid if (x != y) ..; else ..; 956–971
CommentRequired Public method and constructor comments are required 1056–1067
CommentRequired Public method and constructor comments are required 1069–1081
CyclomaticComplexity The method 'weekIsOpenInFO(AppointmentFormDTO, List, Locale)' has a cyclomatic complexity of 12. 1138–1180
ConfusingTernary Avoid if (x != y) ..; else ..; 1316–1326
AvoidCatchingNPE Avoid catching NullPointerException; consider removing the cause of the NPE. 1328
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 1328

fr/paris/lutece/plugins/appointment/service/CalendarBuilder.java

Rule Violation Line
CommentRequired Header comments are required 51–428
NcssCount The method 'buildListSlot(int, Map, LocalDate, LocalDate)' has a NCSS line count of 78. 74–218
CyclomaticComplexity The method 'buildListSlot(int, Map, LocalDate, LocalDate)' has a cyclomatic complexity of 19. 74–218
ExcessiveMethodLength Avoid really long methods. 74–218
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 112
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 124
ConfusingTernary Avoid if (x != y) ..; else ..; 131–214
ConfusingTernary Avoid if (x != y) ..; else ..; 160–171
NcssCount The method 'buildListSlot(int, Map, LocalDate, LocalDate, int, boolean)' has a NCSS line count of 96. 237–402
NPathComplexity The method 'buildListSlot(int, Map, LocalDate, LocalDate, int, boolean)' has an NPath complexity of 699 237–402
ExcessiveMethodLength Avoid really long methods. 237–402
CyclomaticComplexity The method 'buildListSlot(int, Map, LocalDate, LocalDate, int, boolean)' has a cyclomatic complexity of 17. 237–402
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 287
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 298
ConfusingTernary Avoid if (x != y) ..; else ..; 341–352

fr/paris/lutece/plugins/appointment/service/ClosingDayService.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 208
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 227

fr/paris/lutece/plugins/appointment/service/CommentService.java

Rule Violation Line
CommentRequired Header comments are required 60–264
CommentRequired Public method and constructor comments are required 195–231
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 244

fr/paris/lutece/plugins/appointment/service/EntryService.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34–812
CyclomaticComplexity The class 'EntryService' has a total cyclomatic complexity of 92 (highest 16). 76–812
GodClass Possible God Class (WMC=92, ATFD=186, TCC=0.585%) 76–812
TooManyMethods This class has too many methods, consider refactoring it. 77–812
CyclomaticComplexity The method 'moveDownEntryOrder(int, Entry)' has a cyclomatic complexity of 16. 139–234
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 166–199
CyclomaticComplexity The method 'moveUpEntryOrder(int, Entry)' has a cyclomatic complexity of 13. 244–318
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 269–299
CyclomaticComplexity The method 'getHtmlEntry(Map, int, StringBuilder, Locale, boolean, AppointmentDTO)' has a cyclomatic complexity of 16. 518–587
LinguisticNaming Linguistics Antipattern - The getter 'getHtmlEntry' should not return void linguistically 518–587
NPathComplexity The method 'getHtmlEntry(Map, int, StringBuilder, Locale, boolean, AppointmentDTO)' has an NPath complexity of 266 518–587
CyclomaticComplexity The method 'getResponseEntry(HttpServletRequest, int, List, boolean, Locale, AppointmentDTO)' has a cyclomatic complexity of 13. 627–702
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'field' 637
ConfusingTernary Avoid if (x != y) ..; else ..; 661–675
UnusedFormalParameter Avoid unused method parameters such as 'stringBuffer'. 802

fr/paris/lutece/plugins/appointment/service/FormMessageService.java

Rule Violation Line
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 61
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 63
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 64
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 65
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 66
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 67
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 68
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 69
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 70
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 71
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 72
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 73
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 74
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 75
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 76
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 77
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 78
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 79

fr/paris/lutece/plugins/appointment/service/FormService.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34–809
GodClass Possible God Class (WMC=72, ATFD=155, TCC=0.000%) 86–809
TooManyMethods This class has too many methods, consider refactoring it. 87–809
ExcessiveMethodLength Avoid really long methods. 105–226
NcssCount The method 'copyForm(int, String)' has a NCSS line count of 88. 105–226
ConfusingTernary Avoid if (x != y) ..; else ..; 258
ConfusingTernary Avoid if (x != y) ..; else ..; 259
CyclomaticComplexity The method 'fillAppointmentFormWithReservationRulePart(AppointmentFormDTO, ReservationRule)' has a cyclomatic complexity of 10. 468–515
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 746

fr/paris/lutece/plugins/appointment/service/ReservationRuleService.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 67–426
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 154
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 367

fr/paris/lutece/plugins/appointment/service/SlotDaemon.java

Rule Violation Line
CommentRequired Header comments are required 38–49

fr/paris/lutece/plugins/appointment/service/SlotSafeService.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34–1171
CommentRequired Header comments are required 86–1171
CyclomaticComplexity The class 'SlotSafeService' has a total cyclomatic complexity of 116 (highest 20). 86–1171
ExcessiveClassLength Avoid really long classes. 86–1171
GodClass Possible God Class (WMC=116, ATFD=232, TCC=1.709%) 86–1171
TooManyMethods This class has too many methods, consider refactoring it. 87–1171
ConfusingTernary Avoid if (x != y) ..; else ..; 166–175
ConfusingTernary Avoid if (x != y) ..; else ..; 208–219
NPathComplexity The method 'saveAppointment(AppointmentDTO, HttpServletRequest)' has an NPath complexity of 216 336–406
CyclomaticComplexity The method 'saveAppointment(AppointmentDTO, HttpServletRequest)' has a cyclomatic complexity of 16. 336–406
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 338
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 339
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 340
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 342
ControlStatementBraces This statement should have braces 354
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 393
ConfusingTernary Avoid if (x != y) ..; else ..; 468
DefaultPackage Use explicit scoping instead of the default package private level 485–526
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the updateRemaningPlacesWithAppointmentMovedDeletedOrCanceled method if you want a default access modifier 485–526
DefaultPackage Use explicit scoping instead of the default package private level 537–560
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the updateRemaningPlacesWithAppointmentReactivated method if you want a default access modifier 537–560
ConfusingTernary Avoid if (x != y) ..; else ..; 582–591
ConfusingTernary Avoid if (x != y) ..; else ..; 638–657
NcssCount The method 'updateSlotWithShift(Slot, LocalTime)' has a NCSS line count of 65. 683–824
CyclomaticComplexity The method 'updateSlotWithShift(Slot, LocalTime)' has a cyclomatic complexity of 11. 683–824
ExcessiveMethodLength Avoid really long methods. 683–824
ConfusingTernary Avoid if (x != y) ..; else ..; 727–734
ConfusingTernary Avoid if (x != y) ..; else ..; 844–852
ConfusingTernary Avoid if (x != y) ..; else ..; 894–921
ShortVariable Avoid variables with short names like it 982
CyclomaticComplexity The method 'saveSlots(AppointmentDTO, List, HttpServletRequest)' has a cyclomatic complexity of 20. 1005–1084
NPathComplexity The method 'saveSlots(AppointmentDTO, List, HttpServletRequest)' has an NPath complexity of 441 1005–1084
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1009
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1010

fr/paris/lutece/plugins/appointment/service/SlotService.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 62–518
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 141
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 222
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 286

fr/paris/lutece/plugins/appointment/service/TimeSlotService.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 64–576
ConfusingTernary Avoid if (x != y) ..; else ..; 217–224
ExcessiveMethodLength Avoid really long methods. 253–376

fr/paris/lutece/plugins/appointment/service/Utilities.java

Rule Violation Line
NonThreadSafeSingleton Singleton is not thread safe 66–69
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the resetFormatter method if you want a default access modifier 76–79
DefaultPackage Use explicit scoping instead of the default package private level 76–79
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 78

fr/paris/lutece/plugins/appointment/service/WeekDefinitionService.java

Rule Violation Line
GodClass Possible God Class (WMC=60, ATFD=45, TCC=0.000%) 63–568
TooManyMethods This class has too many methods, consider refactoring it. 64–568
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 301
CyclomaticComplexity The method 'assignWeekDefinition(int, WeekDefinition)' has a cyclomatic complexity of 11. 470–534
UnusedFormalParameter Avoid unused method parameters such as 'nIdForm'. 536
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 559

fr/paris/lutece/plugins/appointment/service/WorkingDayService.java

Rule Violation Line
LooseCoupling Avoid using implementation types like 'HashSet'; use the interface instead 341

fr/paris/lutece/plugins/appointment/service/anonymization/FormIdAnonymizationService.java

Rule Violation Line
CommentRequired Header comments are required 40–48

fr/paris/lutece/plugins/appointment/service/comment/IRedirectComment.java

Rule Violation Line
CommentRequired Header comments are required 38–55
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCodeFrom': the method is declared in an interface type 45
UnnecessaryModifier Unnecessary modifier 'public' on method 'makeBackUrl': the method is declared in an interface type 53

fr/paris/lutece/plugins/appointment/service/comment/RedirectManageAppointment.java

Rule Violation Line
CommentRequired Header comments are required 41–70

fr/paris/lutece/plugins/appointment/service/comment/RedirectSpecificWeek.java

Rule Violation Line
CommentRequired Header comments are required 41–70

fr/paris/lutece/plugins/appointment/service/entrytype/EntryTypeImage.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 107

fr/paris/lutece/plugins/appointment/service/export/AppointmentExportService.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34–380
GodClass Possible God Class (WMC=51, ATFD=49, TCC=0.000%) 81–380
CommentRequired Header comments are required 81–380
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 141
UnnecessaryModifier Unnecessary modifier 'final' on method 'writeWorkbook': private methods cannot be overridden 151–191
ShortVariable Avoid variables with short names like os 154
UnnecessaryModifier Unnecessary modifier 'final' on method 'createHeaderContent': private methods cannot be overridden 193–209
UnnecessaryModifier Unnecessary modifier 'final' on method 'createLineContent': private methods cannot be overridden 211–233
UnnecessaryModifier Unnecessary modifier 'final' on method 'addDefaultColumnValues': private methods cannot be overridden 235–300
CyclomaticComplexity The method 'addDefaultColumnValues(AppointmentDTO, Form, List, List, StateService, Locale)' has a cyclomatic complexity of 16. 235–300
NPathComplexity The method 'addDefaultColumnValues(AppointmentDTO, Form, List, List, StateService, Locale)' has an NPath complexity of 24576 235–300
UnnecessaryModifier Unnecessary modifier 'final' on method 'getEntryValue': private methods cannot be overridden 327–352
ShortVariable Avoid variables with short names like e 327
ShortVariable Avoid variables with short names like f 338
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 347
CommentRequired Public method and constructor comments are required 354–362
CommentRequired Public method and constructor comments are required 364–379

fr/paris/lutece/plugins/appointment/service/export/ExcelAppointmentGenerator.java

Rule Violation Line
CommentRequired Header comments are required 51–111
CommentRequired Public method and constructor comments are required 67–77
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 70

fr/paris/lutece/plugins/appointment/service/listeners/AppointmentSessionListener.java

Rule Violation Line
ShortVariable Avoid variables with short names like se 51
ShortVariable Avoid variables with short names like se 60

fr/paris/lutece/plugins/appointment/service/listeners/FormListenerManager.java

Rule Violation Line
CommentRequired Header comments are required 39–98

fr/paris/lutece/plugins/appointment/service/listeners/WeekDefinitionManagerListener.java

Rule Violation Line
CommentRequired Header comments are required 42–103

fr/paris/lutece/plugins/appointment/service/lock/SlotEditTask.java

Rule Violation Line
DataClass The class 'SlotEditTask' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=5) 47–113
CommentRequired Public method and constructor comments are required 60–64

fr/paris/lutece/plugins/appointment/service/lock/TimerForLockOnSlot.java

Rule Violation Line
CommentRequired Header comments are required 38–49
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 44–47

fr/paris/lutece/plugins/appointment/web/AbstractAppointmentFormAndSlotJspBean.java

Rule Violation Line
CommentRequired Header comments are required 67–364

fr/paris/lutece/plugins/appointment/web/AppointmentAnnualCalendarJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34–512
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 147
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 192
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 193
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 194
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 254
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 255
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 256
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 313
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 315
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 316
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 317
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slotImpacted' 402
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 438

fr/paris/lutece/plugins/appointment/web/AppointmentApp.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34–1893
ExcessiveClassLength Avoid really long classes. 132–1893
SingularField Perhaps '_strNbPlacesToTakeLength' could be replaced by a local variable. 299
NPathComplexity The method 'getViewAppointmentCalendar(HttpServletRequest)' has an NPath complexity of 116161920 313–593
ExcessiveMethodLength Avoid really long methods. 313–593
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 313–593
NcssCount The method 'getViewAppointmentCalendar(HttpServletRequest)' has a NCSS line count of 158. 313–593
CyclomaticComplexity The method 'getViewAppointmentCalendar(HttpServletRequest)' has a cyclomatic complexity of 38. 313–593
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 332
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 413
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 415
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 418–419
ConfusingTernary Avoid if (x != y) ..; else ..; 466–477
NcssCount The method 'getViewAppointmentForm(HttpServletRequest)' has a NCSS line count of 122. 604–830
ExcessiveMethodLength Avoid really long methods. 604–830
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 604–830
CyclomaticComplexity The method 'getViewAppointmentForm(HttpServletRequest)' has a cyclomatic complexity of 38. 604–830
NPathComplexity The method 'getViewAppointmentForm(HttpServletRequest)' has an NPath complexity of 76800000 604–830
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 606
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 607
LinguisticNaming Linguistics Antipattern - The variable 'isModification' indicates linguistically it is a boolean, but it is 'String' 655
ConfusingTernary Avoid if (x != y) ..; else ..; 658–691
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 667
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 702
ConfusingTernary Avoid if (x != y) ..; else ..; 710–772
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slot' 723
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slot' 727
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 734
ConfusingTernary Avoid if (x != y) ..; else ..; 798–806
NPathComplexity The method 'doValidateForm(HttpServletRequest)' has an NPath complexity of 6912 843–950
ExcessiveMethodLength Avoid really long methods. 843–950
NcssCount The method 'doValidateForm(HttpServletRequest)' has a NCSS line count of 69. 843–950
CyclomaticComplexity The method 'doValidateForm(HttpServletRequest)' has a cyclomatic complexity of 18. 843–950
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 843–950
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 851
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 856
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 857
ShortVariable Avoid variables with short names like lf 900
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 937
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 941
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 962–1009
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 966
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 970
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 978
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 979
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 982
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 1021–1103
NPathComplexity The method 'doMakeAppointment(HttpServletRequest)' has an NPath complexity of 1024 1021–1103
CyclomaticComplexity The method 'doMakeAppointment(HttpServletRequest)' has a cyclomatic complexity of 15. 1021–1103
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1032
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1033
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 1113–1145
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 1124
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1133
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1142
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1143
CyclomaticComplexity The method 'getViewChangeDateAppointment(HttpServletRequest)' has a cyclomatic complexity of 16. 1158–1246
NPathComplexity The method 'getViewChangeDateAppointment(HttpServletRequest)' has an NPath complexity of 2160 1158–1246
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 1158–1246
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1169
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slot' 1196
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slot' 1202
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1242
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 1256–1266
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1259
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1260
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 1275–1323
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1283
ConfusingTernary Avoid if (x != y) ..; else ..; 1286–1317
CyclomaticComplexity The method 'doCancelAppointment(HttpServletRequest)' has a cyclomatic complexity of 10. 1332–1384
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 1332–1384
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 1358
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1369
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 1394–1410
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1400
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 1422–1433
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 1579–1618
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1599
CyclomaticComplexity The method 'doProcessWorkflowAction(HttpServletRequest)' has a cyclomatic complexity of 15. 1628–1714
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 1628–1714
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1635
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 1706
CyclomaticComplexity The method 'checkMyLuteceAuthentication(AppointmentFormDTO, HttpServletRequest)' has a cyclomatic complexity of 14. 1826–1865

fr/paris/lutece/plugins/appointment/web/AppointmentCategoryJspBean.java

Rule Violation Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 124

fr/paris/lutece/plugins/appointment/web/AppointmentFormDashboardComponent.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 98

fr/paris/lutece/plugins/appointment/web/AppointmentFormEntryJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34–797
TooManyMethods This class has too many methods, consider refactoring it. 89–797
ImmutableField Private field '_entryService' could be made final; it is only initialized in the declaration or constructor. 153
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 189
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 219
CyclomaticComplexity The method 'doCreateEntry(HttpServletRequest)' has a cyclomatic complexity of 13. 242–291
NPathComplexity The method 'doCreateEntry(HttpServletRequest)' has an NPath complexity of 234 242–291
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'field' 316
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 321
CyclomaticComplexity The method 'doModifyEntry(HttpServletRequest)' has a cyclomatic complexity of 11. 350–404
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 364–367
ConfusingTernary Avoid if (x != y) ..; else ..; 375–384
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 375–384
ConfusingTernary Avoid if (x != y) ..; else ..; 393–400
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 449
CyclomaticComplexity The method 'doChangeOrderEntry(HttpServletRequest)' has a cyclomatic complexity of 11. 601–651
CommentRequired Public method and constructor comments are required 726–747

fr/paris/lutece/plugins/appointment/web/AppointmentFormFieldJspBean.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 136
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 456
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 457
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 458

fr/paris/lutece/plugins/appointment/web/AppointmentFormJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34–814
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 188
CallSuperInConstructor It is a good practice to call super() in a constructor 196–199
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 212
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 367
NPathComplexity The method 'doModifyAppointmentForm(HttpServletRequest)' has an NPath complexity of 384 448–503
CyclomaticComplexity The method 'doModifyAppointmentForm(HttpServletRequest)' has a cyclomatic complexity of 13. 448–503
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 499
CyclomaticComplexity The method 'doChangeFormActivation(HttpServletRequest)' has a cyclomatic complexity of 11. 515–559
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 617
CyclomaticComplexity The method 'importClosingDayFile(MultipartHttpServletRequest, int)' has a cyclomatic complexity of 11. 722–793

fr/paris/lutece/plugins/appointment/web/AppointmentJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34–1794
ExcessiveClassLength Avoid really long classes. 147–1794
TooManyMethods This class has too many methods, consider refactoring it. 148–1794
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 317
DefaultPackage Use explicit scoping instead of the default package private level 324
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the listFormErrors field if you want a default access modifier 324
DefaultPackage Use explicit scoping instead of the default package private level 325
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _moduleAppointmentDesk field if you want a default access modifier 325
NcssCount The method 'getViewCalendarManageAppointments(HttpServletRequest)' has a NCSS line count of 94. 336–503
CyclomaticComplexity The method 'getViewCalendarManageAppointments(HttpServletRequest)' has a cyclomatic complexity of 24. 336–503
ExcessiveMethodLength Avoid really long methods. 336–503
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 336–503
NPathComplexity The method 'getViewCalendarManageAppointments(HttpServletRequest)' has an NPath complexity of 62400 336–503
ConfusingTernary Avoid if (x != y) ..; else ..; 447–456
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 513
CyclomaticComplexity The method 'getManageAppointments(HttpServletRequest)' has a cyclomatic complexity of 21. 514–647
NPathComplexity The method 'getManageAppointments(HttpServletRequest)' has an NPath complexity of 10080 514–647
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 514–647
ExcessiveMethodLength Avoid really long methods. 514–647
NcssCount The method 'getManageAppointments(HttpServletRequest)' has a NCSS line count of 86. 514–647
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 529
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 530
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 531
ConfusingTernary Avoid if (x != y) ..; else ..; 535–558
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 657–664
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 677–691
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 679
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 701–708
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 720–741
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 722
CyclomaticComplexity The method 'getViewAppointment(HttpServletRequest)' has a cyclomatic complexity of 12. 755–831
NPathComplexity The method 'getViewAppointment(HttpServletRequest)' has an NPath complexity of 240 755–831
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 755–831
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 760
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 761
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 763
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 845–883
NPathComplexity The method 'getViewCreateAppointment(HttpServletRequest)' has an NPath complexity of 201480 895–1072
NcssCount The method 'getViewCreateAppointment(HttpServletRequest)' has a NCSS line count of 90. 895–1072
ExcessiveMethodLength Avoid really long methods. 895–1072
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 895–1072
CyclomaticComplexity The method 'getViewCreateAppointment(HttpServletRequest)' has a cyclomatic complexity of 29. 895–1072
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 899
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 901
LinguisticNaming Linguistics Antipattern - The variable 'isModification' indicates linguistically it is a boolean, but it is 'String' 910
ConfusingTernary Avoid if (x != y) ..; else ..; 913–955
ConfusingTernary Avoid if (x != y) ..; else ..; 962–976
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 969
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slot' 995
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slot' 1001
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1009
NPathComplexity The method 'doValidateForm(HttpServletRequest)' has an NPath complexity of 432 1084–1159
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 1084–1159
CyclomaticComplexity The method 'doValidateForm(HttpServletRequest)' has a cyclomatic complexity of 12. 1084–1159
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1087
ShortVariable Avoid variables with short names like lf 1125
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1157
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 1171–1261
NPathComplexity The method 'getViewChangeDateAppointment(HttpServletRequest)' has an NPath complexity of 612 1171–1261
CyclomaticComplexity The method 'getViewChangeDateAppointment(HttpServletRequest)' has a cyclomatic complexity of 14. 1171–1261
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slot' 1210
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slot' 1214
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1257
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 1271–1289
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 1301–1356
CyclomaticComplexity The method 'doMakeAppointment(HttpServletRequest)' has a cyclomatic complexity of 11. 1301–1356
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1303
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1351
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1354
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 1369–1417
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1372
ShortVariable Avoid variables with short names like os 1404
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 1432–1469
ShortVariable Avoid variables with short names like os 1456
CallSuperInConstructor It is a good practice to call super() in a constructor 1474–1477
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1481
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1482
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1483
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 1484
CyclomaticComplexity The method 'orderList(List)' has a cyclomatic complexity of 11. 1509–1554
MissingBreakInSwitch A switch statement does not contain a break 1518–1547
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 1586–1624
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1606
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1615
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 1634–1701
CyclomaticComplexity The method 'doProcessWorkflowAction(HttpServletRequest)' has a cyclomatic complexity of 14. 1634–1701
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 1690
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1694
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 1713–1753
CyclomaticComplexity The method 'doChangeAppointmentStatus(HttpServletRequest)' has a cyclomatic complexity of 11. 1713–1753
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1720

fr/paris/lutece/plugins/appointment/web/CalendarTemplateJspBean.java

Rule Violation Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 159
CyclomaticComplexity The method 'getCreateModifyTemplate(HttpServletRequest)' has a cyclomatic complexity of 10. 191–249

fr/paris/lutece/plugins/appointment/web/CommentJspBean.java

Rule Violation Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 151
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 170
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 200
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 202
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 203
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 204
ConfusingTernary Avoid if (x != y) ..; else ..; 232–241
NPathComplexity The method 'doModifyComment(HttpServletRequest)' has an NPath complexity of 216 291–341
CyclomaticComplexity The method 'doModifyComment(HttpServletRequest)' has a cyclomatic complexity of 11. 291–341
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 295
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 296
ConfusingTernary Avoid if (x != y) ..; else ..; 324–332
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 389
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 390
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 449

fr/paris/lutece/plugins/appointment/web/CommentNotificationJspBean.java

Rule Violation Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 103
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 118

fr/paris/lutece/plugins/appointment/web/SpecificWeekJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34–736
CyclomaticComplexity The method 'getViewManageSpecificWeek(HttpServletRequest)' has a cyclomatic complexity of 10. 180–243
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 182
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 184
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 257
CyclomaticComplexity The method 'doModifySlot(HttpServletRequest)' has a cyclomatic complexity of 16. 299–387
NPathComplexity The method 'doModifySlot(HttpServletRequest)' has an NPath complexity of 2898 299–387
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 301
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 302
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. 308
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 383
CyclomaticComplexity The method 'doModifyListSlots(HttpServletRequest)' has a cyclomatic complexity of 16. 398–514
ExcessiveMethodLength Avoid really long methods. 398–514
NPathComplexity The method 'doModifyListSlots(HttpServletRequest)' has an NPath complexity of 1440 398–514
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 400
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 401
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 402
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 403
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 406
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 407
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 408
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 409
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 411
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 412
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 413
ConfusingTernary Avoid if (x != y) ..; else ..; 465–478
ConfusingTernary Avoid if (x != y) ..; else ..; 499–509
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 510
NPathComplexity The method 'updateListSlots(List, int, int, boolean, boolean, boolean, LocalTime)' has an NPath complexity of 34056 597–705
ExcessiveMethodLength Avoid really long methods. 597–705
CyclomaticComplexity The method 'updateListSlots(List, int, int, boolean, boolean, boolean, LocalTime)' has a cyclomatic complexity of 27. 597–705
ConfusingTernary Avoid if (x != y) ..; else ..; 630
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 669
ControlStatementBraces This statement should have braces 692
ControlStatementBraces This statement should have braces 695

fr/paris/lutece/plugins/appointment/web/TypicalWeekJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34–1010
TooManyMethods This class has too many methods, consider refactoring it. 94–1010
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 180
CyclomaticComplexity The method 'getViewManageTypicalWeek(HttpServletRequest)' has a cyclomatic complexity of 11. 181–249
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 183
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 184
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 186
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 187
ConfusingTernary Avoid if (x != y) ..; else ..; 200–214
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 263
CyclomaticComplexity The method 'doModifyAdvancedParameters(HttpServletRequest)' has a cyclomatic complexity of 12. 293–366
NPathComplexity The method 'doModifyAdvancedParameters(HttpServletRequest)' has an NPath complexity of 256 293–366
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 302
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. 433
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 470
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 471
NcssCount The method 'doModifyTimeSlot(HttpServletRequest)' has a NCSS line count of 69. 515–635
CyclomaticComplexity The method 'doModifyTimeSlot(HttpServletRequest)' has a cyclomatic complexity of 18. 515–635
NPathComplexity The method 'doModifyTimeSlot(HttpServletRequest)' has an NPath complexity of 6336 515–635
ExcessiveMethodLength Avoid really long methods. 515–635
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 518
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 520
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 534
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 535
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 536
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 537
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 538
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 539
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 540
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 573
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 608
NcssCount The method 'doModifyListTimeSlot(HttpServletRequest)' has a NCSS line count of 86. 646–820
NPathComplexity The method 'doModifyListTimeSlot(HttpServletRequest)' has an NPath complexity of 114048 646–820
CyclomaticComplexity The method 'doModifyListTimeSlot(HttpServletRequest)' has a cyclomatic complexity of 25. 646–820
ExcessiveMethodLength Avoid really long methods. 646–820
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 649
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 650
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 652
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 653
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 654
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 666
PositionLiteralsFirstInCaseInsensitiveComparisons Position literals first in String comparisons for EqualsIgnoreCase 689
PositionLiteralsFirstInCaseInsensitiveComparisons Position literals first in String comparisons for EqualsIgnoreCase 689
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 695
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 795
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slotImpacted' 880
CyclomaticComplexity The method 'manageTheSlotsAndAppointmentsImpacted(List, List, int, int, boolean, boolean)' has a cyclomatic complexity of 10. 902–959
ConfusingTernary Avoid if (x != y) ..; else ..; 924–936
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slotImpacted' 943

fr/paris/lutece/plugins/appointment/web/dto/AppointmentDTO.java

Rule Violation Line
TooManyFields Too many fields 57–542
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 132
CommentRequired Public method and constructor comments are required 435–438

fr/paris/lutece/plugins/appointment/web/dto/AppointmentFilterDTO.java

Rule Violation Line
CommentRequired Header comments are required 42–301
ConfusingTernary Avoid if (x != y) ..; else ..; 121–128
ConfusingTernary Avoid if (x != y) ..; else ..; 139–146
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 145
ConfusingTernary Avoid if (x != y) ..; else ..; 156–163
ConfusingTernary Avoid if (x != y) ..; else ..; 175–182
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 181

fr/paris/lutece/plugins/appointment/web/dto/AppointmentFormDTO.java

Rule Violation Line
ExcessivePublicCount This class has a bunch of public methods and attributes 34–1169
TooManyFields Too many fields 54–1169
CyclomaticComplexity The class 'AppointmentFormDTO' has a total cyclomatic complexity of 87 (highest 2). 54–1169
ExcessiveClassLength Avoid really long classes. 54–1169
AvoidDuplicateLiterals The String literal "#i18n{portal.validation.message.notEmpty}" appears 7 times in this file; the first occurrence is on line 97 97
ConfusingTernary Avoid if (x != y) ..; else ..; 355–362
ConfusingTernary Avoid if (x != y) ..; else ..; 373–380
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 379
CommentRequired Public method and constructor comments are required 478–481
ConfusingTernary Avoid if (x != y) ..; else ..; 637–644
ConfusingTernary Avoid if (x != y) ..; else ..; 655–662
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 661
ConfusingTernary Avoid if (x != y) ..; else ..; 672–679
ConfusingTernary Avoid if (x != y) ..; else ..; 690–697
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 696
CommentRequired Public method and constructor comments are required 1151–1153
CommentRequired Public method and constructor comments are required 1155–1157
CommentRequired Public method and constructor comments are required 1159–1162
CommentRequired Public method and constructor comments are required 1164–1167

fr/paris/lutece/plugins/appointment/web/dto/AppointmentPackageDTO.java

Rule Violation Line
CommentRequired Header comments are required 40–99
CommentRequired Public method and constructor comments are required 95–98

fr/paris/lutece/plugins/appointment/web/dto/ReservationRuleDTO.java

Rule Violation Line
AvoidDuplicateLiterals The String literal "#i18n{portal.validation.message.notEmpty}" appears 6 times in this file; the first occurrence is on line 82 82

fr/paris/lutece/plugins/appointment/web/dto/ResponseRecapDTO.java

Rule Violation Line
ImmutableField Private field '_response' could be made final; it is only initialized in the declaration or constructor. 64
CallSuperInConstructor It is a good practice to call super() in a constructor 72–75
CallSuperInConstructor It is a good practice to call super() in a constructor 85–89
ShortVariable Avoid variables with short names like o 176
ShortVariable Avoid variables with short names like o 187

fr/paris/lutece/plugins/appointment/web/file/AppointmentFormIconService.java

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 65–68
MissingOverride The method 'getResourceTypeId()' is missing an @Override annotation. 112–115

fr/paris/lutece/plugins/appointment/web/portlet/AbstractPortletJspBean.java

Rule Violation Line
CommentRequired Header comments are required 43–77

fr/paris/lutece/plugins/appointment/web/portlet/AppointmentFormListPortletJspBean.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 65

fr/paris/lutece/plugins/appointment/web/portlet/AppointmentFormPortletJspBean.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 94
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 121
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 139

fr/paris/lutece/plugins/appointment/web/portlet/AppointmentPortletJspBean.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 65

Priority 4

fr/paris/lutece/plugins/appointment/business/appointment/Appointment.java

Rule Violation Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 181–184
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 471–474

fr/paris/lutece/plugins/appointment/business/form/Form.java

Rule Violation Line
ShortClassName Avoid short class names like Form 58–541
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 375–378
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 446–449

fr/paris/lutece/plugins/appointment/business/planning/TimeSlot.java

Rule Violation Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 223–226

fr/paris/lutece/plugins/appointment/business/rule/FormRule.java

Rule Violation Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 127–130
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 148–151
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 169–172
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 274–277

fr/paris/lutece/plugins/appointment/business/rule/ReservationRule.java

Rule Violation Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 191–194

fr/paris/lutece/plugins/appointment/business/slot/Slot.java

Rule Violation Line
ShortClassName Avoid short class names like Slot 51–514
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 322–325
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 343–346
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 364–367
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 490–498

fr/paris/lutece/plugins/appointment/business/user/User.java

Rule Violation Line
ShortClassName Avoid short class names like User 52–250

fr/paris/lutece/plugins/appointment/service/AppointmentResponseService.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.file.FileService' 44
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.file.FileServiceException' 45
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.file.IFileStoreServiceProvider' 46
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppLogService' 47
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeFile' 59

fr/paris/lutece/plugins/appointment/service/AppointmentService.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.commons.lang3.StringUtils.SPACE' due to existing import 'org.apache.commons.lang3.StringUtils' 362

fr/paris/lutece/plugins/appointment/service/AppointmentUtilities.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.business.user.AdminUserHome' 89

fr/paris/lutece/plugins/appointment/web/AppointmentFormEntryJspBean.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appointment.service.EntryTypeService' 48
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.genericattributes.business.EntryType' 54

fr/paris/lutece/plugins/appointment/web/dto/AppointmentDTO.java

Rule Violation Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 445–448
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 466–469

fr/paris/lutece/plugins/appointment/web/dto/AppointmentFormDTO.java

Rule Violation Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 488–491
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 509–512
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 530–533
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 551–554
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 572–575
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 593–596
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 614–617
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 705–708
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 726–729
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 747–750
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 810–813
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 852–855
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 936–939
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 1055–1058
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 1076–1079

fr/paris/lutece/plugins/appointment/web/dto/ReservationRuleDTO.java

Rule Violation Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 209–212

Files

fr/paris/lutece/plugins/appointment/business/AbstractDateConversion.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 39–159
ConfusingTernary Avoid if (x != y) ..; else ..; 3 96–103
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 102
ConfusingTernary Avoid if (x != y) ..; else ..; 3 150–157
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 156

fr/paris/lutece/plugins/appointment/business/appointment/Appointment.java

Rule Violation Priority Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 181–184
CommentRequired Public method and constructor comments are required 3 342–352
CommentRequired Public method and constructor comments are required 3 354–368
ConfusingTernary Avoid if (x != y) ..; else ..; 3 456–463
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 462
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 471–474

fr/paris/lutece/plugins/appointment/business/appointment/AppointmentDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 62–830
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 374
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 444
NPathComplexity The method 'addFilterParametersToDAOUtil(AppointmentFilterDTO, DAOUtil)' has an NPath complexity of 2304 3 497–561
CyclomaticComplexity The method 'addFilterParametersToDAOUtil(AppointmentFilterDTO, DAOUtil)' has a cyclomatic complexity of 13. 3 497–561
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 506
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 510
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 514
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 518
NPathComplexity The method 'getSqlQueryFromFilter(AppointmentFilterDTO, String)' has an NPath complexity of 1024 3 570–629
CyclomaticComplexity The method 'getSqlQueryFromFilter(AppointmentFilterDTO, String)' has a cyclomatic complexity of 11. 3 570–629
CyclomaticComplexity The method 'getOrderQuery(AppointmentFilterDTO, String)' has a cyclomatic complexity of 11. 3 631–680
MissingBreakInSwitch A switch statement does not contain a break 3 642–670
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 2 746
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 2 746
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 2 746
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 2 746
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 2 746
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 2 746
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 2 746
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 2 746
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 2 746
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 2 769
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 2 769
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 2 769
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 2 769
AvoidReassigningParameters Avoid reassigning parameters such as 'nIndex' 2 769

fr/paris/lutece/plugins/appointment/business/appointment/AppointmentHome.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 51–243
CommentRequired Public method and constructor comments are required 3 214–217

fr/paris/lutece/plugins/appointment/business/appointment/AppointmentSlot.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 38–112

fr/paris/lutece/plugins/appointment/business/appointment/IAppointmentDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 48–209

fr/paris/lutece/plugins/appointment/business/comment/CommentDAO.java

Rule Violation Priority Line
ConfusingTernary Avoid if (x != y) ..; else ..; 3 73–80
ConfusingTernary Avoid if (x != y) ..; else ..; 3 82–89

fr/paris/lutece/plugins/appointment/business/comment/ICommentNotificationConfigDAO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 40–73

fr/paris/lutece/plugins/appointment/business/form/Form.java

Rule Violation Priority Line
TooManyFields Too many fields 3 58–541
ShortClassName Avoid short class names like Form 4 58–541
ConfusingTernary Avoid if (x != y) ..; else ..; 3 306–313
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 312
ConfusingTernary Avoid if (x != y) ..; else ..; 3 360–367
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 366
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 375–378
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 446–449
CommentRequired Public method and constructor comments are required 3 521–524
CommentRequired Public method and constructor comments are required 3 526–529
CommentRequired Public method and constructor comments are required 3 531–534
CommentRequired Public method and constructor comments are required 3 536–539

fr/paris/lutece/plugins/appointment/business/form/FormDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 50–276

fr/paris/lutece/plugins/appointment/business/localization/LocalizationDAO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 41–195
ConfusingTernary Avoid if (x != y) ..; else ..; 3 171–178
ConfusingTernary Avoid if (x != y) ..; else ..; 3 179–186

fr/paris/lutece/plugins/appointment/business/message/FormMessage.java

Rule Violation Priority Line
TooManyFields Too many fields 3 44–543

fr/paris/lutece/plugins/appointment/business/planning/ClosingDay.java

Rule Violation Priority Line
ConfusingTernary Avoid if (x != y) ..; else ..; 3 134–141
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 140

fr/paris/lutece/plugins/appointment/business/planning/ClosingDayDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 52–237

fr/paris/lutece/plugins/appointment/business/planning/TimeSlot.java

Rule Violation Priority Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 223–226

fr/paris/lutece/plugins/appointment/business/planning/WeekDefinitionDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 52–245

fr/paris/lutece/plugins/appointment/business/portlet/AppointmentFormListPortlet.java

Rule Violation Priority Line
CallSuperInConstructor It is a good practice to call super() in a constructor 3 61–64

fr/paris/lutece/plugins/appointment/business/portlet/AppointmentFormPortlet.java

Rule Violation Priority Line
CallSuperInConstructor It is a good practice to call super() in a constructor 3 56–59

fr/paris/lutece/plugins/appointment/business/portlet/AppointmentFormPortletDAO.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like p 3 68
ShortVariable Avoid variables with short names like p 3 105

fr/paris/lutece/plugins/appointment/business/portlet/AppointmentPortlet.java

Rule Violation Priority Line
CallSuperInConstructor It is a good practice to call super() in a constructor 3 58–61

fr/paris/lutece/plugins/appointment/business/rule/FormRule.java

Rule Violation Priority Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 127–130
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 148–151
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 169–172
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 274–277

fr/paris/lutece/plugins/appointment/business/rule/FormRuleDAO.java

Rule Violation Priority Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 59–69

fr/paris/lutece/plugins/appointment/business/rule/ReservationRule.java

Rule Violation Priority Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 191–194

fr/paris/lutece/plugins/appointment/business/slot/ISlotDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 49–229
UnnecessaryModifier Unnecessary modifier 'public' on method 'deleteByIdForm': the method is declared in an interface type 3 88

fr/paris/lutece/plugins/appointment/business/slot/Period.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 39–105
DataClass The class 'Period' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=5) 3 39–105
CommentRequired Public method and constructor comments are required 3 57–61

fr/paris/lutece/plugins/appointment/business/slot/Slot.java

Rule Violation Priority Line
ShortClassName Avoid short class names like Slot 4 51–514
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 322–325
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 343–346
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 364–367
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 490–498
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 492

fr/paris/lutece/plugins/appointment/business/slot/SlotDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 53–375

fr/paris/lutece/plugins/appointment/business/slot/SlotHome.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 52–280

fr/paris/lutece/plugins/appointment/business/user/User.java

Rule Violation Priority Line
ShortClassName Avoid short class names like User 4 52–250

fr/paris/lutece/plugins/appointment/business/user/UserDAO.java

Rule Violation Priority Line
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 148
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 149
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 150

fr/paris/lutece/plugins/appointment/exception/AppointmentSavedException.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 36–58
CommentRequired Public method and constructor comments are required 3 53–57
ShortVariable Avoid variables with short names like e 3 53

fr/paris/lutece/plugins/appointment/exception/SlotEditTaskExpiredTimeException.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 36–58
ShortVariable Avoid variables with short names like e 3 53
CommentRequired Public method and constructor comments are required 3 53–57

fr/paris/lutece/plugins/appointment/exception/SlotFullException.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 36–58
ShortVariable Avoid variables with short names like e 3 53
CommentRequired Public method and constructor comments are required 3 53–57

fr/paris/lutece/plugins/appointment/log/LogUtilities.java

Rule Violation Priority Line
ClassNamingConventions The utility class name 'LogUtilities' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 42–67
CommentRequired Header comments are required 3 42–67
ShortVariable Avoid variables with short names like BY 3 46
CommentRequired Public method and constructor comments are required 3 56–65

fr/paris/lutece/plugins/appointment/service/AppointmentExecutorService.java

Rule Violation Priority Line
CommentRequired Enum comments are required 3 47–113
FieldNamingConventions The final field name '_executorService' doesn't match '[a-z][a-zA-Z0-9]*' 1 51
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 3 66
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 3 83

fr/paris/lutece/plugins/appointment/service/AppointmentResourceIdService.java

Rule Violation Priority Line
DataClass The class 'AppointmentResourceIdService' is suspected to be a Data Class (WOC=0.000%, NOPA=16, NOAM=0, WMC=1) 3 57–237
CallSuperInConstructor It is a good practice to call super() in a constructor 3 112–115
NcssCount The method 'register()' has a NCSS line count of 65. 3 121–202

fr/paris/lutece/plugins/appointment/service/AppointmentResponseService.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.file.FileService' 4 44
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.file.FileServiceException' 4 45
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.file.IFileStoreServiceProvider' 4 46
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppLogService' 4 47
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeFile' 4 59

fr/paris/lutece/plugins/appointment/service/AppointmentService.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34–649
GodClass Possible God Class (WMC=64, ATFD=109, TCC=0.000%) 3 79–649
TooManyMethods This class has too many methods, consider refactoring it. 3 80–649
DefaultPackage Use explicit scoping instead of the default package private level 3 181–226
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the buildAndCreateAppointment method if you want a default access modifier 3 181–226
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 215
ConfusingTernary Avoid if (x != y) ..; else ..; 3 355–368
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.commons.lang3.StringUtils.SPACE' due to existing import 'org.apache.commons.lang3.StringUtils' 4 362
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 424
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 440
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 472
CyclomaticComplexity The method 'updateAppointment(Appointment)' has a cyclomatic complexity of 11. 3 546–592
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 585
CommentRequired Public method and constructor comments are required 3 622–647
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 630

fr/paris/lutece/plugins/appointment/service/AppointmentShutdownService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 39–63

fr/paris/lutece/plugins/appointment/service/AppointmentUtilities.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34–1334
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.business.user.AdminUserHome' 4 89
ClassNamingConventions The utility class name 'AppointmentUtilities' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 102–1334
CyclomaticComplexity The class 'AppointmentUtilities' has a total cyclomatic complexity of 148 (highest 12). 3 102–1334
GodClass Possible God Class (WMC=148, ATFD=240, TCC=0.840%) 3 102–1334
ExcessiveClassLength Avoid really long classes. 3 102–1334
TooManyMethods This class has too many methods, consider refactoring it. 3 103–1334
FieldNamingConventions The constant name '_secheduledExecutor' doesn't match '[A-Z][A-Z_0-9]*' 1 124
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 3 125
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 222–235
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 276–280
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 314–317
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 347–350
CyclomaticComplexity The method 'checkNbMaxAppointmentsOnAGivenPeriod(AppointmentDTO, String, AppointmentFormDTO)' has a cyclomatic complexity of 11. 3 370–431
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 415–419
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 422–426
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 505
AvoidCatchingNPE Avoid catching NullPointerException; consider removing the cause of the NPE. 3 505
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 548
CommentRequired Public method and constructor comments are required 3 595–607
ControlStatementBraces This statement should have braces 3 660
CommentRequired Public method and constructor comments are required 3 665–669
ShortVariable Avoid variables with short names like nI 3 726
EmptyIfStmt Avoid empty if statements 3 837–839
EmptyIfStmt Avoid empty if statements 3 905–907
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 925
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 926
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 927
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 928
ConfusingTernary Avoid if (x != y) ..; else ..; 3 956–971
CommentRequired Public method and constructor comments are required 3 1056–1067
CommentRequired Public method and constructor comments are required 3 1069–1081
CyclomaticComplexity The method 'weekIsOpenInFO(AppointmentFormDTO, List, Locale)' has a cyclomatic complexity of 12. 3 1138–1180
ConfusingTernary Avoid if (x != y) ..; else ..; 3 1316–1326
AvoidCatchingNPE Avoid catching NullPointerException; consider removing the cause of the NPE. 3 1328
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 1328

fr/paris/lutece/plugins/appointment/service/CalendarBuilder.java

Rule Violation Priority Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 51–428
CommentRequired Header comments are required 3 51–428
NcssCount The method 'buildListSlot(int, Map, LocalDate, LocalDate)' has a NCSS line count of 78. 3 74–218
CyclomaticComplexity The method 'buildListSlot(int, Map, LocalDate, LocalDate)' has a cyclomatic complexity of 19. 3 74–218
ExcessiveMethodLength Avoid really long methods. 3 74–218
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 112
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 124
ConfusingTernary Avoid if (x != y) ..; else ..; 3 131–214
ConfusingTernary Avoid if (x != y) ..; else ..; 3 160–171
NcssCount The method 'buildListSlot(int, Map, LocalDate, LocalDate, int, boolean)' has a NCSS line count of 96. 3 237–402
NPathComplexity The method 'buildListSlot(int, Map, LocalDate, LocalDate, int, boolean)' has an NPath complexity of 699 3 237–402
ExcessiveMethodLength Avoid really long methods. 3 237–402
CyclomaticComplexity The method 'buildListSlot(int, Map, LocalDate, LocalDate, int, boolean)' has a cyclomatic complexity of 17. 3 237–402
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 287
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 298
ConfusingTernary Avoid if (x != y) ..; else ..; 3 341–352

fr/paris/lutece/plugins/appointment/service/ClosingDayService.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 208
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 227

fr/paris/lutece/plugins/appointment/service/CommentService.java

Rule Violation Priority Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 60–264
CommentRequired Header comments are required 3 60–264
CommentRequired Public method and constructor comments are required 3 195–231
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 244

fr/paris/lutece/plugins/appointment/service/EntryService.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34–812
CyclomaticComplexity The class 'EntryService' has a total cyclomatic complexity of 92 (highest 16). 3 76–812
GodClass Possible God Class (WMC=92, ATFD=186, TCC=0.585%) 3 76–812
TooManyMethods This class has too many methods, consider refactoring it. 3 77–812
CyclomaticComplexity The method 'moveDownEntryOrder(int, Entry)' has a cyclomatic complexity of 16. 3 139–234
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 166–199
CyclomaticComplexity The method 'moveUpEntryOrder(int, Entry)' has a cyclomatic complexity of 13. 3 244–318
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 269–299
CyclomaticComplexity The method 'getHtmlEntry(Map, int, StringBuilder, Locale, boolean, AppointmentDTO)' has a cyclomatic complexity of 16. 3 518–587
LinguisticNaming Linguistics Antipattern - The getter 'getHtmlEntry' should not return void linguistically 3 518–587
NPathComplexity The method 'getHtmlEntry(Map, int, StringBuilder, Locale, boolean, AppointmentDTO)' has an NPath complexity of 266 3 518–587
CyclomaticComplexity The method 'getResponseEntry(HttpServletRequest, int, List, boolean, Locale, AppointmentDTO)' has a cyclomatic complexity of 13. 3 627–702
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'field' 3 637
ConfusingTernary Avoid if (x != y) ..; else ..; 3 661–675
UnusedFormalParameter Avoid unused method parameters such as 'stringBuffer'. 3 802

fr/paris/lutece/plugins/appointment/service/FormMessageService.java

Rule Violation Priority Line
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 61
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 63
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 64
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 65
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 66
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 67
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 68
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 69
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 70
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 71
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 72
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 73
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 74
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 75
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 76
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 77
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 78
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 79

fr/paris/lutece/plugins/appointment/service/FormService.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34–809
GodClass Possible God Class (WMC=72, ATFD=155, TCC=0.000%) 3 86–809
TooManyMethods This class has too many methods, consider refactoring it. 3 87–809
ExcessiveMethodLength Avoid really long methods. 3 105–226
NcssCount The method 'copyForm(int, String)' has a NCSS line count of 88. 3 105–226
ConfusingTernary Avoid if (x != y) ..; else ..; 3 258
ConfusingTernary Avoid if (x != y) ..; else ..; 3 259
AvoidReassigningParameters Avoid reassigning parameters such as 'reservationRule' 2 411
CyclomaticComplexity The method 'fillAppointmentFormWithReservationRulePart(AppointmentFormDTO, ReservationRule)' has a cyclomatic complexity of 10. 3 468–515
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 746

fr/paris/lutece/plugins/appointment/service/ReservationRuleService.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 67–426
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 154
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 367

fr/paris/lutece/plugins/appointment/service/SlotDaemon.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 38–49

fr/paris/lutece/plugins/appointment/service/SlotSafeService.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34–1171
CommentRequired Header comments are required 3 86–1171
CyclomaticComplexity The class 'SlotSafeService' has a total cyclomatic complexity of 116 (highest 20). 3 86–1171
ExcessiveClassLength Avoid really long classes. 3 86–1171
GodClass Possible God Class (WMC=116, ATFD=232, TCC=1.709%) 3 86–1171
TooManyMethods This class has too many methods, consider refactoring it. 3 87–1171
FieldNamingConventions The constant name '_listSlot' doesn't match '[A-Z][A-Z_0-9]*' 1 89
FieldNamingConventions The constant name '_lockFormId' doesn't match '[A-Z][A-Z_0-9]*' 1 90
ConfusingTernary Avoid if (x != y) ..; else ..; 3 166–175
ConfusingTernary Avoid if (x != y) ..; else ..; 3 208–219
NPathComplexity The method 'saveAppointment(AppointmentDTO, HttpServletRequest)' has an NPath complexity of 216 3 336–406
CyclomaticComplexity The method 'saveAppointment(AppointmentDTO, HttpServletRequest)' has a cyclomatic complexity of 16. 3 336–406
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 338
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 339
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 340
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 342
ControlStatementBraces This statement should have braces 3 354
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 393
ConfusingTernary Avoid if (x != y) ..; else ..; 3 468
DefaultPackage Use explicit scoping instead of the default package private level 3 485–526
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the updateRemaningPlacesWithAppointmentMovedDeletedOrCanceled method if you want a default access modifier 3 485–526
DefaultPackage Use explicit scoping instead of the default package private level 3 537–560
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the updateRemaningPlacesWithAppointmentReactivated method if you want a default access modifier 3 537–560
ConfusingTernary Avoid if (x != y) ..; else ..; 3 582–591
ConfusingTernary Avoid if (x != y) ..; else ..; 3 638–657
NcssCount The method 'updateSlotWithShift(Slot, LocalTime)' has a NCSS line count of 65. 3 683–824
CyclomaticComplexity The method 'updateSlotWithShift(Slot, LocalTime)' has a cyclomatic complexity of 11. 3 683–824
ExcessiveMethodLength Avoid really long methods. 3 683–824
ConfusingTernary Avoid if (x != y) ..; else ..; 3 727–734
ConfusingTernary Avoid if (x != y) ..; else ..; 3 844–852
ConfusingTernary Avoid if (x != y) ..; else ..; 3 894–921
ShortVariable Avoid variables with short names like it 3 982
CyclomaticComplexity The method 'saveSlots(AppointmentDTO, List, HttpServletRequest)' has a cyclomatic complexity of 20. 3 1005–1084
NPathComplexity The method 'saveSlots(AppointmentDTO, List, HttpServletRequest)' has an NPath complexity of 441 3 1005–1084
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1009
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1010

fr/paris/lutece/plugins/appointment/service/SlotService.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 62–518
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 3 141
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 3 222
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 286

fr/paris/lutece/plugins/appointment/service/TimeSlotService.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 64–576
ConfusingTernary Avoid if (x != y) ..; else ..; 3 217–224
ExcessiveMethodLength Avoid really long methods. 3 253–376

fr/paris/lutece/plugins/appointment/service/Utilities.java

Rule Violation Priority Line
ClassNamingConventions The utility class name 'Utilities' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 48–128
NonThreadSafeSingleton Singleton is not thread safe 3 66–69
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the resetFormatter method if you want a default access modifier 3 76–79
DefaultPackage Use explicit scoping instead of the default package private level 3 76–79
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 78

fr/paris/lutece/plugins/appointment/service/WeekDefinitionService.java

Rule Violation Priority Line
GodClass Possible God Class (WMC=60, ATFD=45, TCC=0.000%) 3 63–568
TooManyMethods This class has too many methods, consider refactoring it. 3 64–568
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 3 301
CyclomaticComplexity The method 'assignWeekDefinition(int, WeekDefinition)' has a cyclomatic complexity of 11. 3 470–534
UnusedFormalParameter Avoid unused method parameters such as 'nIdForm'. 3 536
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 559

fr/paris/lutece/plugins/appointment/service/WorkingDayService.java

Rule Violation Priority Line
LooseCoupling Avoid using implementation types like 'HashSet'; use the interface instead 3 341

fr/paris/lutece/plugins/appointment/service/addon/AppointmentAddOnManager.java

Rule Violation Priority Line
ClassNamingConventions The utility class name 'AppointmentAddOnManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 47–77

fr/paris/lutece/plugins/appointment/service/anonymization/FormIdAnonymizationService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 40–48

fr/paris/lutece/plugins/appointment/service/comment/IRedirectComment.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 38–55
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCodeFrom': the method is declared in an interface type 3 45
UnnecessaryModifier Unnecessary modifier 'public' on method 'makeBackUrl': the method is declared in an interface type 3 53

fr/paris/lutece/plugins/appointment/service/comment/RedirectManageAppointment.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 41–70

fr/paris/lutece/plugins/appointment/service/comment/RedirectSpecificWeek.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 41–70

fr/paris/lutece/plugins/appointment/service/entrytype/EntryTypeImage.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 107

fr/paris/lutece/plugins/appointment/service/export/AppointmentExportService.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34–380
GodClass Possible God Class (WMC=51, ATFD=49, TCC=0.000%) 3 81–380
CommentRequired Header comments are required 3 81–380
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 141
UnnecessaryModifier Unnecessary modifier 'final' on method 'writeWorkbook': private methods cannot be overridden 3 151–191
ShortVariable Avoid variables with short names like os 3 154
UnnecessaryModifier Unnecessary modifier 'final' on method 'createHeaderContent': private methods cannot be overridden 3 193–209
UnnecessaryModifier Unnecessary modifier 'final' on method 'createLineContent': private methods cannot be overridden 3 211–233
UnnecessaryModifier Unnecessary modifier 'final' on method 'addDefaultColumnValues': private methods cannot be overridden 3 235–300
CyclomaticComplexity The method 'addDefaultColumnValues(AppointmentDTO, Form, List, List, StateService, Locale)' has a cyclomatic complexity of 16. 3 235–300
NPathComplexity The method 'addDefaultColumnValues(AppointmentDTO, Form, List, List, StateService, Locale)' has an NPath complexity of 24576 3 235–300
UnnecessaryModifier Unnecessary modifier 'final' on method 'getEntryValue': private methods cannot be overridden 3 327–352
ShortVariable Avoid variables with short names like e 3 327
ShortVariable Avoid variables with short names like f 3 338
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 3 347
CommentRequired Public method and constructor comments are required 3 354–362
CommentRequired Public method and constructor comments are required 3 364–379

fr/paris/lutece/plugins/appointment/service/export/ExcelAppointmentGenerator.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 51–111
FieldNamingConventions The final field name '_fileName' doesn't match '[a-z][a-zA-Z0-9]*' 1 60
FieldNamingConventions The final field name '_fileDescription' doesn't match '[a-z][a-zA-Z0-9]*' 1 61
FieldNamingConventions The final field name '_defaultColumnList' doesn't match '[a-z][a-zA-Z0-9]*' 1 62
FieldNamingConventions The final field name '_locale' doesn't match '[a-z][a-zA-Z0-9]*' 1 63
FieldNamingConventions The final field name '_listAppointmentsDTO' doesn't match '[a-z][a-zA-Z0-9]*' 1 64
FieldNamingConventions The final field name '_entryList' doesn't match '[a-z][a-zA-Z0-9]*' 1 65
CommentRequired Public method and constructor comments are required 3 67–77
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 70

fr/paris/lutece/plugins/appointment/service/listeners/AppointmentListenerManager.java

Rule Violation Priority Line
ClassNamingConventions The utility class name 'AppointmentListenerManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 51–174

fr/paris/lutece/plugins/appointment/service/listeners/AppointmentSessionListener.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like se 3 51
ShortVariable Avoid variables with short names like se 3 60

fr/paris/lutece/plugins/appointment/service/listeners/FormListenerManager.java

Rule Violation Priority Line
ClassNamingConventions The utility class name 'FormListenerManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 39–98
CommentRequired Header comments are required 3 39–98

fr/paris/lutece/plugins/appointment/service/listeners/SlotListenerManager.java

Rule Violation Priority Line
ClassNamingConventions The utility class name 'SlotListenerManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 48–126

fr/paris/lutece/plugins/appointment/service/listeners/WeekDefinitionManagerListener.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 42–103
ClassNamingConventions The utility class name 'WeekDefinitionManagerListener' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 42–103

fr/paris/lutece/plugins/appointment/service/lock/SlotEditTask.java

Rule Violation Priority Line
DataClass The class 'SlotEditTask' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=5) 3 47–113
CommentRequired Public method and constructor comments are required 3 60–64

fr/paris/lutece/plugins/appointment/service/lock/TimerForLockOnSlot.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 38–49
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 44–47

fr/paris/lutece/plugins/appointment/web/AbstractAppointmentFormAndSlotJspBean.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 67–364
FieldNamingConventions The constant name '_captchaSecurityService' doesn't match '[A-Z][A-Z_0-9]*' 1 113

fr/paris/lutece/plugins/appointment/web/AppointmentAnnualCalendarJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34–512
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 147
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 192
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 193
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 194
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 254
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 255
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 256
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 313
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 315
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 316
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 317
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slotImpacted' 3 402
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 438

fr/paris/lutece/plugins/appointment/web/AppointmentApp.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34–1893
ExcessiveClassLength Avoid really long classes. 3 132–1893
SingularField Perhaps '_strNbPlacesToTakeLength' could be replaced by a local variable. 3 299
NPathComplexity The method 'getViewAppointmentCalendar(HttpServletRequest)' has an NPath complexity of 116161920 3 313–593
ExcessiveMethodLength Avoid really long methods. 3 313–593
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 313–593
NcssCount The method 'getViewAppointmentCalendar(HttpServletRequest)' has a NCSS line count of 158. 3 313–593
CyclomaticComplexity The method 'getViewAppointmentCalendar(HttpServletRequest)' has a cyclomatic complexity of 38. 3 313–593
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 332
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 413
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 415
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 418–419
ConfusingTernary Avoid if (x != y) ..; else ..; 3 466–477
NcssCount The method 'getViewAppointmentForm(HttpServletRequest)' has a NCSS line count of 122. 3 604–830
ExcessiveMethodLength Avoid really long methods. 3 604–830
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 604–830
CyclomaticComplexity The method 'getViewAppointmentForm(HttpServletRequest)' has a cyclomatic complexity of 38. 3 604–830
NPathComplexity The method 'getViewAppointmentForm(HttpServletRequest)' has an NPath complexity of 76800000 3 604–830
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 606
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 607
LinguisticNaming Linguistics Antipattern - The variable 'isModification' indicates linguistically it is a boolean, but it is 'String' 3 655
ConfusingTernary Avoid if (x != y) ..; else ..; 3 658–691
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 667
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 702
ConfusingTernary Avoid if (x != y) ..; else ..; 3 710–772
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slot' 3 723
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slot' 3 727
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 734
ConfusingTernary Avoid if (x != y) ..; else ..; 3 798–806
NPathComplexity The method 'doValidateForm(HttpServletRequest)' has an NPath complexity of 6912 3 843–950
ExcessiveMethodLength Avoid really long methods. 3 843–950
NcssCount The method 'doValidateForm(HttpServletRequest)' has a NCSS line count of 69. 3 843–950
CyclomaticComplexity The method 'doValidateForm(HttpServletRequest)' has a cyclomatic complexity of 18. 3 843–950
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 843–950
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 851
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 856
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 857
ShortVariable Avoid variables with short names like lf 3 900
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 937
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 941
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 962–1009
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 966
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 970
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 978
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 979
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 982
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 1021–1103
NPathComplexity The method 'doMakeAppointment(HttpServletRequest)' has an NPath complexity of 1024 3 1021–1103
CyclomaticComplexity The method 'doMakeAppointment(HttpServletRequest)' has a cyclomatic complexity of 15. 3 1021–1103
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1032
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1033
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 1113–1145
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 1124
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1133
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1142
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1143
CyclomaticComplexity The method 'getViewChangeDateAppointment(HttpServletRequest)' has a cyclomatic complexity of 16. 3 1158–1246
NPathComplexity The method 'getViewChangeDateAppointment(HttpServletRequest)' has an NPath complexity of 2160 3 1158–1246
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 1158–1246
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1169
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slot' 3 1196
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slot' 3 1202
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1242
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 1256–1266
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1259
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1260
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 1275–1323
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1283
ConfusingTernary Avoid if (x != y) ..; else ..; 3 1286–1317
CyclomaticComplexity The method 'doCancelAppointment(HttpServletRequest)' has a cyclomatic complexity of 10. 3 1332–1384
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 1332–1384
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 1358
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1369
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 1394–1410
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1400
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 1422–1433
AvoidReassigningParameters Avoid reassigning parameters such as 'model' 2 1448
AvoidReassigningParameters Avoid reassigning parameters such as 'model' 2 1493
AvoidReassigningParameters Avoid reassigning parameters such as 'model' 2 1534
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 1579–1618
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1599
CyclomaticComplexity The method 'doProcessWorkflowAction(HttpServletRequest)' has a cyclomatic complexity of 15. 3 1628–1714
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 1628–1714
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1635
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 1706
CyclomaticComplexity The method 'checkMyLuteceAuthentication(AppointmentFormDTO, HttpServletRequest)' has a cyclomatic complexity of 14. 3 1826–1865

fr/paris/lutece/plugins/appointment/web/AppointmentCategoryJspBean.java

Rule Violation Priority Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 124

fr/paris/lutece/plugins/appointment/web/AppointmentFormDashboardComponent.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 98

fr/paris/lutece/plugins/appointment/web/AppointmentFormEntryJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34–797
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.appointment.service.EntryTypeService' 4 48
UnusedImports Avoid unused imports such as 'fr.paris.lutece.plugins.genericattributes.business.EntryType' 4 54
TooManyMethods This class has too many methods, consider refactoring it. 3 89–797
ImmutableField Private field '_entryService' could be made final; it is only initialized in the declaration or constructor. 3 153
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 189
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 219
CyclomaticComplexity The method 'doCreateEntry(HttpServletRequest)' has a cyclomatic complexity of 13. 3 242–291
NPathComplexity The method 'doCreateEntry(HttpServletRequest)' has an NPath complexity of 234 3 242–291
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'field' 3 316
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 321
CyclomaticComplexity The method 'doModifyEntry(HttpServletRequest)' has a cyclomatic complexity of 11. 3 350–404
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 364–367
ConfusingTernary Avoid if (x != y) ..; else ..; 3 375–384
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 375–384
ConfusingTernary Avoid if (x != y) ..; else ..; 3 393–400
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 449
CyclomaticComplexity The method 'doChangeOrderEntry(HttpServletRequest)' has a cyclomatic complexity of 11. 3 601–651
CommentRequired Public method and constructor comments are required 3 726–747

fr/paris/lutece/plugins/appointment/web/AppointmentFormFieldJspBean.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 136
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 456
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 457
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 458

fr/paris/lutece/plugins/appointment/web/AppointmentFormJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34–814
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 3 188
CallSuperInConstructor It is a good practice to call super() in a constructor 3 196–199
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 212
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 367
NPathComplexity The method 'doModifyAppointmentForm(HttpServletRequest)' has an NPath complexity of 384 3 448–503
CyclomaticComplexity The method 'doModifyAppointmentForm(HttpServletRequest)' has a cyclomatic complexity of 13. 3 448–503
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 499
CyclomaticComplexity The method 'doChangeFormActivation(HttpServletRequest)' has a cyclomatic complexity of 11. 3 515–559
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 617
CyclomaticComplexity The method 'importClosingDayFile(MultipartHttpServletRequest, int)' has a cyclomatic complexity of 11. 3 722–793

fr/paris/lutece/plugins/appointment/web/AppointmentJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34–1794
ExcessiveClassLength Avoid really long classes. 3 147–1794
TooManyMethods This class has too many methods, consider refactoring it. 3 148–1794
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 3 317
DefaultPackage Use explicit scoping instead of the default package private level 3 324
FieldNamingConventions The field name 'listFormErrors' doesn't match '_[a-z][a-zA-Z0-9]*' 1 324
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the listFormErrors field if you want a default access modifier 3 324
DefaultPackage Use explicit scoping instead of the default package private level 3 325
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the _moduleAppointmentDesk field if you want a default access modifier 3 325
NcssCount The method 'getViewCalendarManageAppointments(HttpServletRequest)' has a NCSS line count of 94. 3 336–503
CyclomaticComplexity The method 'getViewCalendarManageAppointments(HttpServletRequest)' has a cyclomatic complexity of 24. 3 336–503
ExcessiveMethodLength Avoid really long methods. 3 336–503
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 336–503
NPathComplexity The method 'getViewCalendarManageAppointments(HttpServletRequest)' has an NPath complexity of 62400 3 336–503
ConfusingTernary Avoid if (x != y) ..; else ..; 3 447–456
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 513
CyclomaticComplexity The method 'getManageAppointments(HttpServletRequest)' has a cyclomatic complexity of 21. 3 514–647
NPathComplexity The method 'getManageAppointments(HttpServletRequest)' has an NPath complexity of 10080 3 514–647
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 514–647
ExcessiveMethodLength Avoid really long methods. 3 514–647
NcssCount The method 'getManageAppointments(HttpServletRequest)' has a NCSS line count of 86. 3 514–647
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 529
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 530
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 531
ConfusingTernary Avoid if (x != y) ..; else ..; 3 535–558
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 657–664
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 677–691
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 679
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 701–708
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 720–741
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 722
CyclomaticComplexity The method 'getViewAppointment(HttpServletRequest)' has a cyclomatic complexity of 12. 3 755–831
NPathComplexity The method 'getViewAppointment(HttpServletRequest)' has an NPath complexity of 240 3 755–831
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 755–831
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 760
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 761
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 763
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 845–883
NPathComplexity The method 'getViewCreateAppointment(HttpServletRequest)' has an NPath complexity of 201480 3 895–1072
NcssCount The method 'getViewCreateAppointment(HttpServletRequest)' has a NCSS line count of 90. 3 895–1072
ExcessiveMethodLength Avoid really long methods. 3 895–1072
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 895–1072
CyclomaticComplexity The method 'getViewCreateAppointment(HttpServletRequest)' has a cyclomatic complexity of 29. 3 895–1072
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 899
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 901
LinguisticNaming Linguistics Antipattern - The variable 'isModification' indicates linguistically it is a boolean, but it is 'String' 3 910
ConfusingTernary Avoid if (x != y) ..; else ..; 3 913–955
ConfusingTernary Avoid if (x != y) ..; else ..; 3 962–976
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 969
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slot' 3 995
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slot' 3 1001
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1009
NPathComplexity The method 'doValidateForm(HttpServletRequest)' has an NPath complexity of 432 3 1084–1159
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 1084–1159
CyclomaticComplexity The method 'doValidateForm(HttpServletRequest)' has a cyclomatic complexity of 12. 3 1084–1159
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1087
ShortVariable Avoid variables with short names like lf 3 1125
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1157
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 1171–1261
NPathComplexity The method 'getViewChangeDateAppointment(HttpServletRequest)' has an NPath complexity of 612 3 1171–1261
CyclomaticComplexity The method 'getViewChangeDateAppointment(HttpServletRequest)' has a cyclomatic complexity of 14. 3 1171–1261
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slot' 3 1210
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slot' 3 1214
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1257
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 1271–1289
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 1301–1356
CyclomaticComplexity The method 'doMakeAppointment(HttpServletRequest)' has a cyclomatic complexity of 11. 3 1301–1356
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1303
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1351
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1354
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 1369–1417
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1372
ShortVariable Avoid variables with short names like os 3 1404
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 1432–1469
ShortVariable Avoid variables with short names like os 3 1456
CallSuperInConstructor It is a good practice to call super() in a constructor 3 1474–1477
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1481
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1482
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1483
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 1484
CyclomaticComplexity The method 'orderList(List)' has a cyclomatic complexity of 11. 3 1509–1554
MissingBreakInSwitch A switch statement does not contain a break 3 1518–1547
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 1586–1624
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1606
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1615
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 1634–1701
CyclomaticComplexity The method 'doProcessWorkflowAction(HttpServletRequest)' has a cyclomatic complexity of 14. 3 1634–1701
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 1690
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1694
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 1713–1753
CyclomaticComplexity The method 'doChangeAppointmentStatus(HttpServletRequest)' has a cyclomatic complexity of 11. 3 1713–1753
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1720

fr/paris/lutece/plugins/appointment/web/CalendarTemplateJspBean.java

Rule Violation Priority Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 159
CyclomaticComplexity The method 'getCreateModifyTemplate(HttpServletRequest)' has a cyclomatic complexity of 10. 3 191–249

fr/paris/lutece/plugins/appointment/web/CommentJspBean.java

Rule Violation Priority Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 151
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 170
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 200
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 202
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 203
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 204
ConfusingTernary Avoid if (x != y) ..; else ..; 3 232–241
NPathComplexity The method 'doModifyComment(HttpServletRequest)' has an NPath complexity of 216 3 291–341
CyclomaticComplexity The method 'doModifyComment(HttpServletRequest)' has a cyclomatic complexity of 11. 3 291–341
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 295
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 296
ConfusingTernary Avoid if (x != y) ..; else ..; 3 324–332
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 389
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 390
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 449

fr/paris/lutece/plugins/appointment/web/CommentNotificationJspBean.java

Rule Violation Priority Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 103
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 118

fr/paris/lutece/plugins/appointment/web/SpecificWeekJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34–736
CyclomaticComplexity The method 'getViewManageSpecificWeek(HttpServletRequest)' has a cyclomatic complexity of 10. 3 180–243
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 182
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 184
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 257
CyclomaticComplexity The method 'doModifySlot(HttpServletRequest)' has a cyclomatic complexity of 16. 3 299–387
NPathComplexity The method 'doModifySlot(HttpServletRequest)' has an NPath complexity of 2898 3 299–387
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 301
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 302
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 308
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 383
CyclomaticComplexity The method 'doModifyListSlots(HttpServletRequest)' has a cyclomatic complexity of 16. 3 398–514
ExcessiveMethodLength Avoid really long methods. 3 398–514
NPathComplexity The method 'doModifyListSlots(HttpServletRequest)' has an NPath complexity of 1440 3 398–514
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 400
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 401
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 402
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 403
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 406
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 407
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 408
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 409
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 411
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 412
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 413
GuardLogStatement Logger calls should be surrounded by log level guards. 2 450
ConfusingTernary Avoid if (x != y) ..; else ..; 3 465–478
ConfusingTernary Avoid if (x != y) ..; else ..; 3 499–509
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 510
NPathComplexity The method 'updateListSlots(List, int, int, boolean, boolean, boolean, LocalTime)' has an NPath complexity of 34056 3 597–705
ExcessiveMethodLength Avoid really long methods. 3 597–705
CyclomaticComplexity The method 'updateListSlots(List, int, int, boolean, boolean, boolean, LocalTime)' has a cyclomatic complexity of 27. 3 597–705
ConfusingTernary Avoid if (x != y) ..; else ..; 3 630
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 669
ControlStatementBraces This statement should have braces 3 692
ControlStatementBraces This statement should have braces 3 695

fr/paris/lutece/plugins/appointment/web/TypicalWeekJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34–1010
TooManyMethods This class has too many methods, consider refactoring it. 3 94–1010
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 180
CyclomaticComplexity The method 'getViewManageTypicalWeek(HttpServletRequest)' has a cyclomatic complexity of 11. 3 181–249
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 183
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 184
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 186
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 187
ConfusingTernary Avoid if (x != y) ..; else ..; 3 200–214
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 263
CyclomaticComplexity The method 'doModifyAdvancedParameters(HttpServletRequest)' has a cyclomatic complexity of 12. 3 293–366
NPathComplexity The method 'doModifyAdvancedParameters(HttpServletRequest)' has an NPath complexity of 256 3 293–366
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 302
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 433
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 470
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 471
NcssCount The method 'doModifyTimeSlot(HttpServletRequest)' has a NCSS line count of 69. 3 515–635
CyclomaticComplexity The method 'doModifyTimeSlot(HttpServletRequest)' has a cyclomatic complexity of 18. 3 515–635
NPathComplexity The method 'doModifyTimeSlot(HttpServletRequest)' has an NPath complexity of 6336 3 515–635
ExcessiveMethodLength Avoid really long methods. 3 515–635
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 518
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 520
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 534
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 535
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 536
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 537
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 538
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 539
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 540
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 573
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 608
NcssCount The method 'doModifyListTimeSlot(HttpServletRequest)' has a NCSS line count of 86. 3 646–820
NPathComplexity The method 'doModifyListTimeSlot(HttpServletRequest)' has an NPath complexity of 114048 3 646–820
CyclomaticComplexity The method 'doModifyListTimeSlot(HttpServletRequest)' has a cyclomatic complexity of 25. 3 646–820
ExcessiveMethodLength Avoid really long methods. 3 646–820
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 649
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 650
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 652
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 653
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 654
GuardLogStatement Logger calls should be surrounded by log level guards. 2 661
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 666
PositionLiteralsFirstInCaseInsensitiveComparisons Position literals first in String comparisons for EqualsIgnoreCase 3 689
PositionLiteralsFirstInCaseInsensitiveComparisons Position literals first in String comparisons for EqualsIgnoreCase 3 689
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 695
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 795
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slotImpacted' 3 880
AvoidReassigningParameters Avoid reassigning parameters such as 'nMaxCapacity' 2 902
CyclomaticComplexity The method 'manageTheSlotsAndAppointmentsImpacted(List, List, int, int, boolean, boolean)' has a cyclomatic complexity of 10. 3 902–959
ConfusingTernary Avoid if (x != y) ..; else ..; 3 924–936
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'slotImpacted' 3 943
AvoidReassigningParameters Avoid reassigning parameters such as 'slot' 2 975
AvoidReassigningParameters Avoid reassigning parameters such as 'nNewNbMaxCapacity' 2 975

fr/paris/lutece/plugins/appointment/web/dto/AppointmentDTO.java

Rule Violation Priority Line
TooManyFields Too many fields 3 57–542
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 132
CommentRequired Public method and constructor comments are required 3 435–438
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 445–448
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 466–469

fr/paris/lutece/plugins/appointment/web/dto/AppointmentFilterDTO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 42–301
ConfusingTernary Avoid if (x != y) ..; else ..; 3 121–128
ConfusingTernary Avoid if (x != y) ..; else ..; 3 139–146
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 145
ConfusingTernary Avoid if (x != y) ..; else ..; 3 156–163
ConfusingTernary Avoid if (x != y) ..; else ..; 3 175–182
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 181

fr/paris/lutece/plugins/appointment/web/dto/AppointmentFormDTO.java

Rule Violation Priority Line
ExcessivePublicCount This class has a bunch of public methods and attributes 3 34–1169
TooManyFields Too many fields 3 54–1169
CyclomaticComplexity The class 'AppointmentFormDTO' has a total cyclomatic complexity of 87 (highest 2). 3 54–1169
ExcessiveClassLength Avoid really long classes. 3 54–1169
AvoidDuplicateLiterals The String literal "#i18n{portal.validation.message.notEmpty}" appears 7 times in this file; the first occurrence is on line 97 3 97
ConfusingTernary Avoid if (x != y) ..; else ..; 3 355–362
ConfusingTernary Avoid if (x != y) ..; else ..; 3 373–380
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 379
CommentRequired Public method and constructor comments are required 3 478–481
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 488–491
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 509–512
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 530–533
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 551–554
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 572–575
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 593–596
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 614–617
ConfusingTernary Avoid if (x != y) ..; else ..; 3 637–644
ConfusingTernary Avoid if (x != y) ..; else ..; 3 655–662
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 661
ConfusingTernary Avoid if (x != y) ..; else ..; 3 672–679
ConfusingTernary Avoid if (x != y) ..; else ..; 3 690–697
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 696
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 705–708
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 726–729
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 747–750
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 810–813
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 852–855
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 936–939
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 1055–1058
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 1076–1079
CommentRequired Public method and constructor comments are required 3 1151–1153
CommentRequired Public method and constructor comments are required 3 1155–1157
CommentRequired Public method and constructor comments are required 3 1159–1162
CommentRequired Public method and constructor comments are required 3 1164–1167

fr/paris/lutece/plugins/appointment/web/dto/AppointmentPackageDTO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 40–99
CommentRequired Public method and constructor comments are required 3 95–98

fr/paris/lutece/plugins/appointment/web/dto/ReservationRuleDTO.java

Rule Violation Priority Line
AvoidDuplicateLiterals The String literal "#i18n{portal.validation.message.notEmpty}" appears 6 times in this file; the first occurrence is on line 82 3 82
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 209–212

fr/paris/lutece/plugins/appointment/web/dto/ResponseRecapDTO.java

Rule Violation Priority Line
ImmutableField Private field '_response' could be made final; it is only initialized in the declaration or constructor. 3 64
CallSuperInConstructor It is a good practice to call super() in a constructor 3 72–75
CallSuperInConstructor It is a good practice to call super() in a constructor 3 85–89
ShortVariable Avoid variables with short names like o 3 176
ShortVariable Avoid variables with short names like o 3 187

fr/paris/lutece/plugins/appointment/web/file/AppointmentFormIconService.java

Rule Violation Priority Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 47–129
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 65–68
MissingOverride The method 'getResourceTypeId()' is missing an @Override annotation. 3 112–115

fr/paris/lutece/plugins/appointment/web/portlet/AbstractPortletJspBean.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 43–77

fr/paris/lutece/plugins/appointment/web/portlet/AppointmentFormListPortletJspBean.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 65

fr/paris/lutece/plugins/appointment/web/portlet/AppointmentFormPortletJspBean.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 94
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 121
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 139

fr/paris/lutece/plugins/appointment/web/portlet/AppointmentPortletJspBean.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 65