department-of-veterans-affairs/vets-website

View on GitHub
src/applications/ask-va/utils/mockData.js

Summary

Maintainability
F
3 wks
Test Coverage

File mockData.js has 2226 lines of code (exceeds 250 allowed). Consider refactoring.
Open

export const healthFacilityMockData = {
  data: [
    {
      id: 'vba_349b',
      type: 'facility',
Severity: Major
Found in src/applications/ask-va/utils/mockData.js - About 6 days to fix

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

        {
          id: '2',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-20240824-306412',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 2 other locations - About 1 day to fix
    src/applications/ask-va/utils/mockData.js on lines 1855..1915
    src/applications/ask-va/utils/mockData.js on lines 2051..2111

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

    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

        {
          id: '2',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-20240824-306412',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 2 other locations - About 1 day to fix
    src/applications/ask-va/utils/mockData.js on lines 1604..1665
    src/applications/ask-va/utils/mockData.js on lines 2051..2111

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

    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

        {
          id: '6',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-20240824-306412',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 2 other locations - About 1 day to fix
    src/applications/ask-va/utils/mockData.js on lines 1604..1665
    src/applications/ask-va/utils/mockData.js on lines 1855..1915

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

    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

              health: [
                {
                  name: 'Dermatology',
                  serviceId: 'dermatology',
                  link:
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 1 other location - About 1 day to fix
    src/applications/vaos/utils/constants.js on lines 245..306

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

    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

        {
          id: '8',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-20231106-300239',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 6 other locations - About 7 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1666..1714
    src/applications/ask-va/utils/mockData.js on lines 1715..1763
    src/applications/ask-va/utils/mockData.js on lines 1764..1812
    src/applications/ask-va/utils/mockData.js on lines 1916..1964
    src/applications/ask-va/utils/mockData.js on lines 1965..2013
    src/applications/ask-va/utils/mockData.js on lines 2112..2160

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

    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

        {
          id: '4',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-20231106-300239',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 6 other locations - About 7 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1666..1714
    src/applications/ask-va/utils/mockData.js on lines 1715..1763
    src/applications/ask-va/utils/mockData.js on lines 1764..1812
    src/applications/ask-va/utils/mockData.js on lines 1916..1964
    src/applications/ask-va/utils/mockData.js on lines 2112..2160
    src/applications/ask-va/utils/mockData.js on lines 2161..2209

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

    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

        {
          id: '5',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-20230424-300125',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 6 other locations - About 7 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1666..1714
    src/applications/ask-va/utils/mockData.js on lines 1715..1763
    src/applications/ask-va/utils/mockData.js on lines 1916..1964
    src/applications/ask-va/utils/mockData.js on lines 1965..2013
    src/applications/ask-va/utils/mockData.js on lines 2112..2160
    src/applications/ask-va/utils/mockData.js on lines 2161..2209

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

    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

        {
          id: '3',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-20240304-301312',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 6 other locations - About 7 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1715..1763
    src/applications/ask-va/utils/mockData.js on lines 1764..1812
    src/applications/ask-va/utils/mockData.js on lines 1916..1964
    src/applications/ask-va/utils/mockData.js on lines 1965..2013
    src/applications/ask-va/utils/mockData.js on lines 2112..2160
    src/applications/ask-va/utils/mockData.js on lines 2161..2209

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

    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

        {
          id: '7',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-20240304-301312',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 6 other locations - About 7 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1666..1714
    src/applications/ask-va/utils/mockData.js on lines 1715..1763
    src/applications/ask-va/utils/mockData.js on lines 1764..1812
    src/applications/ask-va/utils/mockData.js on lines 1916..1964
    src/applications/ask-va/utils/mockData.js on lines 1965..2013
    src/applications/ask-va/utils/mockData.js on lines 2161..2209

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

    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

        {
          id: '4',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-20231106-300239',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 6 other locations - About 7 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1666..1714
    src/applications/ask-va/utils/mockData.js on lines 1764..1812
    src/applications/ask-va/utils/mockData.js on lines 1916..1964
    src/applications/ask-va/utils/mockData.js on lines 1965..2013
    src/applications/ask-va/utils/mockData.js on lines 2112..2160
    src/applications/ask-va/utils/mockData.js on lines 2161..2209

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

    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

        {
          id: '3',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-20240304-301312',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 6 other locations - About 7 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1666..1714
    src/applications/ask-va/utils/mockData.js on lines 1715..1763
    src/applications/ask-va/utils/mockData.js on lines 1764..1812
    src/applications/ask-va/utils/mockData.js on lines 1965..2013
    src/applications/ask-va/utils/mockData.js on lines 2112..2160
    src/applications/ask-va/utils/mockData.js on lines 2161..2209

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

    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

        {
          id: '1',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-20240917-306466',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 2 other locations - About 5 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1567..1603
    src/applications/ask-va/utils/mockData.js on lines 2014..2050

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

    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

        {
          id: '5',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-20240917-306466',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 2 other locations - About 5 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1567..1603
    src/applications/ask-va/utils/mockData.js on lines 1818..1854

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

    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

        {
          id: '1',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-20240917-306466',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 2 other locations - About 5 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1818..1854
    src/applications/ask-va/utils/mockData.js on lines 2014..2050

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

    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

              benefits: [
                {
                  name: 'ApplyingForBenefits',
                  serviceId: 'applyingForBenefits',
                  link:
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 1 other location - About 4 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1009..1052

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

    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

              health: [
                {
                  name: 'Advice nurse',
                  serviceId: 'adviceNurse',
                  link:
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 1 other location - About 4 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 50..93

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

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

        {
          id: '5',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-5',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 5 other locations - About 3 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1163..1187
    src/applications/ask-va/utils/mockData.js on lines 1188..1212
    src/applications/ask-va/utils/mockData.js on lines 1213..1237
    src/applications/ask-va/utils/mockData.js on lines 1264..1288
    src/applications/ask-va/utils/mockData.js on lines 1289..1313

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

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

        {
          id: '3',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-3',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 5 other locations - About 3 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1163..1187
    src/applications/ask-va/utils/mockData.js on lines 1213..1237
    src/applications/ask-va/utils/mockData.js on lines 1238..1263
    src/applications/ask-va/utils/mockData.js on lines 1264..1288
    src/applications/ask-va/utils/mockData.js on lines 1289..1313

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

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

        {
          id: '4',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-4',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 5 other locations - About 3 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1163..1187
    src/applications/ask-va/utils/mockData.js on lines 1188..1212
    src/applications/ask-va/utils/mockData.js on lines 1238..1263
    src/applications/ask-va/utils/mockData.js on lines 1264..1288
    src/applications/ask-va/utils/mockData.js on lines 1289..1313

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

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

        {
          id: '6',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-6',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 5 other locations - About 3 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1163..1187
    src/applications/ask-va/utils/mockData.js on lines 1188..1212
    src/applications/ask-va/utils/mockData.js on lines 1213..1237
    src/applications/ask-va/utils/mockData.js on lines 1238..1263
    src/applications/ask-va/utils/mockData.js on lines 1289..1313

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

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

        {
          id: '7',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-7',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 5 other locations - About 3 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1163..1187
    src/applications/ask-va/utils/mockData.js on lines 1188..1212
    src/applications/ask-va/utils/mockData.js on lines 1213..1237
    src/applications/ask-va/utils/mockData.js on lines 1238..1263
    src/applications/ask-va/utils/mockData.js on lines 1264..1288

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

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

        {
          id: '2',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-2',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 5 other locations - About 3 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1188..1212
    src/applications/ask-va/utils/mockData.js on lines 1213..1237
    src/applications/ask-va/utils/mockData.js on lines 1238..1263
    src/applications/ask-va/utils/mockData.js on lines 1264..1288
    src/applications/ask-va/utils/mockData.js on lines 1289..1313

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

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

        {
          id: '11',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-11',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 10 other locations - About 2 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1142..1162
    src/applications/ask-va/utils/mockData.js on lines 1314..1333
    src/applications/ask-va/utils/mockData.js on lines 1376..1396
    src/applications/ask-va/utils/mockData.js on lines 1418..1438
    src/applications/ask-va/utils/mockData.js on lines 1439..1459
    src/applications/ask-va/utils/mockData.js on lines 1460..1480
    src/applications/ask-va/utils/mockData.js on lines 1481..1501
    src/applications/ask-va/utils/mockData.js on lines 1502..1521
    src/applications/ask-va/utils/mockData.js on lines 1522..1541
    src/applications/ask-va/utils/mockData.js on lines 1542..1561

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

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

        {
          id: '1',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-20240917-306466',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 10 other locations - About 2 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1314..1333
    src/applications/ask-va/utils/mockData.js on lines 1376..1396
    src/applications/ask-va/utils/mockData.js on lines 1397..1417
    src/applications/ask-va/utils/mockData.js on lines 1418..1438
    src/applications/ask-va/utils/mockData.js on lines 1439..1459
    src/applications/ask-va/utils/mockData.js on lines 1460..1480
    src/applications/ask-va/utils/mockData.js on lines 1481..1501
    src/applications/ask-va/utils/mockData.js on lines 1502..1521
    src/applications/ask-va/utils/mockData.js on lines 1522..1541
    src/applications/ask-va/utils/mockData.js on lines 1542..1561

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

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

        {
          id: '8',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-8',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 10 other locations - About 2 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1142..1162
    src/applications/ask-va/utils/mockData.js on lines 1376..1396
    src/applications/ask-va/utils/mockData.js on lines 1397..1417
    src/applications/ask-va/utils/mockData.js on lines 1418..1438
    src/applications/ask-va/utils/mockData.js on lines 1439..1459
    src/applications/ask-va/utils/mockData.js on lines 1460..1480
    src/applications/ask-va/utils/mockData.js on lines 1481..1501
    src/applications/ask-va/utils/mockData.js on lines 1502..1521
    src/applications/ask-va/utils/mockData.js on lines 1522..1541
    src/applications/ask-va/utils/mockData.js on lines 1542..1561

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

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

        {
          id: '10',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-10',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 10 other locations - About 2 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1142..1162
    src/applications/ask-va/utils/mockData.js on lines 1314..1333
    src/applications/ask-va/utils/mockData.js on lines 1397..1417
    src/applications/ask-va/utils/mockData.js on lines 1418..1438
    src/applications/ask-va/utils/mockData.js on lines 1439..1459
    src/applications/ask-va/utils/mockData.js on lines 1460..1480
    src/applications/ask-va/utils/mockData.js on lines 1481..1501
    src/applications/ask-va/utils/mockData.js on lines 1502..1521
    src/applications/ask-va/utils/mockData.js on lines 1522..1541
    src/applications/ask-va/utils/mockData.js on lines 1542..1561

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

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

        {
          id: '15',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-15',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 10 other locations - About 2 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1142..1162
    src/applications/ask-va/utils/mockData.js on lines 1314..1333
    src/applications/ask-va/utils/mockData.js on lines 1376..1396
    src/applications/ask-va/utils/mockData.js on lines 1397..1417
    src/applications/ask-va/utils/mockData.js on lines 1418..1438
    src/applications/ask-va/utils/mockData.js on lines 1439..1459
    src/applications/ask-va/utils/mockData.js on lines 1460..1480
    src/applications/ask-va/utils/mockData.js on lines 1502..1521
    src/applications/ask-va/utils/mockData.js on lines 1522..1541
    src/applications/ask-va/utils/mockData.js on lines 1542..1561

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

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

        {
          id: '13',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-13',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 10 other locations - About 2 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1142..1162
    src/applications/ask-va/utils/mockData.js on lines 1314..1333
    src/applications/ask-va/utils/mockData.js on lines 1376..1396
    src/applications/ask-va/utils/mockData.js on lines 1397..1417
    src/applications/ask-va/utils/mockData.js on lines 1418..1438
    src/applications/ask-va/utils/mockData.js on lines 1460..1480
    src/applications/ask-va/utils/mockData.js on lines 1481..1501
    src/applications/ask-va/utils/mockData.js on lines 1502..1521
    src/applications/ask-va/utils/mockData.js on lines 1522..1541
    src/applications/ask-va/utils/mockData.js on lines 1542..1561

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

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

        {
          id: '16',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-16',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 10 other locations - About 2 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1142..1162
    src/applications/ask-va/utils/mockData.js on lines 1314..1333
    src/applications/ask-va/utils/mockData.js on lines 1376..1396
    src/applications/ask-va/utils/mockData.js on lines 1397..1417
    src/applications/ask-va/utils/mockData.js on lines 1418..1438
    src/applications/ask-va/utils/mockData.js on lines 1439..1459
    src/applications/ask-va/utils/mockData.js on lines 1460..1480
    src/applications/ask-va/utils/mockData.js on lines 1481..1501
    src/applications/ask-va/utils/mockData.js on lines 1522..1541
    src/applications/ask-va/utils/mockData.js on lines 1542..1561

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

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

        {
          id: '17',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-17',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 10 other locations - About 2 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1142..1162
    src/applications/ask-va/utils/mockData.js on lines 1314..1333
    src/applications/ask-va/utils/mockData.js on lines 1376..1396
    src/applications/ask-va/utils/mockData.js on lines 1397..1417
    src/applications/ask-va/utils/mockData.js on lines 1418..1438
    src/applications/ask-va/utils/mockData.js on lines 1439..1459
    src/applications/ask-va/utils/mockData.js on lines 1460..1480
    src/applications/ask-va/utils/mockData.js on lines 1481..1501
    src/applications/ask-va/utils/mockData.js on lines 1502..1521
    src/applications/ask-va/utils/mockData.js on lines 1542..1561

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

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

        {
          id: '18',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-18',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 10 other locations - About 2 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1142..1162
    src/applications/ask-va/utils/mockData.js on lines 1314..1333
    src/applications/ask-va/utils/mockData.js on lines 1376..1396
    src/applications/ask-va/utils/mockData.js on lines 1397..1417
    src/applications/ask-va/utils/mockData.js on lines 1418..1438
    src/applications/ask-va/utils/mockData.js on lines 1439..1459
    src/applications/ask-va/utils/mockData.js on lines 1460..1480
    src/applications/ask-va/utils/mockData.js on lines 1481..1501
    src/applications/ask-va/utils/mockData.js on lines 1502..1521
    src/applications/ask-va/utils/mockData.js on lines 1522..1541

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

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

        {
          id: '14',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-14',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 10 other locations - About 2 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1142..1162
    src/applications/ask-va/utils/mockData.js on lines 1314..1333
    src/applications/ask-va/utils/mockData.js on lines 1376..1396
    src/applications/ask-va/utils/mockData.js on lines 1397..1417
    src/applications/ask-va/utils/mockData.js on lines 1418..1438
    src/applications/ask-va/utils/mockData.js on lines 1439..1459
    src/applications/ask-va/utils/mockData.js on lines 1481..1501
    src/applications/ask-va/utils/mockData.js on lines 1502..1521
    src/applications/ask-va/utils/mockData.js on lines 1522..1541
    src/applications/ask-va/utils/mockData.js on lines 1542..1561

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

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

        {
          id: '12',
          type: 'inquiry',
          attributes: {
            inquiryNumber: 'A-12',
    Severity: Major
    Found in src/applications/ask-va/utils/mockData.js and 10 other locations - About 2 hrs to fix
    src/applications/ask-va/utils/mockData.js on lines 1142..1162
    src/applications/ask-va/utils/mockData.js on lines 1314..1333
    src/applications/ask-va/utils/mockData.js on lines 1376..1396
    src/applications/ask-va/utils/mockData.js on lines 1397..1417
    src/applications/ask-va/utils/mockData.js on lines 1439..1459
    src/applications/ask-va/utils/mockData.js on lines 1460..1480
    src/applications/ask-va/utils/mockData.js on lines 1481..1501
    src/applications/ask-va/utils/mockData.js on lines 1502..1521
    src/applications/ask-va/utils/mockData.js on lines 1522..1541
    src/applications/ask-va/utils/mockData.js on lines 1542..1561

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

    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