swarthy/redis-semaphore

View on GitHub
src/multiSemaphore/acquire/index.ts

Summary

Maintainability
A
0 mins
Test Coverage

Function acquireSemaphore has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

export async function acquireSemaphore(
  client: RedisClient,
  key: string,
  limit: number,
  permits: number,
Severity: Minor
Found in src/multiSemaphore/acquire/index.ts - About 1 hr to fix

    Function acquireSemaphore has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Wontfix

      client: RedisClient,
      key: string,
      limit: number,
      permits: number,
      options: Options
    Severity: Minor
    Found in src/multiSemaphore/acquire/index.ts - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status