vzakharchenko/keycloak-api-gateway

View on GitHub

Showing 5 of 52 total issues

Function execute has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  async execute(req: RequestObject, res: ResponseObject, next: any, context: CustomPageHandlerContext): Promise<void> {

    if (!context.options.multiTenantOptions) {
      throw new Error('multiTenantOptions is not defined');
    }
Severity: Minor
Found in src/handlers/MultiTenantTenantRestApiHandler.ts - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

            return;
    Severity: Major
    Found in src/apigateway/ApiGateway.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return;
      Severity: Major
      Found in src/apigateway/ApiGateway.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return;
        Severity: Major
        Found in src/apigateway/ApiGateway.ts - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                  return;
          Severity: Major
          Found in src/apigateway/ApiGateway.ts - About 30 mins to fix
            Severity
            Category
            Status
            Source
            Language