department-of-veterans-affairs/vets-website

View on GitHub
src/applications/burials-ez/config/form.js

Summary

Maintainability
F
6 days
Test Coverage

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

import React from 'react';
import get from '@department-of-veterans-affairs/platform-forms-system/get';
import fullSchemaBurials from 'vets-json-schema/dist/21P-530V2-schema.json';
import { externalServices } from '@department-of-veterans-affairs/platform-monitoring/DowntimeNotification';
import FormFooter from '@department-of-veterans-affairs/platform-forms/FormFooter';
Severity: Minor
Found in src/applications/burials-ez/config/form.js - About 6 hrs to fix

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

            burialAllowancePartOne: {
              title: 'Burial allowance',
              reviewTitle: () => (
                <div>
                  <h4 className="vads-u-font-size--h3">Burial allowance</h4>
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 6 other locations - About 2 hrs to fix
    src/applications/burials-ez/config/form.js on lines 208..219
    src/applications/burials-ez/config/form.js on lines 305..316
    src/applications/burials-ez/config/form.js on lines 317..328
    src/applications/burials-ez/config/form.js on lines 359..372
    src/applications/burials-ez/config/form.js on lines 381..392
    src/applications/burials-ez/config/form.js on lines 420..431

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

    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

            transportationExpenses: {
              title: 'Transportation allowance',
              reviewTitle: () => (
                <div>
                  <h4 className="vads-u-font-size--h3">Transportation allowance</h4>
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 6 other locations - About 2 hrs to fix
    src/applications/burials-ez/config/form.js on lines 208..219
    src/applications/burials-ez/config/form.js on lines 267..278
    src/applications/burials-ez/config/form.js on lines 305..316
    src/applications/burials-ez/config/form.js on lines 317..328
    src/applications/burials-ez/config/form.js on lines 359..372
    src/applications/burials-ez/config/form.js on lines 420..431

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

    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

            transportationReceipts: {
              title: 'Transportation receipts',
              reviewTitle: () => (
                <div>
                  <h4 className="vads-u-font-size--h3">Transportation receipts</h4>
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 6 other locations - About 2 hrs to fix
    src/applications/burials-ez/config/form.js on lines 208..219
    src/applications/burials-ez/config/form.js on lines 267..278
    src/applications/burials-ez/config/form.js on lines 305..316
    src/applications/burials-ez/config/form.js on lines 317..328
    src/applications/burials-ez/config/form.js on lines 359..372
    src/applications/burials-ez/config/form.js on lines 381..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 85.

    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

            uploadDD214: {
              title: 'Veteran’s DD214',
              reviewTitle: () => (
                <div>
                  <h4 className="vads-u-font-size--h3">Veteran’s DD214</h4>
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 6 other locations - About 2 hrs to fix
    src/applications/burials-ez/config/form.js on lines 267..278
    src/applications/burials-ez/config/form.js on lines 305..316
    src/applications/burials-ez/config/form.js on lines 317..328
    src/applications/burials-ez/config/form.js on lines 359..372
    src/applications/burials-ez/config/form.js on lines 381..392
    src/applications/burials-ez/config/form.js on lines 420..431

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

    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

            nationalOrFederalCemetery: {
              title: 'Cemetery location',
              reviewTitle: () => (
                <div>
                  <h4 className="vads-u-font-size--h3">Cemetery location</h4>
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 6 other locations - About 2 hrs to fix
    src/applications/burials-ez/config/form.js on lines 208..219
    src/applications/burials-ez/config/form.js on lines 267..278
    src/applications/burials-ez/config/form.js on lines 305..316
    src/applications/burials-ez/config/form.js on lines 359..372
    src/applications/burials-ez/config/form.js on lines 381..392
    src/applications/burials-ez/config/form.js on lines 420..431

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

    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

            plotAllowancePartOne: {
              title: 'Plot or interment allowance',
              reviewTitle: () => (
                <div>
                  <h4 className="vads-u-font-size--h3">
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 6 other locations - About 2 hrs to fix
    src/applications/burials-ez/config/form.js on lines 208..219
    src/applications/burials-ez/config/form.js on lines 267..278
    src/applications/burials-ez/config/form.js on lines 305..316
    src/applications/burials-ez/config/form.js on lines 317..328
    src/applications/burials-ez/config/form.js on lines 381..392
    src/applications/burials-ez/config/form.js on lines 420..431

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

    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

            finalRestingPlace: {
              title: 'Final resting place',
              reviewTitle: () => (
                <div>
                  <h4 className="vads-u-font-size--h3">Final resting place</h4>
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 6 other locations - About 2 hrs to fix
    src/applications/burials-ez/config/form.js on lines 208..219
    src/applications/burials-ez/config/form.js on lines 267..278
    src/applications/burials-ez/config/form.js on lines 317..328
    src/applications/burials-ez/config/form.js on lines 359..372
    src/applications/burials-ez/config/form.js on lines 381..392
    src/applications/burials-ez/config/form.js on lines 420..431

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

    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

            benefitsSelection: {
              title: 'Benefits selection',
              reviewTitle: () => (
                <div>
                  <h4 className="vads-u-font-size--h3">Benefits selection</h4>
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 12 other locations - About 1 hr to fix
    src/applications/burials-ez/config/form.js on lines 106..116
    src/applications/burials-ez/config/form.js on lines 117..127
    src/applications/burials-ez/config/form.js on lines 128..138
    src/applications/burials-ez/config/form.js on lines 139..149
    src/applications/burials-ez/config/form.js on lines 155..167
    src/applications/burials-ez/config/form.js on lines 179..189
    src/applications/burials-ez/config/form.js on lines 195..207
    src/applications/burials-ez/config/form.js on lines 232..242
    src/applications/burials-ez/config/form.js on lines 398..408
    src/applications/burials-ez/config/form.js on lines 409..419
    src/applications/burials-ez/config/form.js on lines 432..442
    src/applications/burials-ez/config/form.js on lines 443..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 71.

    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

            personalInformation: {
              title: 'Personal information',
              reviewTitle: () => (
                <div>
                  <h4 className="vads-u-font-size--h3">Personal Information</h4>
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 12 other locations - About 1 hr to fix
    src/applications/burials-ez/config/form.js on lines 106..116
    src/applications/burials-ez/config/form.js on lines 128..138
    src/applications/burials-ez/config/form.js on lines 139..149
    src/applications/burials-ez/config/form.js on lines 155..167
    src/applications/burials-ez/config/form.js on lines 179..189
    src/applications/burials-ez/config/form.js on lines 195..207
    src/applications/burials-ez/config/form.js on lines 232..242
    src/applications/burials-ez/config/form.js on lines 256..266
    src/applications/burials-ez/config/form.js on lines 398..408
    src/applications/burials-ez/config/form.js on lines 409..419
    src/applications/burials-ez/config/form.js on lines 432..442
    src/applications/burials-ez/config/form.js on lines 443..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 71.

    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

            mailingAddress: {
              title: 'Mailing address',
              reviewTitle: () => (
                <div>
                  <h4 className="vads-u-font-size--h3">Mailing address</h4>
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 12 other locations - About 1 hr to fix
    src/applications/burials-ez/config/form.js on lines 106..116
    src/applications/burials-ez/config/form.js on lines 117..127
    src/applications/burials-ez/config/form.js on lines 139..149
    src/applications/burials-ez/config/form.js on lines 155..167
    src/applications/burials-ez/config/form.js on lines 179..189
    src/applications/burials-ez/config/form.js on lines 195..207
    src/applications/burials-ez/config/form.js on lines 232..242
    src/applications/burials-ez/config/form.js on lines 256..266
    src/applications/burials-ez/config/form.js on lines 398..408
    src/applications/burials-ez/config/form.js on lines 409..419
    src/applications/burials-ez/config/form.js on lines 432..442
    src/applications/burials-ez/config/form.js on lines 443..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 71.

    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

            locationOfDeath: {
              title: 'Veteran death location',
              reviewTitle: () => (
                <div>
                  <h4 className="vads-u-font-size--h3">Veteran death location</h4>
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 12 other locations - About 1 hr to fix
    src/applications/burials-ez/config/form.js on lines 106..116
    src/applications/burials-ez/config/form.js on lines 117..127
    src/applications/burials-ez/config/form.js on lines 128..138
    src/applications/burials-ez/config/form.js on lines 139..149
    src/applications/burials-ez/config/form.js on lines 155..167
    src/applications/burials-ez/config/form.js on lines 195..207
    src/applications/burials-ez/config/form.js on lines 232..242
    src/applications/burials-ez/config/form.js on lines 256..266
    src/applications/burials-ez/config/form.js on lines 398..408
    src/applications/burials-ez/config/form.js on lines 409..419
    src/applications/burials-ez/config/form.js on lines 432..442
    src/applications/burials-ez/config/form.js on lines 443..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 71.

    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

            fasterClaimProcessing: {
              title: 'Faster claim processing',
              reviewTitle: () => (
                <div>
                  <h4 className="vads-u-font-size--h3">Faster claim processing</h4>
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 12 other locations - About 1 hr to fix
    src/applications/burials-ez/config/form.js on lines 106..116
    src/applications/burials-ez/config/form.js on lines 117..127
    src/applications/burials-ez/config/form.js on lines 128..138
    src/applications/burials-ez/config/form.js on lines 139..149
    src/applications/burials-ez/config/form.js on lines 155..167
    src/applications/burials-ez/config/form.js on lines 179..189
    src/applications/burials-ez/config/form.js on lines 195..207
    src/applications/burials-ez/config/form.js on lines 232..242
    src/applications/burials-ez/config/form.js on lines 256..266
    src/applications/burials-ez/config/form.js on lines 398..408
    src/applications/burials-ez/config/form.js on lines 409..419
    src/applications/burials-ez/config/form.js on lines 432..442

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

    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

            separationDocuments: {
              title: 'DD214 or other separation documents',
              reviewTitle: () => (
                <div>
                  <h4 className="vads-u-font-size--h3">
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 12 other locations - About 1 hr to fix
    src/applications/burials-ez/config/form.js on lines 106..116
    src/applications/burials-ez/config/form.js on lines 117..127
    src/applications/burials-ez/config/form.js on lines 128..138
    src/applications/burials-ez/config/form.js on lines 139..149
    src/applications/burials-ez/config/form.js on lines 155..167
    src/applications/burials-ez/config/form.js on lines 179..189
    src/applications/burials-ez/config/form.js on lines 232..242
    src/applications/burials-ez/config/form.js on lines 256..266
    src/applications/burials-ez/config/form.js on lines 398..408
    src/applications/burials-ez/config/form.js on lines 409..419
    src/applications/burials-ez/config/form.js on lines 432..442
    src/applications/burials-ez/config/form.js on lines 443..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 71.

    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

            veteranInformation: {
              title: 'Deceased Veteran information',
              reviewTitle: () => (
                <div>
                  <h4 className="vads-u-font-size--h3">
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 12 other locations - About 1 hr to fix
    src/applications/burials-ez/config/form.js on lines 106..116
    src/applications/burials-ez/config/form.js on lines 117..127
    src/applications/burials-ez/config/form.js on lines 128..138
    src/applications/burials-ez/config/form.js on lines 139..149
    src/applications/burials-ez/config/form.js on lines 179..189
    src/applications/burials-ez/config/form.js on lines 195..207
    src/applications/burials-ez/config/form.js on lines 232..242
    src/applications/burials-ez/config/form.js on lines 256..266
    src/applications/burials-ez/config/form.js on lines 398..408
    src/applications/burials-ez/config/form.js on lines 409..419
    src/applications/burials-ez/config/form.js on lines 432..442
    src/applications/burials-ez/config/form.js on lines 443..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 71.

    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

            contactInformation: {
              title: 'Contact information',
              reviewTitle: () => (
                <div>
                  <h4 className="vads-u-font-size--h3">Contact information</h4>
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 12 other locations - About 1 hr to fix
    src/applications/burials-ez/config/form.js on lines 106..116
    src/applications/burials-ez/config/form.js on lines 117..127
    src/applications/burials-ez/config/form.js on lines 128..138
    src/applications/burials-ez/config/form.js on lines 155..167
    src/applications/burials-ez/config/form.js on lines 179..189
    src/applications/burials-ez/config/form.js on lines 195..207
    src/applications/burials-ez/config/form.js on lines 232..242
    src/applications/burials-ez/config/form.js on lines 256..266
    src/applications/burials-ez/config/form.js on lines 398..408
    src/applications/burials-ez/config/form.js on lines 409..419
    src/applications/burials-ez/config/form.js on lines 432..442
    src/applications/burials-ez/config/form.js on lines 443..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 71.

    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

            deathCertificate: {
              title: 'Death certificate',
              reviewTitle: () => (
                <div>
                  <h4 className="vads-u-font-size--h3">Death certificate</h4>
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 12 other locations - About 1 hr to fix
    src/applications/burials-ez/config/form.js on lines 106..116
    src/applications/burials-ez/config/form.js on lines 117..127
    src/applications/burials-ez/config/form.js on lines 128..138
    src/applications/burials-ez/config/form.js on lines 139..149
    src/applications/burials-ez/config/form.js on lines 155..167
    src/applications/burials-ez/config/form.js on lines 179..189
    src/applications/burials-ez/config/form.js on lines 195..207
    src/applications/burials-ez/config/form.js on lines 232..242
    src/applications/burials-ez/config/form.js on lines 256..266
    src/applications/burials-ez/config/form.js on lines 398..408
    src/applications/burials-ez/config/form.js on lines 432..442
    src/applications/burials-ez/config/form.js on lines 443..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 71.

    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

            previousNamesQuestion: {
              title: 'Veteran’s previous names',
              reviewTitle: () => (
                <div>
                  <h4 className="vads-u-font-size--h3">Veteran’s previous names</h4>
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 12 other locations - About 1 hr to fix
    src/applications/burials-ez/config/form.js on lines 106..116
    src/applications/burials-ez/config/form.js on lines 117..127
    src/applications/burials-ez/config/form.js on lines 128..138
    src/applications/burials-ez/config/form.js on lines 139..149
    src/applications/burials-ez/config/form.js on lines 155..167
    src/applications/burials-ez/config/form.js on lines 179..189
    src/applications/burials-ez/config/form.js on lines 195..207
    src/applications/burials-ez/config/form.js on lines 256..266
    src/applications/burials-ez/config/form.js on lines 398..408
    src/applications/burials-ez/config/form.js on lines 409..419
    src/applications/burials-ez/config/form.js on lines 432..442
    src/applications/burials-ez/config/form.js on lines 443..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 71.

    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

            additionalEvidence: {
              title: 'Additional evidence',
              reviewTitle: () => (
                <div>
                  <h4 className="vads-u-font-size--h3">Additional evidence</h4>
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 12 other locations - About 1 hr to fix
    src/applications/burials-ez/config/form.js on lines 106..116
    src/applications/burials-ez/config/form.js on lines 117..127
    src/applications/burials-ez/config/form.js on lines 128..138
    src/applications/burials-ez/config/form.js on lines 139..149
    src/applications/burials-ez/config/form.js on lines 155..167
    src/applications/burials-ez/config/form.js on lines 179..189
    src/applications/burials-ez/config/form.js on lines 195..207
    src/applications/burials-ez/config/form.js on lines 232..242
    src/applications/burials-ez/config/form.js on lines 256..266
    src/applications/burials-ez/config/form.js on lines 398..408
    src/applications/burials-ez/config/form.js on lines 409..419
    src/applications/burials-ez/config/form.js on lines 443..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 71.

    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

            relationshipToVeteran: {
              title: 'Relationship to Veteran',
              reviewTitle: () => (
                <div>
                  <h4 className="vads-u-font-size--h3">Relationship to Veteran</h4>
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 12 other locations - About 1 hr to fix
    src/applications/burials-ez/config/form.js on lines 117..127
    src/applications/burials-ez/config/form.js on lines 128..138
    src/applications/burials-ez/config/form.js on lines 139..149
    src/applications/burials-ez/config/form.js on lines 155..167
    src/applications/burials-ez/config/form.js on lines 179..189
    src/applications/burials-ez/config/form.js on lines 195..207
    src/applications/burials-ez/config/form.js on lines 232..242
    src/applications/burials-ez/config/form.js on lines 256..266
    src/applications/burials-ez/config/form.js on lines 398..408
    src/applications/burials-ez/config/form.js on lines 409..419
    src/applications/burials-ez/config/form.js on lines 432..442
    src/applications/burials-ez/config/form.js on lines 443..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 71.

    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

            supportingDocuments: {
              title: 'Supporting Documents',
              reviewTitle: () => (
                <div>
                  <h4 className="vads-u-font-size--h3">Supporting Documents</h4>
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 12 other locations - About 1 hr to fix
    src/applications/burials-ez/config/form.js on lines 106..116
    src/applications/burials-ez/config/form.js on lines 117..127
    src/applications/burials-ez/config/form.js on lines 128..138
    src/applications/burials-ez/config/form.js on lines 139..149
    src/applications/burials-ez/config/form.js on lines 155..167
    src/applications/burials-ez/config/form.js on lines 179..189
    src/applications/burials-ez/config/form.js on lines 195..207
    src/applications/burials-ez/config/form.js on lines 232..242
    src/applications/burials-ez/config/form.js on lines 256..266
    src/applications/burials-ez/config/form.js on lines 409..419
    src/applications/burials-ez/config/form.js on lines 432..442
    src/applications/burials-ez/config/form.js on lines 443..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 71.

    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

            tribalLandLocation: {
              title: 'Cemetery location',
              reviewTitle: ' ',
              path: 'benefits/cemetery-location/tribal-land/add',
              depends: form =>
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 1 other location - About 1 hr to fix
    src/applications/burials-ez/config/form.js on lines 339..348

    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

            cemeteryLocation: {
              title: 'Cemetery location',
              reviewTitle: ' ',
              path: 'benefits/cemetery-location/add',
              depends: form =>
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 1 other location - About 1 hr to fix
    src/applications/burials-ez/config/form.js on lines 349..358

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

            previousNames: {
              title: 'Veteran’s previous names',
              reviewTitle: ' ',
              path: 'military-history/previous-names/add',
              depends: form => get('view:servedUnderOtherNames', form),
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 2 other locations - About 55 mins to fix
    src/applications/burials-ez/config/form.js on lines 297..304
    src/applications/burials-ez/config/form.js on lines 373..380

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

    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

            plotAllowancePartTwo: {
              title: 'Plot or interment allowance',
              reviewTitle: ' ',
              path: 'benefits/plot-allowance/expense-responsibility',
              depends: form => get('view:claimedBenefits.plotAllowance', form),
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 2 other locations - About 55 mins to fix
    src/applications/burials-ez/config/form.js on lines 243..250
    src/applications/burials-ez/config/form.js on lines 297..304

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

    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

            burialAllowancePartTwo: {
              title: 'Burial allowance',
              path: 'benefits/burial-allowance/allowance-and-expense',
              reviewTitle: ' ',
              depends: form => get('view:claimedBenefits.burialAllowance', form),
    Severity: Major
    Found in src/applications/burials-ez/config/form.js and 2 other locations - About 55 mins to fix
    src/applications/burials-ez/config/form.js on lines 243..250
    src/applications/burials-ez/config/form.js on lines 373..380

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

    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