cityssm/attendance-tracking

View on GitHub

Showing 3 of 134 total issues

Function openCallOutList has 511 lines of code (exceeds 500 allowed). Consider refactoring.
Open

  function openCallOutList(
    listId: string,
    onUpdateCallbackFunction?: () => void
  ): void {
    currentListId = listId
Severity: Major
Found in public-typescript/main.callOuts.ts - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

        return
    Severity: Major
    Found in handlers/selfService-post/doAddEmployeeToCallOutList.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

        return {
          success: true,
          employeeNumber: employee.employeeNumber,
          employeeGivenName: employee.employeeGivenName,
          employeeSurname: employee.employeeSurname
      Severity: Major
      Found in helpers/functions.selfService.ts - About 30 mins to fix
        Severity
        Category
        Status
        Source
        Language