dashpresshq/dashpress

View on GitHub
src/backend/lib/request/index.ts

Summary

Maintainability
A
3 hrs
Test Coverage
B
89%

Function requestHandler has 76 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  async (req: NextApiRequest, res: NextApiResponse) => {
    const before = μs.now();

    return await requestHook(req, async () => {
      const validationsToRun = (validations || []).filter((validation) => {
Severity: Major
Found in src/backend/lib/request/index.ts - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status