department-of-veterans-affairs/vets-website

View on GitHub

Showing 12,841 of 12,841 total issues

Function PrinciplesOfExcellenceModalContent has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function PrinciplesOfExcellenceModalContent() {
  return (
    <>
      <h3>Principles of Excellence</h3>
      <p>

    Function default has 52 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export default function(state = INITIAL_STATE, action) {
      switch (action.type) {
        case AUTOCOMPLETE_STARTED:
          return {
            ...state,
    Severity: Major
    Found in src/applications/gi/reducers/autocomplete.js - About 2 hrs to fix

      Function CareSummariesDetails has 52 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      const CareSummariesDetails = () => {
        const dispatch = useDispatch();
        const careSummary = useSelector(
          state => state.mr.careSummariesAndNotes.careSummariesAndNotesDetails,
        );

        File ContestableIssues.jsx has 253 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        import React, { useEffect, useState } from 'react';
        import PropTypes from 'prop-types';
        import { connect } from 'react-redux';
        import { Link } from 'react-router';
        import { VaModal } from '@department-of-veterans-affairs/component-library/dist/react-bindings';
        Severity: Minor
        Found in src/applications/appeals/shared/components/ContestableIssues.jsx - About 2 hrs to fix

          File SpouseEmploymentWorkDates.jsx has 253 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          import React, { useState } from 'react';
          import { connect } from 'react-redux';
          import { setData } from 'platform/forms-system/src/js/actions';
          import { VaDate } from '@department-of-veterans-affairs/component-library/dist/react-bindings';
          import { parseISODate } from 'platform/forms-system/src/js/helpers';

            File constants.js has 253 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            export const recordType = {
              ALLERGIES: 'allergies',
              VACCINES: 'vaccines',
              CARE_SUMMARIES_AND_NOTES: 'care summaries and notes',
              LABS_AND_TESTS: 'lab and test results',
            Severity: Minor
            Found in src/applications/mhv-medical-records/util/constants.js - About 2 hrs to fix

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

                      category: [
                        {
                          coding: [
                            {
                              system: 'http://terminology.hl7.org/CodeSystem/v2-0074',
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 433..460
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 926..953
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 1846..1873
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2340..2367
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3090..3117
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3654..3681
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3959..3986
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 4307..4334

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

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

                      category: [
                        {
                          coding: [
                            {
                              system: 'http://terminology.hl7.org/CodeSystem/v2-0074',
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 433..460
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 926..953
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 1846..1873
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2340..2367
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2810..2837
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3090..3117
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3654..3681
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 4307..4334

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

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

                      category: [
                        {
                          coding: [
                            {
                              system: 'http://terminology.hl7.org/CodeSystem/v2-0074',
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 433..460
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 926..953
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 1846..1873
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2810..2837
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3090..3117
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3654..3681
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3959..3986
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 4307..4334

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

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

                      category: [
                        {
                          coding: [
                            {
                              system: 'http://terminology.hl7.org/CodeSystem/v2-0074',
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 433..460
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 926..953
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 1846..1873
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2340..2367
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2810..2837
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3090..3117
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3654..3681
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3959..3986

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

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

                      category: [
                        {
                          coding: [
                            {
                              system: 'http://terminology.hl7.org/CodeSystem/v2-0074',
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 926..953
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 1846..1873
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2340..2367
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2810..2837
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3090..3117
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3654..3681
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3959..3986
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 4307..4334

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

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

                      category: [
                        {
                          coding: [
                            {
                              system: 'http://terminology.hl7.org/CodeSystem/v2-0074',
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 433..460
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 926..953
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 1846..1873
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2340..2367
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2810..2837
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3090..3117
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3959..3986
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 4307..4334

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

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

                      category: [
                        {
                          coding: [
                            {
                              system: 'http://terminology.hl7.org/CodeSystem/v2-0074',
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 433..460
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 926..953
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 1846..1873
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2340..2367
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2810..2837
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3654..3681
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3959..3986
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 4307..4334

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

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

                      category: [
                        {
                          coding: [
                            {
                              system: 'http://terminology.hl7.org/CodeSystem/v2-0074',
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 433..460
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 1846..1873
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2340..2367
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2810..2837
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3090..3117
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3654..3681
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3959..3986
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 4307..4334

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

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

                      category: [
                        {
                          coding: [
                            {
                              system: 'http://terminology.hl7.org/CodeSystem/v2-0074',
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 433..460
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 926..953
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2340..2367
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 2810..2837
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3090..3117
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3654..3681
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 3959..3986
              src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 4307..4334

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

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

                  [formFields.viewPhoneNumbers]: {
                    [formFields.mobilePhoneNumber]: {
                      phone: mobilePhoneNumber?.replace(/\D/g, '') || undefined,
                      isInternational: mobilePhoneIsInternational,
                    },
              Severity: Major
              Found in src/applications/my-education-benefits/helpers.js and 5 other locations - About 2 hrs to fix
              src/applications/my-education-benefits/helpers.js on lines 324..333
              src/applications/my-education-benefits/helpers.js on lines 453..462
              src/applications/my-education-benefits/helpers.js on lines 589..598
              src/applications/toe/helpers.jsx on lines 177..186
              src/applications/toe/helpers.jsx on lines 302..311

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

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

                  [formFields.viewPhoneNumbers]: {
                    [formFields.mobilePhoneNumber]: {
                      phone: mobilePhoneNumber?.replace(/\D/g, '') || undefined,
                      isInternational: mobilePhoneIsInternational,
                    },
              Severity: Major
              Found in src/applications/toe/helpers.jsx and 5 other locations - About 2 hrs to fix
              src/applications/my-education-benefits/helpers.js on lines 324..333
              src/applications/my-education-benefits/helpers.js on lines 453..462
              src/applications/my-education-benefits/helpers.js on lines 589..598
              src/applications/my-education-benefits/helpers.js on lines 734..743
              src/applications/toe/helpers.jsx on lines 302..311

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

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

                  [formFields.viewPhoneNumbers]: {
                    [formFields.mobilePhoneNumber]: {
                      phone: mobilePhoneNumber?.replace(/\D/g, '') || undefined,
                      isInternational: mobilePhoneIsInternational,
                    },
              Severity: Major
              Found in src/applications/my-education-benefits/helpers.js and 5 other locations - About 2 hrs to fix
              src/applications/my-education-benefits/helpers.js on lines 324..333
              src/applications/my-education-benefits/helpers.js on lines 589..598
              src/applications/my-education-benefits/helpers.js on lines 734..743
              src/applications/toe/helpers.jsx on lines 177..186
              src/applications/toe/helpers.jsx on lines 302..311

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

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

                  [formFields.viewPhoneNumbers]: {
                    [formFields.mobilePhoneNumber]: {
                      phone: mobilePhoneNumber?.replace(/\D/g, '') || undefined,
                      isInternational: mobilePhoneIsInternational,
                    },
              Severity: Major
              Found in src/applications/my-education-benefits/helpers.js and 5 other locations - About 2 hrs to fix
              src/applications/my-education-benefits/helpers.js on lines 324..333
              src/applications/my-education-benefits/helpers.js on lines 453..462
              src/applications/my-education-benefits/helpers.js on lines 734..743
              src/applications/toe/helpers.jsx on lines 177..186
              src/applications/toe/helpers.jsx on lines 302..311

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

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

                  [formFields.viewPhoneNumbers]: {
                    [formFields.mobilePhoneNumber]: {
                      phone: mobilePhoneNumber?.replace(/\D/g, '') || undefined,
                      isInternational: mobilePhoneIsInternational,
                    },
              Severity: Major
              Found in src/applications/my-education-benefits/helpers.js and 5 other locations - About 2 hrs to fix
              src/applications/my-education-benefits/helpers.js on lines 453..462
              src/applications/my-education-benefits/helpers.js on lines 589..598
              src/applications/my-education-benefits/helpers.js on lines 734..743
              src/applications/toe/helpers.jsx on lines 177..186
              src/applications/toe/helpers.jsx on lines 302..311

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

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

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

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

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

              Refactorings

              Further Reading

              Severity
              Category
              Status
              Source
              Language