department-of-veterans-affairs/vets-website

View on GitHub
src/applications/gi/containers/Modals.jsx

Summary

Maintainability
F
6 days
Test Coverage

File Modals.jsx has 1024 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import React from 'react';
import { connect } from 'react-redux';
import recordEvent from 'platform/monitoring/record-event';
import { VaModal } from '@department-of-veterans-affairs/component-library/dist/react-bindings';
import * as actions from '../actions';
Severity: Major
Found in src/applications/gi/containers/Modals.jsx - About 2 days to fix

    Function renderProfileCalculatorModals has 246 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      const renderProfileCalculatorModals = () => {
        const whenUsedGiBill = (
          <div>
            <p>
              Effective January 1, 2018, the Post-9/11 GI Bill monthly housing
    Severity: Major
    Found in src/applications/gi/containers/Modals.jsx - About 1 day to fix

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

            <VaModal
              onCloseEvent={hideModal}
              visible={shouldDisplayModal('consecutiveService')}
              modalTitle="Length of longest active duty tour (REAP)"
            >
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 1 other location - About 2 hrs to fix
      src/applications/gi/containers/Modals.jsx on lines 916..940

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

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

            <VaModal
              onCloseEvent={hideModal}
              visible={shouldDisplayModal('enlistmentService')}
              modalTitle="Completed an enlistment of (MGIB):"
            >
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 1 other location - About 2 hrs to fix
      src/applications/gi/containers/Modals.jsx on lines 942..965

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

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

              <VaModal
                onCloseEvent={hideModal}
                visible={shouldDisplayModal('calcEnrolled')}
                modalTitle="Enrollment status"
              >
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 1 other location - About 1 hr to fix
      src/applications/gi/containers/Modals.jsx on lines 743..759

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

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

              <VaModal
                onCloseEvent={hideModal}
                visible={shouldDisplayModal('calcKicker')}
                modalTitle="Eligible for kicker bonus?"
              >
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 1 other location - About 1 hr to fix
      src/applications/gi/containers/Modals.jsx on lines 716..730

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

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

              <VaModal
                onCloseEvent={hideModal}
                visible={shouldDisplayModal('inStateWithoutLink')}
                modalTitle="Qualifying for in-state tuition"
              >
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 2 other locations - About 1 hr to fix
      src/applications/gi/containers/Modals.jsx on lines 48..63
      src/applications/gi/containers/Modals.jsx on lines 700..714

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

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

              <VaModal
                onCloseEvent={hideModal}
                visible={shouldDisplayModal('calcTuitionAssist')}
                modalTitle="Military Tuition Assistance (TA)"
              >
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 2 other locations - About 1 hr to fix
      src/applications/gi/containers/Modals.jsx on lines 48..63
      src/applications/gi/containers/Modals.jsx on lines 783..796

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

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

            <VaModal
              onCloseEvent={hideModal}
              visible={shouldDisplayModal('gradrates')}
              modalTitle="Graduation rate"
            >
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 2 other locations - About 1 hr to fix
      src/applications/gi/containers/Modals.jsx on lines 700..714
      src/applications/gi/containers/Modals.jsx on lines 783..796

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

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

            <VaModal
              onCloseEvent={hideModal}
              visible={shouldDisplayModal('housingAllowance')}
              modalTitle="Housing allowance"
            >
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 2 other locations - About 55 mins to fix
      src/applications/mhv-medical-records/containers/SettingsPage.jsx on lines 163..179
      src/applications/representative-search/containers/SearchPage.jsx on lines 347..360

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

      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

            <VaModal
              onCloseEvent={hideModal}
              visible={shouldDisplayModal('retention')}
              modalTitle="Retention rate"
            >
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 9 other locations - About 40 mins to fix
      src/applications/gi/containers/Modals.jsx on lines 64..73
      src/applications/gi/containers/Modals.jsx on lines 74..83
      src/applications/gi/containers/Modals.jsx on lines 84..94
      src/applications/gi/containers/Modals.jsx on lines 115..124
      src/applications/gi/containers/Modals.jsx on lines 689..698
      src/applications/gi/containers/Modals.jsx on lines 732..741
      src/applications/gi/containers/Modals.jsx on lines 770..781
      src/applications/gi/containers/Modals.jsx on lines 905..914
      src/applications/gi/containers/Modals.jsx on lines 971..981

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

      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

            <VaModal
              onCloseEvent={hideModal}
              visible={shouldDisplayModal('repayment')}
              modalTitle="Repayment rate"
            >
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 9 other locations - About 40 mins to fix
      src/applications/gi/containers/Modals.jsx on lines 38..47
      src/applications/gi/containers/Modals.jsx on lines 64..73
      src/applications/gi/containers/Modals.jsx on lines 84..94
      src/applications/gi/containers/Modals.jsx on lines 115..124
      src/applications/gi/containers/Modals.jsx on lines 689..698
      src/applications/gi/containers/Modals.jsx on lines 732..741
      src/applications/gi/containers/Modals.jsx on lines 770..781
      src/applications/gi/containers/Modals.jsx on lines 905..914
      src/applications/gi/containers/Modals.jsx on lines 971..981

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

      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

              <VaModal
                onCloseEvent={hideModal}
                visible={shouldDisplayModal('calcSchoolCalendar')}
                modalTitle="School calendar"
              >
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 9 other locations - About 40 mins to fix
      src/applications/gi/containers/Modals.jsx on lines 38..47
      src/applications/gi/containers/Modals.jsx on lines 64..73
      src/applications/gi/containers/Modals.jsx on lines 74..83
      src/applications/gi/containers/Modals.jsx on lines 84..94
      src/applications/gi/containers/Modals.jsx on lines 115..124
      src/applications/gi/containers/Modals.jsx on lines 689..698
      src/applications/gi/containers/Modals.jsx on lines 770..781
      src/applications/gi/containers/Modals.jsx on lines 905..914
      src/applications/gi/containers/Modals.jsx on lines 971..981

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

      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

            <VaModal
              onCloseEvent={hideModal}
              visible={shouldDisplayModal('comparisonLimit')}
              modalTitle="You’ve reached the comparison limit"
            >
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 9 other locations - About 40 mins to fix
      src/applications/gi/containers/Modals.jsx on lines 38..47
      src/applications/gi/containers/Modals.jsx on lines 64..73
      src/applications/gi/containers/Modals.jsx on lines 74..83
      src/applications/gi/containers/Modals.jsx on lines 84..94
      src/applications/gi/containers/Modals.jsx on lines 115..124
      src/applications/gi/containers/Modals.jsx on lines 689..698
      src/applications/gi/containers/Modals.jsx on lines 732..741
      src/applications/gi/containers/Modals.jsx on lines 770..781
      src/applications/gi/containers/Modals.jsx on lines 971..981

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

      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

            <VaModal
              onCloseEvent={hideModal}
              visible={shouldDisplayModal('salaries')}
              modalTitle="Average salaries"
            >
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 9 other locations - About 40 mins to fix
      src/applications/gi/containers/Modals.jsx on lines 38..47
      src/applications/gi/containers/Modals.jsx on lines 74..83
      src/applications/gi/containers/Modals.jsx on lines 84..94
      src/applications/gi/containers/Modals.jsx on lines 115..124
      src/applications/gi/containers/Modals.jsx on lines 689..698
      src/applications/gi/containers/Modals.jsx on lines 732..741
      src/applications/gi/containers/Modals.jsx on lines 770..781
      src/applications/gi/containers/Modals.jsx on lines 905..914
      src/applications/gi/containers/Modals.jsx on lines 971..981

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

      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

              <VaModal
                onCloseEvent={hideModal}
                visible={shouldDisplayModal('calcWorking')}
                modalTitle="Will be working"
              >
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 9 other locations - About 40 mins to fix
      src/applications/gi/containers/Modals.jsx on lines 38..47
      src/applications/gi/containers/Modals.jsx on lines 64..73
      src/applications/gi/containers/Modals.jsx on lines 74..83
      src/applications/gi/containers/Modals.jsx on lines 84..94
      src/applications/gi/containers/Modals.jsx on lines 115..124
      src/applications/gi/containers/Modals.jsx on lines 689..698
      src/applications/gi/containers/Modals.jsx on lines 732..741
      src/applications/gi/containers/Modals.jsx on lines 905..914
      src/applications/gi/containers/Modals.jsx on lines 971..981

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

      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

            <VaModal
              onCloseEvent={hideModal}
              visible={shouldDisplayModal('scholarships')}
              modalTitle="Scholarships"
            >
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 9 other locations - About 40 mins to fix
      src/applications/gi/containers/Modals.jsx on lines 38..47
      src/applications/gi/containers/Modals.jsx on lines 64..73
      src/applications/gi/containers/Modals.jsx on lines 74..83
      src/applications/gi/containers/Modals.jsx on lines 84..94
      src/applications/gi/containers/Modals.jsx on lines 689..698
      src/applications/gi/containers/Modals.jsx on lines 732..741
      src/applications/gi/containers/Modals.jsx on lines 770..781
      src/applications/gi/containers/Modals.jsx on lines 905..914
      src/applications/gi/containers/Modals.jsx on lines 971..981

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

      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

              <VaModal
                onCloseEvent={hideModal}
                visible={shouldDisplayModal('calcScholarships')}
                modalTitle="Scholarships (excluding Pell Grants)"
              >
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 9 other locations - About 40 mins to fix
      src/applications/gi/containers/Modals.jsx on lines 38..47
      src/applications/gi/containers/Modals.jsx on lines 64..73
      src/applications/gi/containers/Modals.jsx on lines 74..83
      src/applications/gi/containers/Modals.jsx on lines 84..94
      src/applications/gi/containers/Modals.jsx on lines 115..124
      src/applications/gi/containers/Modals.jsx on lines 732..741
      src/applications/gi/containers/Modals.jsx on lines 770..781
      src/applications/gi/containers/Modals.jsx on lines 905..914
      src/applications/gi/containers/Modals.jsx on lines 971..981

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

      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

            <VaModal
              onCloseEvent={hideModal}
              visible={shouldDisplayModal('preferredProvider')}
              modalTitle="Preferred training providers"
            >
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 9 other locations - About 40 mins to fix
      src/applications/gi/containers/Modals.jsx on lines 38..47
      src/applications/gi/containers/Modals.jsx on lines 64..73
      src/applications/gi/containers/Modals.jsx on lines 74..83
      src/applications/gi/containers/Modals.jsx on lines 84..94
      src/applications/gi/containers/Modals.jsx on lines 115..124
      src/applications/gi/containers/Modals.jsx on lines 689..698
      src/applications/gi/containers/Modals.jsx on lines 732..741
      src/applications/gi/containers/Modals.jsx on lines 770..781
      src/applications/gi/containers/Modals.jsx on lines 905..914

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

      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

            <VaModal
              onCloseEvent={hideModal}
              visible={shouldDisplayModal('preferredProviders')}
              modalTitle="Preferred training providers"
            >
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 9 other locations - About 40 mins to fix
      src/applications/gi/containers/Modals.jsx on lines 38..47
      src/applications/gi/containers/Modals.jsx on lines 64..73
      src/applications/gi/containers/Modals.jsx on lines 74..83
      src/applications/gi/containers/Modals.jsx on lines 115..124
      src/applications/gi/containers/Modals.jsx on lines 689..698
      src/applications/gi/containers/Modals.jsx on lines 732..741
      src/applications/gi/containers/Modals.jsx on lines 770..781
      src/applications/gi/containers/Modals.jsx on lines 905..914
      src/applications/gi/containers/Modals.jsx on lines 971..981

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

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

              <p>
                To learn more, visit the "Caution Flag" section of the{' '}
                <a
                  href="https://www.benefits.va.gov/gibill/comparison_tool/about_this_tool.asp#caution"
                  target="_blank"
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 6 other locations - About 35 mins to fix
      src/applications/auth/components/RenderErrorContainer.jsx on lines 169..180
      src/applications/disability-benefits/all-claims/content/claimExamsInfo.jsx on lines 20..26
      src/applications/gi/components/content/modals/AccreditationModalContent.jsx on lines 25..36
      src/applications/gi/components/content/modals/EightKeysModalContent.jsx on lines 19..30
      src/platform/forms-system/src/js/definitions/content/directDeposit.jsx on lines 50..62
      src/platform/user/profile/vap-svc/components/base/VAPServiceTransactionErrorBanner.jsx on lines 45..55

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

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

            <VaModal
              onCloseEvent={hideModal}
              visible={shouldDisplayModal('gibillstudents')}
              modalTitle="GI Bill students"
              large
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 8 other locations - About 35 mins to fix
      src/applications/gi/containers/Modals.jsx on lines 190..197
      src/applications/gi/containers/Modals.jsx on lines 199..206
      src/applications/gi/containers/Modals.jsx on lines 223..230
      src/applications/gi/containers/Modals.jsx on lines 285..292
      src/applications/gi/containers/Modals.jsx on lines 301..308
      src/applications/gi/containers/Modals.jsx on lines 337..344
      src/applications/gi/containers/Modals.jsx on lines 353..360
      src/applications/gi/containers/Modals.jsx on lines 761..768

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

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

            <VaModal
              onCloseEvent={hideModal}
              visible={shouldDisplayModal('poe')}
              modalTitle="VA Complaints (all campuses)"
              large
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 8 other locations - About 35 mins to fix
      src/applications/gi/containers/Modals.jsx on lines 177..184
      src/applications/gi/containers/Modals.jsx on lines 190..197
      src/applications/gi/containers/Modals.jsx on lines 199..206
      src/applications/gi/containers/Modals.jsx on lines 285..292
      src/applications/gi/containers/Modals.jsx on lines 301..308
      src/applications/gi/containers/Modals.jsx on lines 337..344
      src/applications/gi/containers/Modals.jsx on lines 353..360
      src/applications/gi/containers/Modals.jsx on lines 761..768

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

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

            <VaModal
              onCloseEvent={hideModal}
              visible={shouldDisplayModal('singleContact')}
              modalTitle="Single point of contact for Veterans"
              large
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 8 other locations - About 35 mins to fix
      src/applications/gi/containers/Modals.jsx on lines 177..184
      src/applications/gi/containers/Modals.jsx on lines 190..197
      src/applications/gi/containers/Modals.jsx on lines 199..206
      src/applications/gi/containers/Modals.jsx on lines 223..230
      src/applications/gi/containers/Modals.jsx on lines 285..292
      src/applications/gi/containers/Modals.jsx on lines 301..308
      src/applications/gi/containers/Modals.jsx on lines 353..360
      src/applications/gi/containers/Modals.jsx on lines 761..768

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

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

              <VaModal
                onCloseEvent={hideModal}
                visible={shouldDisplayModal('calcBeneficiaryLocationQuestion')}
                modalTitle="Location where you'll take classes"
                large
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 8 other locations - About 35 mins to fix
      src/applications/gi/containers/Modals.jsx on lines 177..184
      src/applications/gi/containers/Modals.jsx on lines 190..197
      src/applications/gi/containers/Modals.jsx on lines 199..206
      src/applications/gi/containers/Modals.jsx on lines 223..230
      src/applications/gi/containers/Modals.jsx on lines 285..292
      src/applications/gi/containers/Modals.jsx on lines 301..308
      src/applications/gi/containers/Modals.jsx on lines 337..344
      src/applications/gi/containers/Modals.jsx on lines 353..360

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

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

            <VaModal
              onCloseEvent={hideModal}
              visible={shouldDisplayModal('vetgroups')}
              modalTitle="Student Veteran group"
              large
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 8 other locations - About 35 mins to fix
      src/applications/gi/containers/Modals.jsx on lines 177..184
      src/applications/gi/containers/Modals.jsx on lines 199..206
      src/applications/gi/containers/Modals.jsx on lines 223..230
      src/applications/gi/containers/Modals.jsx on lines 285..292
      src/applications/gi/containers/Modals.jsx on lines 301..308
      src/applications/gi/containers/Modals.jsx on lines 337..344
      src/applications/gi/containers/Modals.jsx on lines 353..360
      src/applications/gi/containers/Modals.jsx on lines 761..768

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

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

            <VaModal
              onCloseEvent={hideModal}
              visible={shouldDisplayModal('housingAllowanceSchool')}
              modalTitle="Your housing allowance is determined by where you take classes"
              large
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 8 other locations - About 35 mins to fix
      src/applications/gi/containers/Modals.jsx on lines 177..184
      src/applications/gi/containers/Modals.jsx on lines 190..197
      src/applications/gi/containers/Modals.jsx on lines 199..206
      src/applications/gi/containers/Modals.jsx on lines 223..230
      src/applications/gi/containers/Modals.jsx on lines 301..308
      src/applications/gi/containers/Modals.jsx on lines 337..344
      src/applications/gi/containers/Modals.jsx on lines 353..360
      src/applications/gi/containers/Modals.jsx on lines 761..768

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

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

            <VaModal
              onCloseEvent={hideModal}
              visible={shouldDisplayModal('eightKeys')}
              modalTitle="8 Keys to Veteran Success"
              large
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 8 other locations - About 35 mins to fix
      src/applications/gi/containers/Modals.jsx on lines 177..184
      src/applications/gi/containers/Modals.jsx on lines 190..197
      src/applications/gi/containers/Modals.jsx on lines 199..206
      src/applications/gi/containers/Modals.jsx on lines 223..230
      src/applications/gi/containers/Modals.jsx on lines 285..292
      src/applications/gi/containers/Modals.jsx on lines 337..344
      src/applications/gi/containers/Modals.jsx on lines 353..360
      src/applications/gi/containers/Modals.jsx on lines 761..768

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

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

            <VaModal
              onCloseEvent={hideModal}
              visible={shouldDisplayModal('yribbon')}
              modalTitle="Yellow Ribbon Program"
              large
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 8 other locations - About 35 mins to fix
      src/applications/gi/containers/Modals.jsx on lines 177..184
      src/applications/gi/containers/Modals.jsx on lines 190..197
      src/applications/gi/containers/Modals.jsx on lines 223..230
      src/applications/gi/containers/Modals.jsx on lines 285..292
      src/applications/gi/containers/Modals.jsx on lines 301..308
      src/applications/gi/containers/Modals.jsx on lines 337..344
      src/applications/gi/containers/Modals.jsx on lines 353..360
      src/applications/gi/containers/Modals.jsx on lines 761..768

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

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

            <VaModal
              onCloseEvent={hideModal}
              visible={shouldDisplayModal('independentStudy')}
              modalTitle="Independent study"
              large
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 8 other locations - About 35 mins to fix
      src/applications/gi/containers/Modals.jsx on lines 177..184
      src/applications/gi/containers/Modals.jsx on lines 190..197
      src/applications/gi/containers/Modals.jsx on lines 199..206
      src/applications/gi/containers/Modals.jsx on lines 223..230
      src/applications/gi/containers/Modals.jsx on lines 285..292
      src/applications/gi/containers/Modals.jsx on lines 301..308
      src/applications/gi/containers/Modals.jsx on lines 337..344
      src/applications/gi/containers/Modals.jsx on lines 761..768

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

      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

                <p>
                  Visit this school’s website to{' '}
                  <a
                    href={inStateTuitionInformation}
                    rel="noopener noreferrer"
      Severity: Major
      Found in src/applications/gi/containers/Modals.jsx and 4 other locations - About 35 mins to fix
      src/applications/mhv-secure-messaging/components/FrequentlyAskedQuestions.jsx on lines 125..130
      src/applications/my-education-benefits/components/ApplicantIdentityView.jsx on lines 33..41
      src/applications/toe/components/ApplicantIdentityView.jsx on lines 33..41
      src/applications/toe/components/confirmation/ApprovedConfirmation.jsx on lines 99..105

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

      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

      There are no issues that match your filters.

      Category
      Status