department-of-veterans-affairs/vets-website

View on GitHub
src/applications/vaos/referral-appointments/utils/provider.js

Summary

Maintainability
A
1 hr
Test Coverage

Function createProviderDetails has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const createProviderDetails = numberOfSlots => {
  const slots = [];
  const tomorrow = dateFns.addDays(dateFns.startOfDay(new Date()), 1);
  let hourFromNow = 12;
  for (let i = 0; i < numberOfSlots; i++) {
Severity: Minor
Found in src/applications/vaos/referral-appointments/utils/provider.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status