department-of-veterans-affairs/vets-website

View on GitHub

Showing 12,841 of 12,841 total issues

Function validateLogin has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const validateLogin = async (
  lastName,
  dob,
  dobError,
  setLastNameError,
Severity: Minor
Found in src/applications/check-in/utils/validateVeteran/index.js - About 2 hrs to fix

    Function ViewDependentsLayout has 50 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function ViewDependentsLayout(props) {
      let mainContent;
    
      if (props.loading) {
        mainContent = (

      Function render has 50 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        render() {
          return (
            <div className="search-app" data-e2e-id="search-app">
              <SearchBreadcrumbs />
              <div className="row">
      Severity: Minor
      Found in src/applications/search/containers/SearchApp.jsx - About 2 hrs to fix

        Similar blocks of code found in 14 locations. Consider refactoring.
        Open

        ContactInfoCard.propTypes = {
          city: PropTypes.string,
          country: PropTypes.string,
          edit: PropTypes.func,
          postalCode: PropTypes.string,
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskGreen/EditContactInfoTaskGreen.jsx on lines 123..131
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskYellow/EditMailingAddressTaskYellow.jsx on lines 106..114
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/ezr/EditContactInfo.jsx on lines 123..131
        src/applications/caregivers/components/FormFields/AddressWithAutofill.jsx on lines 221..229
        src/applications/financial-status-report/components/employment/EmploymentRecord.jsx on lines 199..207
        src/applications/gi/components/ClearFiltersBtn.jsx on lines 86..94
        src/applications/hca/containers/IdentityPage.jsx on lines 142..150
        src/applications/letters/containers/Main.jsx on lines 72..80
        src/applications/personalization/dashboard/components/health-care/HealthCareCTA.jsx on lines 146..154
        src/applications/terms-of-use/components/TermsAcceptanceAction.jsx on lines 60..68
        src/applications/vaos/covid-19-vaccine/components/ContactInfoPage.jsx on lines 123..131
        src/applications/vaos/new-appointment/components/CommunityCareProviderSelectionPage/ProviderSelect.jsx on lines 94..102
        src/applications/check-in/components/layout/Wrapper.jsx on lines 101..109

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 75.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 14 locations. Consider refactoring.
        Open

        ContactInfoPage.propTypes = {
          changeCrumb: PropTypes.func,
          data: PropTypes.object,
          openFormPage: PropTypes.func,
          pageChangeInProgress: PropTypes.bool,
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskGreen/EditContactInfoTaskGreen.jsx on lines 123..131
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskYellow/EditMailingAddressTaskYellow.jsx on lines 106..114
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/ezr/EditContactInfo.jsx on lines 123..131
        src/applications/caregivers/components/FormFields/AddressWithAutofill.jsx on lines 221..229
        src/applications/financial-status-report/components/employment/EmploymentRecord.jsx on lines 199..207
        src/applications/financial-status-report/components/shared/ContactInfoCard.jsx on lines 36..44
        src/applications/gi/components/ClearFiltersBtn.jsx on lines 86..94
        src/applications/hca/containers/IdentityPage.jsx on lines 142..150
        src/applications/letters/containers/Main.jsx on lines 72..80
        src/applications/personalization/dashboard/components/health-care/HealthCareCTA.jsx on lines 146..154
        src/applications/terms-of-use/components/TermsAcceptanceAction.jsx on lines 60..68
        src/applications/vaos/new-appointment/components/CommunityCareProviderSelectionPage/ProviderSelect.jsx on lines 94..102
        src/applications/check-in/components/layout/Wrapper.jsx on lines 101..109

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 75.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 14 locations. Consider refactoring.
        Open

        ClearFiltersBtn.propTypes = {
          children: PropTypes.node,
          closeAndUpdate: PropTypes.func,
          dispatchFilterChange: PropTypes.func,
          filters: PropTypes.object,
        Severity: Major
        Found in src/applications/gi/components/ClearFiltersBtn.jsx and 13 other locations - About 2 hrs to fix
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskGreen/EditContactInfoTaskGreen.jsx on lines 123..131
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskYellow/EditMailingAddressTaskYellow.jsx on lines 106..114
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/ezr/EditContactInfo.jsx on lines 123..131
        src/applications/caregivers/components/FormFields/AddressWithAutofill.jsx on lines 221..229
        src/applications/financial-status-report/components/employment/EmploymentRecord.jsx on lines 199..207
        src/applications/financial-status-report/components/shared/ContactInfoCard.jsx on lines 36..44
        src/applications/hca/containers/IdentityPage.jsx on lines 142..150
        src/applications/letters/containers/Main.jsx on lines 72..80
        src/applications/personalization/dashboard/components/health-care/HealthCareCTA.jsx on lines 146..154
        src/applications/terms-of-use/components/TermsAcceptanceAction.jsx on lines 60..68
        src/applications/vaos/covid-19-vaccine/components/ContactInfoPage.jsx on lines 123..131
        src/applications/vaos/new-appointment/components/CommunityCareProviderSelectionPage/ProviderSelect.jsx on lines 94..102
        src/applications/check-in/components/layout/Wrapper.jsx on lines 101..109

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 75.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 14 locations. Consider refactoring.
        Open

        BuildPage.propTypes = {
          contactPath: PropTypes.string,
          field: PropTypes.string,
          goToPath: PropTypes.func,
          id: PropTypes.string,
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskGreen/EditContactInfoTaskGreen.jsx on lines 123..131
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskYellow/EditMailingAddressTaskYellow.jsx on lines 106..114
        src/applications/caregivers/components/FormFields/AddressWithAutofill.jsx on lines 221..229
        src/applications/financial-status-report/components/employment/EmploymentRecord.jsx on lines 199..207
        src/applications/financial-status-report/components/shared/ContactInfoCard.jsx on lines 36..44
        src/applications/gi/components/ClearFiltersBtn.jsx on lines 86..94
        src/applications/hca/containers/IdentityPage.jsx on lines 142..150
        src/applications/letters/containers/Main.jsx on lines 72..80
        src/applications/personalization/dashboard/components/health-care/HealthCareCTA.jsx on lines 146..154
        src/applications/terms-of-use/components/TermsAcceptanceAction.jsx on lines 60..68
        src/applications/vaos/covid-19-vaccine/components/ContactInfoPage.jsx on lines 123..131
        src/applications/vaos/new-appointment/components/CommunityCareProviderSelectionPage/ProviderSelect.jsx on lines 94..102
        src/applications/check-in/components/layout/Wrapper.jsx on lines 101..109

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 75.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 14 locations. Consider refactoring.
        Open

        Main.propTypes = {
          children: PropTypes.any,
          emptyAddress: PropTypes.bool,
          getLetterListAndBSLOptions: PropTypes.func,
          lettersAvailability: PropTypes.string,
        Severity: Major
        Found in src/applications/letters/containers/Main.jsx and 13 other locations - About 2 hrs to fix
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskGreen/EditContactInfoTaskGreen.jsx on lines 123..131
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskYellow/EditMailingAddressTaskYellow.jsx on lines 106..114
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/ezr/EditContactInfo.jsx on lines 123..131
        src/applications/caregivers/components/FormFields/AddressWithAutofill.jsx on lines 221..229
        src/applications/financial-status-report/components/employment/EmploymentRecord.jsx on lines 199..207
        src/applications/financial-status-report/components/shared/ContactInfoCard.jsx on lines 36..44
        src/applications/gi/components/ClearFiltersBtn.jsx on lines 86..94
        src/applications/hca/containers/IdentityPage.jsx on lines 142..150
        src/applications/personalization/dashboard/components/health-care/HealthCareCTA.jsx on lines 146..154
        src/applications/terms-of-use/components/TermsAcceptanceAction.jsx on lines 60..68
        src/applications/vaos/covid-19-vaccine/components/ContactInfoPage.jsx on lines 123..131
        src/applications/vaos/new-appointment/components/CommunityCareProviderSelectionPage/ProviderSelect.jsx on lines 94..102
        src/applications/check-in/components/layout/Wrapper.jsx on lines 101..109

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 75.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 14 locations. Consider refactoring.
        Open

        HealthCareCTA.propTypes = {
          authenticatedWithSSOe: PropTypes.bool,
          hasAppointmentsError: PropTypes.bool,
          hasInboxError: PropTypes.bool,
          hasUpcomingAppointment: PropTypes.bool,
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskGreen/EditContactInfoTaskGreen.jsx on lines 123..131
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskYellow/EditMailingAddressTaskYellow.jsx on lines 106..114
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/ezr/EditContactInfo.jsx on lines 123..131
        src/applications/caregivers/components/FormFields/AddressWithAutofill.jsx on lines 221..229
        src/applications/financial-status-report/components/employment/EmploymentRecord.jsx on lines 199..207
        src/applications/financial-status-report/components/shared/ContactInfoCard.jsx on lines 36..44
        src/applications/gi/components/ClearFiltersBtn.jsx on lines 86..94
        src/applications/hca/containers/IdentityPage.jsx on lines 142..150
        src/applications/letters/containers/Main.jsx on lines 72..80
        src/applications/terms-of-use/components/TermsAcceptanceAction.jsx on lines 60..68
        src/applications/vaos/covid-19-vaccine/components/ContactInfoPage.jsx on lines 123..131
        src/applications/vaos/new-appointment/components/CommunityCareProviderSelectionPage/ProviderSelect.jsx on lines 94..102
        src/applications/check-in/components/layout/Wrapper.jsx on lines 101..109

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 75.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 14 locations. Consider refactoring.
        Open

        Wrapper.propTypes = {
          children: PropTypes.node,
          classNames: PropTypes.string,
          eyebrow: PropTypes.string,
          pageTitle: PropTypes.string,
        Severity: Major
        Found in src/applications/check-in/components/layout/Wrapper.jsx and 13 other locations - About 2 hrs to fix
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskGreen/EditContactInfoTaskGreen.jsx on lines 123..131
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskYellow/EditMailingAddressTaskYellow.jsx on lines 106..114
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/ezr/EditContactInfo.jsx on lines 123..131
        src/applications/caregivers/components/FormFields/AddressWithAutofill.jsx on lines 221..229
        src/applications/financial-status-report/components/employment/EmploymentRecord.jsx on lines 199..207
        src/applications/financial-status-report/components/shared/ContactInfoCard.jsx on lines 36..44
        src/applications/gi/components/ClearFiltersBtn.jsx on lines 86..94
        src/applications/hca/containers/IdentityPage.jsx on lines 142..150
        src/applications/letters/containers/Main.jsx on lines 72..80
        src/applications/personalization/dashboard/components/health-care/HealthCareCTA.jsx on lines 146..154
        src/applications/terms-of-use/components/TermsAcceptanceAction.jsx on lines 60..68
        src/applications/vaos/covid-19-vaccine/components/ContactInfoPage.jsx on lines 123..131
        src/applications/vaos/new-appointment/components/CommunityCareProviderSelectionPage/ProviderSelect.jsx on lines 94..102

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 75.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 14 locations. Consider refactoring.
        Open

        TermsAcceptance.propTypes = {
          error: PropTypes.object,
          handleTouClick: PropTypes.func,
          isDisabled: PropTypes.bool,
          isFullyAuthenticated: PropTypes.bool,
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskGreen/EditContactInfoTaskGreen.jsx on lines 123..131
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskYellow/EditMailingAddressTaskYellow.jsx on lines 106..114
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/ezr/EditContactInfo.jsx on lines 123..131
        src/applications/caregivers/components/FormFields/AddressWithAutofill.jsx on lines 221..229
        src/applications/financial-status-report/components/employment/EmploymentRecord.jsx on lines 199..207
        src/applications/financial-status-report/components/shared/ContactInfoCard.jsx on lines 36..44
        src/applications/gi/components/ClearFiltersBtn.jsx on lines 86..94
        src/applications/hca/containers/IdentityPage.jsx on lines 142..150
        src/applications/letters/containers/Main.jsx on lines 72..80
        src/applications/personalization/dashboard/components/health-care/HealthCareCTA.jsx on lines 146..154
        src/applications/vaos/covid-19-vaccine/components/ContactInfoPage.jsx on lines 123..131
        src/applications/vaos/new-appointment/components/CommunityCareProviderSelectionPage/ProviderSelect.jsx on lines 94..102
        src/applications/check-in/components/layout/Wrapper.jsx on lines 101..109

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 75.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 14 locations. Consider refactoring.
        Open

        SelectedProvider.propTypes = {
          formData: PropTypes.object,
          initialProviderDisplayCount: PropTypes.number,
          providerSelected: PropTypes.bool,
          setCheckedProvider: PropTypes.func,
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskGreen/EditContactInfoTaskGreen.jsx on lines 123..131
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskYellow/EditMailingAddressTaskYellow.jsx on lines 106..114
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/ezr/EditContactInfo.jsx on lines 123..131
        src/applications/caregivers/components/FormFields/AddressWithAutofill.jsx on lines 221..229
        src/applications/financial-status-report/components/employment/EmploymentRecord.jsx on lines 199..207
        src/applications/financial-status-report/components/shared/ContactInfoCard.jsx on lines 36..44
        src/applications/gi/components/ClearFiltersBtn.jsx on lines 86..94
        src/applications/hca/containers/IdentityPage.jsx on lines 142..150
        src/applications/letters/containers/Main.jsx on lines 72..80
        src/applications/personalization/dashboard/components/health-care/HealthCareCTA.jsx on lines 146..154
        src/applications/terms-of-use/components/TermsAcceptanceAction.jsx on lines 60..68
        src/applications/vaos/covid-19-vaccine/components/ContactInfoPage.jsx on lines 123..131
        src/applications/check-in/components/layout/Wrapper.jsx on lines 101..109

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 75.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 14 locations. Consider refactoring.
        Open

        IdentityPage.propTypes = {
          location: PropTypes.object,
          resetEnrollmentStatus: PropTypes.func,
          route: PropTypes.object,
          router: PropTypes.object,
        Severity: Major
        Found in src/applications/hca/containers/IdentityPage.jsx and 13 other locations - About 2 hrs to fix
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskGreen/EditContactInfoTaskGreen.jsx on lines 123..131
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskYellow/EditMailingAddressTaskYellow.jsx on lines 106..114
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/ezr/EditContactInfo.jsx on lines 123..131
        src/applications/caregivers/components/FormFields/AddressWithAutofill.jsx on lines 221..229
        src/applications/financial-status-report/components/employment/EmploymentRecord.jsx on lines 199..207
        src/applications/financial-status-report/components/shared/ContactInfoCard.jsx on lines 36..44
        src/applications/gi/components/ClearFiltersBtn.jsx on lines 86..94
        src/applications/letters/containers/Main.jsx on lines 72..80
        src/applications/personalization/dashboard/components/health-care/HealthCareCTA.jsx on lines 146..154
        src/applications/terms-of-use/components/TermsAcceptanceAction.jsx on lines 60..68
        src/applications/vaos/covid-19-vaccine/components/ContactInfoPage.jsx on lines 123..131
        src/applications/vaos/new-appointment/components/CommunityCareProviderSelectionPage/ProviderSelect.jsx on lines 94..102
        src/applications/check-in/components/layout/Wrapper.jsx on lines 101..109

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 75.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 14 locations. Consider refactoring.
        Open

        EmploymentRecord.propTypes = {
          children: PropTypes.object,
          employmentHistory: PropTypes.object,
          formContext: PropTypes.object,
          formData: PropTypes.object,
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskGreen/EditContactInfoTaskGreen.jsx on lines 123..131
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskYellow/EditMailingAddressTaskYellow.jsx on lines 106..114
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/ezr/EditContactInfo.jsx on lines 123..131
        src/applications/caregivers/components/FormFields/AddressWithAutofill.jsx on lines 221..229
        src/applications/financial-status-report/components/shared/ContactInfoCard.jsx on lines 36..44
        src/applications/gi/components/ClearFiltersBtn.jsx on lines 86..94
        src/applications/hca/containers/IdentityPage.jsx on lines 142..150
        src/applications/letters/containers/Main.jsx on lines 72..80
        src/applications/personalization/dashboard/components/health-care/HealthCareCTA.jsx on lines 146..154
        src/applications/terms-of-use/components/TermsAcceptanceAction.jsx on lines 60..68
        src/applications/vaos/covid-19-vaccine/components/ContactInfoPage.jsx on lines 123..131
        src/applications/vaos/new-appointment/components/CommunityCareProviderSelectionPage/ProviderSelect.jsx on lines 94..102
        src/applications/check-in/components/layout/Wrapper.jsx on lines 101..109

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 75.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 14 locations. Consider refactoring.
        Open

        BuildPage.propTypes = {
          contactPath: PropTypes.string,
          field: PropTypes.string,
          goToPath: PropTypes.func,
          id: PropTypes.string,
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskGreen/EditContactInfoTaskGreen.jsx on lines 123..131
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/ezr/EditContactInfo.jsx on lines 123..131
        src/applications/caregivers/components/FormFields/AddressWithAutofill.jsx on lines 221..229
        src/applications/financial-status-report/components/employment/EmploymentRecord.jsx on lines 199..207
        src/applications/financial-status-report/components/shared/ContactInfoCard.jsx on lines 36..44
        src/applications/gi/components/ClearFiltersBtn.jsx on lines 86..94
        src/applications/hca/containers/IdentityPage.jsx on lines 142..150
        src/applications/letters/containers/Main.jsx on lines 72..80
        src/applications/personalization/dashboard/components/health-care/HealthCareCTA.jsx on lines 146..154
        src/applications/terms-of-use/components/TermsAcceptanceAction.jsx on lines 60..68
        src/applications/vaos/covid-19-vaccine/components/ContactInfoPage.jsx on lines 123..131
        src/applications/vaos/new-appointment/components/CommunityCareProviderSelectionPage/ProviderSelect.jsx on lines 94..102
        src/applications/check-in/components/layout/Wrapper.jsx on lines 101..109

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 75.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 14 locations. Consider refactoring.
        Open

        PrimaryAddressWithAutofill.propTypes = {
          errorSchema: PropTypes.object,
          formContext: PropTypes.object,
          formData: PropTypes.object,
          idSchema: PropTypes.object,
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskGreen/EditContactInfoTaskGreen.jsx on lines 123..131
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskYellow/EditMailingAddressTaskYellow.jsx on lines 106..114
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/ezr/EditContactInfo.jsx on lines 123..131
        src/applications/financial-status-report/components/employment/EmploymentRecord.jsx on lines 199..207
        src/applications/financial-status-report/components/shared/ContactInfoCard.jsx on lines 36..44
        src/applications/gi/components/ClearFiltersBtn.jsx on lines 86..94
        src/applications/hca/containers/IdentityPage.jsx on lines 142..150
        src/applications/letters/containers/Main.jsx on lines 72..80
        src/applications/personalization/dashboard/components/health-care/HealthCareCTA.jsx on lines 146..154
        src/applications/terms-of-use/components/TermsAcceptanceAction.jsx on lines 60..68
        src/applications/vaos/covid-19-vaccine/components/ContactInfoPage.jsx on lines 123..131
        src/applications/vaos/new-appointment/components/CommunityCareProviderSelectionPage/ProviderSelect.jsx on lines 94..102
        src/applications/check-in/components/layout/Wrapper.jsx on lines 101..109

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 75.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 14 locations. Consider refactoring.
        Open

        BuildPage.propTypes = {
          contactPath: PropTypes.string,
          field: PropTypes.string,
          goToPath: PropTypes.func,
          id: PropTypes.string,
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskYellow/EditMailingAddressTaskYellow.jsx on lines 106..114
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/ezr/EditContactInfo.jsx on lines 123..131
        src/applications/caregivers/components/FormFields/AddressWithAutofill.jsx on lines 221..229
        src/applications/financial-status-report/components/employment/EmploymentRecord.jsx on lines 199..207
        src/applications/financial-status-report/components/shared/ContactInfoCard.jsx on lines 36..44
        src/applications/gi/components/ClearFiltersBtn.jsx on lines 86..94
        src/applications/hca/containers/IdentityPage.jsx on lines 142..150
        src/applications/letters/containers/Main.jsx on lines 72..80
        src/applications/personalization/dashboard/components/health-care/HealthCareCTA.jsx on lines 146..154
        src/applications/terms-of-use/components/TermsAcceptanceAction.jsx on lines 60..68
        src/applications/vaos/covid-19-vaccine/components/ContactInfoPage.jsx on lines 123..131
        src/applications/vaos/new-appointment/components/CommunityCareProviderSelectionPage/ProviderSelect.jsx on lines 94..102
        src/applications/check-in/components/layout/Wrapper.jsx on lines 101..109

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 75.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 10 locations. Consider refactoring.
        Open

          VACCINATED_ADDITIONAL_DATE2: {
            ...currentOrPastMonthYearUI('Month/Year of dose'),
            'ui:options': {
              expandUnder: 'vaccinated',
              monthYear: true,
        src/applications/coronavirus-research/sign-up/pages/covidResearchUISchema.js on lines 370..381
        src/applications/coronavirus-research/sign-up/pages/covidResearchUISchema.js on lines 432..443
        src/applications/coronavirus-research/sign-up/pages/covidResearchUISchema.js on lines 494..505
        src/applications/coronavirus-research/sign-up/pages/covidResearchUISchema.js on lines 556..567
        src/applications/coronavirus-research/sign-up/pages/covidResearchUISchema.js on lines 618..629
        src/applications/coronavirus-research/update/pages/covidResearchUISchema.js on lines 206..217
        src/applications/coronavirus-research/update/pages/covidResearchUISchema.js on lines 330..341
        src/applications/coronavirus-research/update/pages/covidResearchUISchema.js on lines 392..403
        src/applications/coronavirus-research/update/pages/covidResearchUISchema.js on lines 454..465

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 75.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 10 locations. Consider refactoring.
        Open

          VACCINATED_ADDITIONAL_DATE1: {
            ...currentOrPastMonthYearUI('Month/Year of dose'),
            'ui:options': {
              expandUnder: 'vaccinated',
              monthYear: true,
        src/applications/coronavirus-research/sign-up/pages/covidResearchUISchema.js on lines 370..381
        src/applications/coronavirus-research/sign-up/pages/covidResearchUISchema.js on lines 432..443
        src/applications/coronavirus-research/sign-up/pages/covidResearchUISchema.js on lines 494..505
        src/applications/coronavirus-research/sign-up/pages/covidResearchUISchema.js on lines 556..567
        src/applications/coronavirus-research/sign-up/pages/covidResearchUISchema.js on lines 618..629
        src/applications/coronavirus-research/update/pages/covidResearchUISchema.js on lines 268..279
        src/applications/coronavirus-research/update/pages/covidResearchUISchema.js on lines 330..341
        src/applications/coronavirus-research/update/pages/covidResearchUISchema.js on lines 392..403
        src/applications/coronavirus-research/update/pages/covidResearchUISchema.js on lines 454..465

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 75.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 10 locations. Consider refactoring.
        Open

          VACCINATED_ADDITIONAL_DATE4: {
            ...currentOrPastMonthYearUI('Month/Year of dose'),
            'ui:options': {
              expandUnder: 'vaccinated',
              monthYear: true,
        src/applications/coronavirus-research/sign-up/pages/covidResearchUISchema.js on lines 370..381
        src/applications/coronavirus-research/sign-up/pages/covidResearchUISchema.js on lines 432..443
        src/applications/coronavirus-research/sign-up/pages/covidResearchUISchema.js on lines 494..505
        src/applications/coronavirus-research/sign-up/pages/covidResearchUISchema.js on lines 618..629
        src/applications/coronavirus-research/update/pages/covidResearchUISchema.js on lines 206..217
        src/applications/coronavirus-research/update/pages/covidResearchUISchema.js on lines 268..279
        src/applications/coronavirus-research/update/pages/covidResearchUISchema.js on lines 330..341
        src/applications/coronavirus-research/update/pages/covidResearchUISchema.js on lines 392..403
        src/applications/coronavirus-research/update/pages/covidResearchUISchema.js on lines 454..465

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 75.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Severity
        Category
        Status
        Source
        Language