silverbucket/node-redis-connection-pool

View on GitHub

Showing 2 of 8 total issues

RedisConnectionPool has 21 functions (exceeds 20 allowed). Consider refactoring.
Open

export class RedisConnectionPool {
  max_clients = 5;
  redis: RedisClientOptions;
  pool: Pool<RedisClientType>;
  private initializing = false;
Severity: Minor
Found in src/index.ts - About 2 hrs to fix

    Function init has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      async init(): Promise<void> {
        // eslint-disable-next-line @typescript-eslint/ban-ts-comment
        // @ts-ignore
        this.pool = createPool({
          create: async () => {
    Severity: Minor
    Found in src/index.ts - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language