hongbo-miao/hongbomiao.com

View on GitHub
api-node/src/security/middlewares/rateLimitMiddleware.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function rateLimitMiddleware has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const rateLimitMiddleware = (
  redis: Redis,
  points: number = POINTS,
  duration: number = DURATION,
  burstPointsRate: number = BURST_POINTS_RATE,
Severity: Minor
Found in api-node/src/security/middlewares/rateLimitMiddleware.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status