department-of-veterans-affairs/vets-website

View on GitHub
src/applications/disability-benefits/686c-674-v2/config/form.js

Summary

Maintainability
F
1 wk
Test Coverage

File form.js has 780 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import fullSchema from 'vets-json-schema/dist/686C-674-schema.json';
import environment from 'platform/utilities/environment';
import FormFooter from 'platform/forms/components/FormFooter';
import { externalServices } from 'platform/monitoring/DowntimeNotification';
import { VA_FORM_IDS } from 'platform/forms/constants';
Severity: Major
Found in src/applications/disability-benefits/686c-674-v2/config/form.js - About 1 day to fix

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

        addChild: {
          title: 'Information needed to add children',
          pages: {
            addChildInformation: {
              depends: formData =>
    src/applications/disability-benefits/686c-674/config/form.js on lines 220..266

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

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

        reportStepchildNotInHousehold: {
          title:
            'Information needed to remove a stepchild who has left your household',
          pages: {
            stepchildren: {
    src/applications/disability-benefits/686c-674/config/form.js on lines 339..371

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

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

        deceasedDependents: {
          title: 'Information needed to remove a dependent who has died',
          pages: {
            dependentInformation: {
              depends: formData =>
    src/applications/disability-benefits/686c-674/config/form.js on lines 372..394

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

    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

        veteranInformation: {
          title: "Veteran's information",
          pages: {
            veteranInformation: {
              path: 'veteran-information',
    src/applications/simple-forms/mock-simple-forms-patterns-v3/config/form.js on lines 40..62

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

    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

            veteranMarriageHistoryDetailsPartFive: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.addSpouse) &&
                formData?.veteranWasMarriedBefore,
              title:
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 299..311
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 312..324
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 325..337
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 338..350
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 351..363
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 393..404
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 405..416
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 417..428
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 429..441

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

    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

            spouseMarriageHistoryDetailsPartFour: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.addSpouse) &&
                formData?.spouseWasMarriedBefore,
              title:
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 299..311
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 312..324
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 325..337
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 351..363
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 393..404
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 405..416
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 417..428
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 429..441
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 442..453

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

    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

            spouseMarriageHistoryDetails: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.addSpouse) &&
                formData?.spouseWasMarriedBefore,
              title:
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 312..324
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 325..337
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 338..350
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 351..363
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 393..404
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 405..416
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 417..428
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 429..441
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 442..453

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

    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

            veteranMarriageHistoryDetailsPartThree: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.addSpouse) &&
                formData?.veteranWasMarriedBefore,
              title:
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 299..311
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 312..324
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 325..337
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 338..350
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 351..363
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 393..404
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 405..416
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 429..441
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 442..453

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

    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

            veteranMarriageHistoryDetailsPartTwo: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.addSpouse) &&
                formData?.veteranWasMarriedBefore,
              title:
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 299..311
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 312..324
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 325..337
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 338..350
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 351..363
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 393..404
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 417..428
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 429..441
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 442..453

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

    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

            spouseMarriageHistoryDetailsPartTwo: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.addSpouse) &&
                formData?.spouseWasMarriedBefore,
              title:
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 299..311
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 325..337
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 338..350
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 351..363
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 393..404
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 405..416
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 417..428
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 429..441
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 442..453

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

    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

            veteranMarriageHistoryDetails: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.addSpouse) &&
                formData?.veteranWasMarriedBefore,
              title:
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 299..311
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 312..324
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 325..337
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 338..350
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 351..363
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 405..416
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 417..428
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 429..441
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 442..453

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

    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

            spouseMarriageHistoryDetailsPartFive: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.addSpouse) &&
                formData?.spouseWasMarriedBefore,
              title:
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 299..311
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 312..324
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 325..337
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 338..350
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 393..404
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 405..416
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 417..428
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 429..441
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 442..453

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

    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

            veteranMarriageHistoryDetailsPartFour: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.addSpouse) &&
                formData?.veteranWasMarriedBefore,
              title:
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 299..311
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 312..324
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 325..337
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 338..350
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 351..363
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 393..404
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 405..416
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 417..428
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 442..453

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

    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

            spouseMarriageHistoryDetailsPartThree: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.addSpouse) &&
                formData?.spouseWasMarriedBefore,
              title:
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 299..311
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 312..324
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 338..350
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 351..363
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 393..404
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 405..416
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 417..428
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 429..441
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 442..453

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

    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

        reportChildStoppedAttendingSchool: {
          title:
            'Remove one or more children between ages 18 and 23 who left school',
          pages: {
            childNoLongerInSchool: {
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 748..764
    src/applications/disability-benefits/686c-674/config/form.js on lines 326..338
    src/applications/disability-benefits/686c-674/config/form.js on lines 395..411
    src/applications/disability-benefits/686c-674/config/form.js on lines 412..429

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

    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

        reportChildMarriage: {
          title: 'Remove one or more children who got married',
          pages: {
            childInformation: {
              depends: formData =>
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 766..783
    src/applications/disability-benefits/686c-674/config/form.js on lines 326..338
    src/applications/disability-benefits/686c-674/config/form.js on lines 395..411
    src/applications/disability-benefits/686c-674/config/form.js on lines 412..429

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

    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

            currentMarriageInformationPartThree: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.addSpouse) &&
                !formData?.doesLiveWithSpouse?.spouseDoesLiveWithVeteran,
              title: 'Information needed to add your spouse: Marriage information',
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 260..268

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

    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

            currentMarriageInformationPartFour: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.addSpouse) &&
                !formData?.doesLiveWithSpouse?.spouseDoesLiveWithVeteran,
              title: 'Information needed to add your spouse: Marriage information',
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 251..259

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

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

            studentAdditionalInformationPartSeven: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.report674),
              title: 'Add one or more students between ages 18 and 23',
              path: 'report-674/:index/school-accreditation',
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 535..544
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 545..554
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 555..564
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 565..574
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 575..584
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 585..594
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 605..614
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 615..624
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 625..634
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 635..644
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 645..654
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 655..664

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

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

            studentAdditionalInformationPartSix: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.report674),
              title: 'Add one or more students between ages 18 and 23',
              path: 'report-674/:index/student-attendance',
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 535..544
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 545..554
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 555..564
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 565..574
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 575..584
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 595..604
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 605..614
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 615..624
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 625..634
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 635..644
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 645..654
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 655..664

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

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

            studentAdditionalInformationPartEleven: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.report674),
              title: 'Add one or more students between ages 18 and 23',
              path: 'report-674/:index/student-expected-income-at-school',
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 535..544
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 545..554
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 555..564
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 565..574
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 575..584
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 585..594
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 595..604
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 605..614
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 615..624
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 625..634
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 645..654
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 655..664

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

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

            studentAdditionalInformationPartThree: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.report674),
              title: 'Add one or more students between ages 18 and 23',
              path: 'report-674/:index/student-marriage',
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 535..544
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 545..554
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 565..574
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 575..584
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 585..594
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 595..604
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 605..614
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 615..624
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 625..634
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 635..644
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 645..654
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 655..664

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

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

            studentAdditionalInformationPartEight: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.report674),
              title: 'Add one or more students between ages 18 and 23',
              path: 'report-674/:index/school-term-dates',
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 535..544
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 545..554
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 555..564
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 565..574
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 575..584
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 585..594
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 595..604
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 615..624
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 625..634
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 635..644
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 645..654
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 655..664

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

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

            studentAdditionalInformationPartTwo: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.report674),
              title: 'Add one or more students between ages 18 and 23',
              path: 'report-674/:index/student-address',
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 535..544
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 555..564
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 565..574
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 575..584
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 585..594
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 595..604
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 605..614
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 615..624
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 625..634
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 635..644
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 645..654
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 655..664

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

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

            studentAdditionalInformation: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.report674),
              title: 'Add one or more students between ages 18 and 23',
              path: 'report-674/:index/student-identification',
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 545..554
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 555..564
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 565..574
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 575..584
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 585..594
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 595..604
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 605..614
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 615..624
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 625..634
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 635..644
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 645..654
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 655..664

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

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

            studentAdditionalInformationPartFive: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.report674),
              title: 'Add one or more students between ages 18 and 23',
              path: 'report-674/:index/school-name',
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 535..544
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 545..554
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 555..564
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 565..574
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 585..594
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 595..604
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 605..614
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 615..624
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 625..634
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 635..644
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 645..654
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 655..664

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

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

            studentAdditionalInformationPartThirteen: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.report674),
              title: 'Add one or more students between ages 18 and 23',
              path: 'report-674/:index/additional-remarks',
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 535..544
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 545..554
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 555..564
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 565..574
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 575..584
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 585..594
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 595..604
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 605..614
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 615..624
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 625..634
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 635..644
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 645..654

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

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

            studentAdditionalInformationPartTwelve: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.report674),
              title: 'Add one or more students between ages 18 and 23',
              path: 'report-674/:index/student-assets',
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 535..544
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 545..554
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 555..564
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 565..574
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 575..584
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 585..594
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 595..604
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 605..614
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 615..624
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 625..634
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 635..644
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 655..664

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

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

            studentAdditionalInformationPartFour: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.report674),
              title: 'Add one or more students between ages 18 and 23',
              path: 'report-674/:index/student-education-benefits',
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 535..544
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 545..554
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 555..564
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 575..584
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 585..594
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 595..604
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 605..614
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 615..624
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 625..634
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 635..644
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 645..654
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 655..664

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

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

            studentAdditionalInformationPartNine: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.report674),
              title: 'Add one or more students between ages 18 and 23',
              path: 'report-674/:index/student-previous-term',
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 535..544
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 545..554
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 555..564
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 565..574
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 575..584
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 585..594
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 595..604
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 605..614
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 625..634
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 635..644
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 645..654
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 655..664

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

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

            studentAdditionalInformationPartTen: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.report674),
              title: 'Add one or more students between ages 18 and 23',
              path: 'report-674/:index/student-income-at-school',
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 535..544
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 545..554
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 555..564
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 565..574
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 575..584
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 585..594
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 595..604
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 605..614
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 615..624
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 635..644
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 645..654
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 655..664

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

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

            veteranMarriageHistoryPartTwo: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.addSpouse) &&
                formData?.veteranWasMarriedBefore,
              title:
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 278..287
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 288..298
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 383..392

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

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

            spouseMarriageHistoryPartTwo: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.addSpouse) &&
                formData?.spouseWasMarriedBefore,
              title:
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 288..298
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 373..382
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 383..392

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

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

            additionalQuestionsView: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.addSpouse) &&
                formData?.spouseWasMarriedBefore,
              title:
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 278..287
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 373..382
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 383..392

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

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

            veteranAdditionalQuestionsView: {
              depends: formData =>
                isChapterFieldRequired(formData, TASK_KEYS.addSpouse) &&
                formData?.veteranWasMarriedBefore,
              title:
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 278..287
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 288..298
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 373..382

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

    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

            addDependentOptions: {
              hideHeaderRow: true,
              title: 'What do you like to do?',
              path: 'options-selection/add-dependents',
              uiSchema: addDependentOptions.uiSchema,
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 164..171

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

    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

            removeDependentOptions: {
              hideHeaderRow: true,
              title: 'What do you like to do?',
              path: 'options-selection/remove-dependents',
              uiSchema: removeDependentOptions.uiSchema,
    src/applications/disability-benefits/686c-674-v2/config/form.js on lines 156..163

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

    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