integreat-io/integreat-transporter-redis

View on GitHub

Showing 5 of 5 total issues

Function send has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default async function send(
  action: Action,
  connection: Connection | null,
): Promise<Response> {
  if (!connection || connection.status !== 'ok' || !connection.redisClient) {
Severity: Minor
Found in src/send/index.ts - About 1 hr to fix

    Function listen has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export default async function listen(
      dispatch: Dispatch,
      connection: Connection | null,
      authenticate: AuthenticateExternal,
    ): Promise<Response> {
    Severity: Minor
    Found in src/listen.ts - About 1 hr to fix

      Function sendGet has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

        client: ReturnType<typeof createClient>,
        generateId: GenerateId,
        id?: string | string[],
        pattern?: string,
        onlyIds = false,
      Severity: Minor
      Found in src/send/get.ts - About 45 mins to fix

        Function sendSet has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          client: ReturnType<typeof createClient>,
          generateId: GenerateId,
          id: string | string[] | null | undefined,
          data: unknown,
          concurrency = 1
        Severity: Minor
        Found in src/send/set.ts - About 35 mins to fix

          Function getCollection has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

            client: ReturnType<typeof createClient>,
            generateId: GenerateId,
            concurrency: number,
            onlyIds: boolean,
            pattern?: string,
          Severity: Minor
          Found in src/send/get.ts - About 35 mins to fix
            Severity
            Category
            Status
            Source
            Language