department-of-veterans-affairs/vets-website

View on GitHub

Showing 12,821 of 12,821 total issues

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

  render() {
    let message;

    if (this.props.errors) {
      message = this.renderErrors();
Severity: Major
Found in src/applications/veteran-id-card/containers/Main.jsx - About 2 hrs to fix

    Function allergyReducer has 62 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const allergyReducer = (state = initialState, action) => {
      switch (action.type) {
        case Actions.Allergies.GET: {
          return {
            ...state,
    Severity: Major
    Found in src/applications/mhv-medical-records/reducers/allergies.js - About 2 hrs to fix

      File day-of.reducers.unit.spec.js has 269 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      import { expect } from 'chai';
      
      import {
        receivedDemographicsDataHandler,
        receivedAppointmentDetailsHandler,

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

        TravelClaimCard.propTypes = {
          appointmentDateTime: PropTypes.string,
          canViewClaimDetails: PropTypes.bool,
          claimNumber: PropTypes.string,
          claimStatus: PropTypes.string,
        Severity: Major
        Found in src/applications/travel-pay/components/TravelClaimCard.jsx and 11 other locations - About 2 hrs to fix
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskPurple/EditContactInfo.jsx on lines 112..121
        src/applications/education-letters/containers/InboxPage.jsx on lines 102..111
        src/applications/gi/containers/search/LocationSearchResults.jsx on lines 859..868
        src/applications/mhv-secure-messaging/components/Search/FilterBox.jsx on lines 173..182
        src/applications/mhv-secure-messaging/components/ThreadList/ThreadsList.jsx on lines 116..125
        src/applications/personalization/dashboard/components/CTALink.jsx on lines 43..52
        src/applications/personalization/view-dependents/layouts/ViewDependentsLayout.jsx on lines 72..81
        src/applications/personalization/view-dependents/manage-dependents/containers/ManageDependentsApp.jsx on lines 148..157
        src/applications/toe/containers/SponsorsSelectionPage.jsx on lines 98..107
        src/applications/travel-pay/components/TravelPayClaimFilters.jsx on lines 58..67
        src/platform/forms/components/review/FormSaveErrorMessage.jsx on lines 129..138

        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 84.

        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 12 locations. Consider refactoring.
        Open

        CTALink.propTypes = {
          ariaLabel: PropTypes.string,
          className: PropTypes.string,
          href: PropTypes.string,
          newTab: PropTypes.bool,
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskPurple/EditContactInfo.jsx on lines 112..121
        src/applications/education-letters/containers/InboxPage.jsx on lines 102..111
        src/applications/gi/containers/search/LocationSearchResults.jsx on lines 859..868
        src/applications/mhv-secure-messaging/components/Search/FilterBox.jsx on lines 173..182
        src/applications/mhv-secure-messaging/components/ThreadList/ThreadsList.jsx on lines 116..125
        src/applications/personalization/view-dependents/layouts/ViewDependentsLayout.jsx on lines 72..81
        src/applications/personalization/view-dependents/manage-dependents/containers/ManageDependentsApp.jsx on lines 148..157
        src/applications/toe/containers/SponsorsSelectionPage.jsx on lines 98..107
        src/applications/travel-pay/components/TravelClaimCard.jsx on lines 69..78
        src/applications/travel-pay/components/TravelPayClaimFilters.jsx on lines 58..67
        src/platform/forms/components/review/FormSaveErrorMessage.jsx on lines 129..138

        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 84.

        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 12 locations. Consider refactoring.
        Open

        FormSaveErrorMessage.propTypes = {
          form: PropTypes.object,
          formConfig: PropTypes.object,
          location: PropTypes.object,
          route: PropTypes.object,
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskPurple/EditContactInfo.jsx on lines 112..121
        src/applications/education-letters/containers/InboxPage.jsx on lines 102..111
        src/applications/gi/containers/search/LocationSearchResults.jsx on lines 859..868
        src/applications/mhv-secure-messaging/components/Search/FilterBox.jsx on lines 173..182
        src/applications/mhv-secure-messaging/components/ThreadList/ThreadsList.jsx on lines 116..125
        src/applications/personalization/dashboard/components/CTALink.jsx on lines 43..52
        src/applications/personalization/view-dependents/layouts/ViewDependentsLayout.jsx on lines 72..81
        src/applications/personalization/view-dependents/manage-dependents/containers/ManageDependentsApp.jsx on lines 148..157
        src/applications/toe/containers/SponsorsSelectionPage.jsx on lines 98..107
        src/applications/travel-pay/components/TravelClaimCard.jsx on lines 69..78
        src/applications/travel-pay/components/TravelPayClaimFilters.jsx on lines 58..67

        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 84.

        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 12 locations. Consider refactoring.
        Open

        FilterBox.propTypes = {
          category: PropTypes.any,
          dateRange: PropTypes.any,
          fromDate: PropTypes.any,
          setCategory: PropTypes.func,
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskPurple/EditContactInfo.jsx on lines 112..121
        src/applications/education-letters/containers/InboxPage.jsx on lines 102..111
        src/applications/gi/containers/search/LocationSearchResults.jsx on lines 859..868
        src/applications/mhv-secure-messaging/components/ThreadList/ThreadsList.jsx on lines 116..125
        src/applications/personalization/dashboard/components/CTALink.jsx on lines 43..52
        src/applications/personalization/view-dependents/layouts/ViewDependentsLayout.jsx on lines 72..81
        src/applications/personalization/view-dependents/manage-dependents/containers/ManageDependentsApp.jsx on lines 148..157
        src/applications/toe/containers/SponsorsSelectionPage.jsx on lines 98..107
        src/applications/travel-pay/components/TravelClaimCard.jsx on lines 69..78
        src/applications/travel-pay/components/TravelPayClaimFilters.jsx on lines 58..67
        src/platform/forms/components/review/FormSaveErrorMessage.jsx on lines 129..138

        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 84.

        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 12 locations. Consider refactoring.
        Open

        TravelPayClaimFilters.propTypes = {
          applyFilters: PropTypes.func,
          checkedStatusFilters: PropTypes.array,
          datesToFilterBy: PropTypes.array,
          resetSearch: PropTypes.func,
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskPurple/EditContactInfo.jsx on lines 112..121
        src/applications/education-letters/containers/InboxPage.jsx on lines 102..111
        src/applications/gi/containers/search/LocationSearchResults.jsx on lines 859..868
        src/applications/mhv-secure-messaging/components/Search/FilterBox.jsx on lines 173..182
        src/applications/mhv-secure-messaging/components/ThreadList/ThreadsList.jsx on lines 116..125
        src/applications/personalization/dashboard/components/CTALink.jsx on lines 43..52
        src/applications/personalization/view-dependents/layouts/ViewDependentsLayout.jsx on lines 72..81
        src/applications/personalization/view-dependents/manage-dependents/containers/ManageDependentsApp.jsx on lines 148..157
        src/applications/toe/containers/SponsorsSelectionPage.jsx on lines 98..107
        src/applications/travel-pay/components/TravelClaimCard.jsx on lines 69..78
        src/platform/forms/components/review/FormSaveErrorMessage.jsx on lines 129..138

        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 84.

        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 12 locations. Consider refactoring.
        Open

        LocationSearchResults.propTypes = {
          dispatchFetchSearchByLocationCoords: PropTypes.func,
          dispatchMapChanged: PropTypes.func,
          dispatchUpdateEligibilityAndFilters: PropTypes.func,
          filters: PropTypes.object,
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskPurple/EditContactInfo.jsx on lines 112..121
        src/applications/education-letters/containers/InboxPage.jsx on lines 102..111
        src/applications/mhv-secure-messaging/components/Search/FilterBox.jsx on lines 173..182
        src/applications/mhv-secure-messaging/components/ThreadList/ThreadsList.jsx on lines 116..125
        src/applications/personalization/dashboard/components/CTALink.jsx on lines 43..52
        src/applications/personalization/view-dependents/layouts/ViewDependentsLayout.jsx on lines 72..81
        src/applications/personalization/view-dependents/manage-dependents/containers/ManageDependentsApp.jsx on lines 148..157
        src/applications/toe/containers/SponsorsSelectionPage.jsx on lines 98..107
        src/applications/travel-pay/components/TravelClaimCard.jsx on lines 69..78
        src/applications/travel-pay/components/TravelPayClaimFilters.jsx on lines 58..67
        src/platform/forms/components/review/FormSaveErrorMessage.jsx on lines 129..138

        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 84.

        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 12 locations. Consider refactoring.
        Open

        BuildPage.propTypes = {
          contactPath: PropTypes.string,
          data: PropTypes.object,
          field: PropTypes.string,
          goToPath: PropTypes.func,
        src/applications/education-letters/containers/InboxPage.jsx on lines 102..111
        src/applications/gi/containers/search/LocationSearchResults.jsx on lines 859..868
        src/applications/mhv-secure-messaging/components/Search/FilterBox.jsx on lines 173..182
        src/applications/mhv-secure-messaging/components/ThreadList/ThreadsList.jsx on lines 116..125
        src/applications/personalization/dashboard/components/CTALink.jsx on lines 43..52
        src/applications/personalization/view-dependents/layouts/ViewDependentsLayout.jsx on lines 72..81
        src/applications/personalization/view-dependents/manage-dependents/containers/ManageDependentsApp.jsx on lines 148..157
        src/applications/toe/containers/SponsorsSelectionPage.jsx on lines 98..107
        src/applications/travel-pay/components/TravelClaimCard.jsx on lines 69..78
        src/applications/travel-pay/components/TravelPayClaimFilters.jsx on lines 58..67
        src/platform/forms/components/review/FormSaveErrorMessage.jsx on lines 129..138

        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 84.

        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 12 locations. Consider refactoring.
        Open

        ViewDependentsLayout.propTypes = {
          error: PropTypes.object,
          notOnAwardDependents: PropTypes.array,
          onAwardDependents: PropTypes.array,
          loading: PropTypes.bool,
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskPurple/EditContactInfo.jsx on lines 112..121
        src/applications/education-letters/containers/InboxPage.jsx on lines 102..111
        src/applications/gi/containers/search/LocationSearchResults.jsx on lines 859..868
        src/applications/mhv-secure-messaging/components/Search/FilterBox.jsx on lines 173..182
        src/applications/mhv-secure-messaging/components/ThreadList/ThreadsList.jsx on lines 116..125
        src/applications/personalization/dashboard/components/CTALink.jsx on lines 43..52
        src/applications/personalization/view-dependents/manage-dependents/containers/ManageDependentsApp.jsx on lines 148..157
        src/applications/toe/containers/SponsorsSelectionPage.jsx on lines 98..107
        src/applications/travel-pay/components/TravelClaimCard.jsx on lines 69..78
        src/applications/travel-pay/components/TravelPayClaimFilters.jsx on lines 58..67
        src/platform/forms/components/review/FormSaveErrorMessage.jsx on lines 129..138

        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 84.

        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 12 locations. Consider refactoring.
        Open

        ThreadsList.propTypes = {
          folder: PropTypes.object,
          keyword: PropTypes.string,
          pageNum: PropTypes.number,
          paginationCallback: PropTypes.func,
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskPurple/EditContactInfo.jsx on lines 112..121
        src/applications/education-letters/containers/InboxPage.jsx on lines 102..111
        src/applications/gi/containers/search/LocationSearchResults.jsx on lines 859..868
        src/applications/mhv-secure-messaging/components/Search/FilterBox.jsx on lines 173..182
        src/applications/personalization/dashboard/components/CTALink.jsx on lines 43..52
        src/applications/personalization/view-dependents/layouts/ViewDependentsLayout.jsx on lines 72..81
        src/applications/personalization/view-dependents/manage-dependents/containers/ManageDependentsApp.jsx on lines 148..157
        src/applications/toe/containers/SponsorsSelectionPage.jsx on lines 98..107
        src/applications/travel-pay/components/TravelClaimCard.jsx on lines 69..78
        src/applications/travel-pay/components/TravelPayClaimFilters.jsx on lines 58..67
        src/platform/forms/components/review/FormSaveErrorMessage.jsx on lines 129..138

        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 84.

        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 12 locations. Consider refactoring.
        Open

        SponsorSelectionPage.propTypes = {
          data: PropTypes.object,
          errorMessage: PropTypes.string,
          firstSponsor: PropTypes.object,
          formContext: PropTypes.object,
        Severity: Major
        Found in src/applications/toe/containers/SponsorsSelectionPage.jsx and 11 other locations - About 2 hrs to fix
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskPurple/EditContactInfo.jsx on lines 112..121
        src/applications/education-letters/containers/InboxPage.jsx on lines 102..111
        src/applications/gi/containers/search/LocationSearchResults.jsx on lines 859..868
        src/applications/mhv-secure-messaging/components/Search/FilterBox.jsx on lines 173..182
        src/applications/mhv-secure-messaging/components/ThreadList/ThreadsList.jsx on lines 116..125
        src/applications/personalization/dashboard/components/CTALink.jsx on lines 43..52
        src/applications/personalization/view-dependents/layouts/ViewDependentsLayout.jsx on lines 72..81
        src/applications/personalization/view-dependents/manage-dependents/containers/ManageDependentsApp.jsx on lines 148..157
        src/applications/travel-pay/components/TravelClaimCard.jsx on lines 69..78
        src/applications/travel-pay/components/TravelPayClaimFilters.jsx on lines 58..67
        src/platform/forms/components/review/FormSaveErrorMessage.jsx on lines 129..138

        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 84.

        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 12 locations. Consider refactoring.
        Open

        InboxPage.propTypes = {
          claimStatus: PropTypes.object,
          getClaimStatus: PropTypes.func,
          MEBClaimStatusFetchInProgress: PropTypes.bool,
          MEBClaimStatusFetchComplete: PropTypes.bool,
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskPurple/EditContactInfo.jsx on lines 112..121
        src/applications/gi/containers/search/LocationSearchResults.jsx on lines 859..868
        src/applications/mhv-secure-messaging/components/Search/FilterBox.jsx on lines 173..182
        src/applications/mhv-secure-messaging/components/ThreadList/ThreadsList.jsx on lines 116..125
        src/applications/personalization/dashboard/components/CTALink.jsx on lines 43..52
        src/applications/personalization/view-dependents/layouts/ViewDependentsLayout.jsx on lines 72..81
        src/applications/personalization/view-dependents/manage-dependents/containers/ManageDependentsApp.jsx on lines 148..157
        src/applications/toe/containers/SponsorsSelectionPage.jsx on lines 98..107
        src/applications/travel-pay/components/TravelClaimCard.jsx on lines 69..78
        src/applications/travel-pay/components/TravelPayClaimFilters.jsx on lines 58..67
        src/platform/forms/components/review/FormSaveErrorMessage.jsx on lines 129..138

        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 84.

        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 12 locations. Consider refactoring.
        Open

        ManageDependents.propTypes = {
          relationship: PropTypes.string,
          updateFormData: PropTypes.func,
          dependentsState: PropTypes.object,
          veteranContactInformation: PropTypes.object,
        src/applications/_mock-form-ae-design-patterns/patterns/pattern1/TaskPurple/EditContactInfo.jsx on lines 112..121
        src/applications/education-letters/containers/InboxPage.jsx on lines 102..111
        src/applications/gi/containers/search/LocationSearchResults.jsx on lines 859..868
        src/applications/mhv-secure-messaging/components/Search/FilterBox.jsx on lines 173..182
        src/applications/mhv-secure-messaging/components/ThreadList/ThreadsList.jsx on lines 116..125
        src/applications/personalization/dashboard/components/CTALink.jsx on lines 43..52
        src/applications/personalization/view-dependents/layouts/ViewDependentsLayout.jsx on lines 72..81
        src/applications/toe/containers/SponsorsSelectionPage.jsx on lines 98..107
        src/applications/travel-pay/components/TravelClaimCard.jsx on lines 69..78
        src/applications/travel-pay/components/TravelPayClaimFilters.jsx on lines 58..67
        src/platform/forms/components/review/FormSaveErrorMessage.jsx on lines 129..138

        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 84.

        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

        Identical blocks of code found in 3 locations. Consider refactoring.
        Open

        export const ADDRESS_FORM_VALUES = {
          STATES: constants.states.USA.map(state => state.value),
          COUNTRIES: countries.map(country => country.countryName),
          COUNTRY_ISO3_CODES: countries.map(country => country.countryCodeISO3),
          MILITARY_STATES,
        Severity: Major
        Found in src/platform/user/profile/vap-svc/constants/index.js and 2 other locations - About 2 hrs to fix
        src/applications/personalization/profile/components/direct-deposit/vye/components/addressSchema.js on lines 15..20
        src/applications/verify-your-enrollment/components/addressSchema.js on lines 15..20

        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 84.

        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

        Identical blocks of code found in 3 locations. Consider refactoring.
        Open

        const ADDRESS_FORM_VALUES = {
          STATES: constants.states.USA.map(state => state.value),
          COUNTRIES: countries.map(country => country.countryName),
          COUNTRY_ISO3_CODES: countries.map(country => country.countryCodeISO3),
          MILITARY_STATES,
        src/applications/personalization/profile/components/direct-deposit/vye/components/addressSchema.js on lines 15..20
        src/platform/user/profile/vap-svc/constants/index.js on lines 9..14

        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 84.

        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

        Identical blocks of code found in 3 locations. Consider refactoring.
        Open

        const ADDRESS_FORM_VALUES = {
          STATES: constants.states.USA.map(state => state.value),
          COUNTRIES: countries.map(country => country.countryName),
          COUNTRY_ISO3_CODES: countries.map(country => country.countryCodeISO3),
          MILITARY_STATES,
        src/applications/verify-your-enrollment/components/addressSchema.js on lines 15..20
        src/platform/user/profile/vap-svc/constants/index.js on lines 9..14

        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 84.

        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 5 locations. Consider refactoring.
        Open

                  {
                    address: {
                      addressLine1: '400 NW 65th St',
                      addressType: 'DOMESTIC',
                      city: 'Seattle',
        Severity: Major
        Found in src/platform/user/profile/vap-svc/util/local-vapsvc.js and 4 other locations - About 2 hrs to fix
        src/platform/user/profile/vap-svc/util/local-vapsvc.js on lines 329..348
        src/platform/user/profile/vap-svc/util/local-vapsvc.js on lines 349..368
        src/platform/user/profile/vap-svc/util/local-vapsvc.js on lines 584..604
        src/applications/personalization/profile/msw-mocks.js on lines 571..590

        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 84.

        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 5 locations. Consider refactoring.
        Open

                  {
                    address: {
                      addressLine1: '575 20th St',
                      addressType: 'DOMESTIC',
                      city: 'San Francisco',
        Severity: Major
        Found in src/platform/user/profile/vap-svc/util/local-vapsvc.js and 4 other locations - About 2 hrs to fix
        src/platform/user/profile/vap-svc/util/local-vapsvc.js on lines 349..368
        src/platform/user/profile/vap-svc/util/local-vapsvc.js on lines 564..583
        src/platform/user/profile/vap-svc/util/local-vapsvc.js on lines 584..604
        src/applications/personalization/profile/msw-mocks.js on lines 571..590

        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 84.

        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