department-of-veterans-affairs/vets-website

View on GitHub

Showing 12,848 of 12,848 total issues

Function POST /vaos/v2/appointments has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  'POST /vaos/v2/appointments': (req, res) => {
    const {
      practitioners = [{ identifier: [{ system: null, value: null }] }],
    } = req.body;
    const selectedClinic = clinicsV2.data.filter(
Severity: Minor
Found in src/applications/vaos/services/mocks/index.js - About 1 hr to fix

    Function renderViewButtons has 45 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      const renderViewButtons = () => {
        if (totalRowCount > DEFAULT_ROWS_VIEWABLE) {
          if (viewableRowCount !== totalRowCount) {
            const remainingRowCount = totalRowCount - viewableRowCount;
            const showNextCount =
    Severity: Minor
    Found in src/applications/gi/components/profile/SchoolLocations.jsx - About 1 hr to fix

      Function renderKicker has 45 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        const renderKicker = () => {
          if (!displayedInputs.kicker) return null;
          const radioButtonsLabelText = 'Eligible for kicker bonus?';
          const kickerAmountId = 'kickerAmount';
          const kickerFieldId = `${kickerAmountId}-field`;

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

        export default function(state = INITIAL_STATE, action) {
          switch (action.type) {
            case FILTERS_CHANGED:
              return {
                ...state,
        Severity: Minor
        Found in src/applications/gi/reducers/filters.js - About 1 hr to fix

          Function notificationsReducer has 45 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          export const notificationsReducer = (state = initialState, action) => {
            switch (action.type) {
              case NOTIFICATIONS_RECEIVED_STARTED:
                return {
                  ...state,
          Severity: Minor
          Found in src/applications/personalization/common/reducers/notifications.js - About 1 hr to fix

            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

                    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

                    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

                    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

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

                    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

                    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

                    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

                    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

                    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

                    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

                    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

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

            export const SaveInProgressWarning = ({ type }) => (
              <va-alert
                status="warning"
                data-testid="ezr-sip-warning"
                class="vads-u-margin-bottom--4"
            src/applications/_mock-form-ae-design-patterns/patterns/pattern1/ezr/components/SaveInProgressWarning.jsx on lines 4..16
            src/applications/_mock-form-ae-design-patterns/shared/components/alerts/SaveInProgressWarning.jsx on lines 4..16

            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

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

            export const SaveInProgressWarning = ({ type }) => (
              <va-alert
                status="warning"
                data-testid="ezr-sip-warning"
                class="vads-u-margin-bottom--4"
            src/applications/_mock-form-ae-design-patterns/patterns/pattern1/ezr/components/SaveInProgressWarning.jsx on lines 4..16
            src/applications/ezr/components/FormAlerts/SaveInProgressWarning.jsx on lines 4..16

            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

            Severity
            Category
            Status
            Source
            Language