department-of-veterans-affairs/vets-website

View on GitHub
src/applications/personalization/dashboard/mocks/appeals/index.js

Summary

Maintainability
A
1 hr
Test Coverage

Function createAppealsSuccess has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const createAppealsSuccess = (updatedDaysAgo = 10) => {
  const daysAgo = addDays(new Date(), -updatedDaysAgo);
  const formattedDaysAgo = format(daysAgo, 'yyyy-MM-dd');

  return {
Severity: Minor
Found in src/applications/personalization/dashboard/mocks/appeals/index.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status