department-of-veterans-affairs/vets-website

View on GitHub
src/applications/personalization/profile/helpers.js

Summary

Maintainability
A
1 hr
Test Coverage

Function transformServiceHistoryEntryIntoTableRow has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const transformServiceHistoryEntryIntoTableRow = entry => {
  const formattedBeginDate = entry.beginDate
    ? moment(entry.beginDate).format('LL')
    : '';
  const formattedEndDate = entry.endDate
Severity: Minor
Found in src/applications/personalization/profile/helpers.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status