department-of-veterans-affairs/vets-website

View on GitHub
src/applications/proxy-rewrite/redirects/index.js

Summary

Maintainability
A
1 hr
Test Coverage

Function redirectIfNecessary has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const redirectIfNecessary = currentWindow => {
  // Check if the route matches an absolute cross-domain redirect.
  const absoluteCrossDomainRedirects = crossDomainRedirects?.filter(
    redirect => !redirect?.catchAll && !redirect?.isToSubdomain,
  );
Severity: Minor
Found in src/applications/proxy-rewrite/redirects/index.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status