denali-js/denali-auth

View on GitHub
lib/routes-for.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function authRoutesFor has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function authRoutesFor(modelName: string, router: Router, options: AuthRoutesOptions) {
  options.except = options.except || [];

  let Model = router.container.lookup(`model:${ modelName }`);

Severity: Minor
Found in lib/routes-for.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status