inversify/inversify-express-utils

View on GitHub
src/debug.ts

Summary

Maintainability
B
4 hrs
Test Coverage

Function getRouteInfo has 62 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function getRouteInfo(
  container: inversifyInterfaces.Container,
): Array<RouteInfo> {
  const raw = getRawMetadata(container);

Severity: Major
Found in src/debug.ts - About 2 hrs to fix

    Function endpoints has 52 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        const endpoints = r.methodMetadata.map(m => {
          const method = m.method.toUpperCase();
          const controllerPath = r.controllerMetadata.path;
          const actionPath = m.path;
          const paramMetadata = r.parameterMetadata;
    Severity: Major
    Found in src/debug.ts - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status