department-of-veterans-affairs/vets-website

View on GitHub
src/applications/simple-forms/20-10207/config/constants.js

Summary

Maintainability
F
1 wk
Test Coverage

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

import React from 'react';

export const TITLE = 'Request priority processing for an existing claim';
export const SUBTITLE = 'Priority processing request (VA form 20-10207)';

Severity: Major
Found in src/applications/simple-forms/20-10207/config/constants.js - About 1 day to fix

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

    export const TERMINAL_ILLNESS_DESCRIPTION = Object.freeze(
      <div>
        <p>
          You’ll need to scan your document onto the device you’re using to submit
          this application, such as your computer, tablet, or mobile phone. You can
    Severity: Major
    Found in src/applications/simple-forms/20-10207/config/constants.js and 1 other location - About 1 day to fix
    src/applications/simple-forms/20-10207/config/constants.js on lines 382..421

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

    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

    export const ALS_DESCRIPTION = Object.freeze(
      <div>
        <p>
          You’ll need to scan your document onto the device you’re using to submit
          this application, such as your computer, tablet, or mobile phone. You can
    Severity: Major
    Found in src/applications/simple-forms/20-10207/config/constants.js and 1 other location - About 1 day to fix
    src/applications/simple-forms/20-10207/config/constants.js on lines 341..380

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 228.

    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

    export const MEDAL_AWARD_DESCRIPTION = Object.freeze(
      <div>
        <p>
          You’ll need to scan your document onto the device you’re using to submit
          this application, such as your computer, tablet, or mobile phone. You can
    Severity: Major
    Found in src/applications/simple-forms/20-10207/config/constants.js and 1 other location - About 7 hrs to fix
    src/applications/simple-forms/20-10207/config/constants.js on lines 478..508

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

    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

    export const POW_DESCRIPTION = Object.freeze(
      <div>
        <p>
          You’ll need to scan your document onto the device you’re using to submit
          this application, such as your computer, tablet, or mobile phone. You can
    Severity: Major
    Found in src/applications/simple-forms/20-10207/config/constants.js and 1 other location - About 7 hrs to fix
    src/applications/simple-forms/20-10207/config/constants.js on lines 510..537

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

    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

    export const ADDITIONAL_INFO_OTHER_HOUSING_RISKS_3RD_PTY_VET = Object.freeze(
      <va-additional-info
        trigger="What to know before sharing details about other housing risks"
        data-testid="otherHousingRisksAdditionalInfo3rdPtyVet"
      >
    Severity: Major
    Found in src/applications/simple-forms/20-10207/config/constants.js and 1 other location - About 4 hrs to fix
    src/applications/simple-forms/20-10207/config/constants.js on lines 237..259

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 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

    export const ADDITIONAL_INFO_OTHER_HOUSING_RISKS_3RD_PTY_NON_VET = Object.freeze(
      <va-additional-info
        trigger="What to know before sharing details about other housing risks"
        data-testid="otherHousingRisksAdditionalInfo3rdPtyNonVet"
      >
    Severity: Major
    Found in src/applications/simple-forms/20-10207/config/constants.js and 1 other location - About 4 hrs to fix
    src/applications/simple-forms/20-10207/config/constants.js on lines 213..235

    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

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

    export const ADDITIONAL_INFO_OTHER_HOUSING_RISKS = Object.freeze(
      <va-additional-info
        trigger="What to know before sharing details about other housing risks"
        data-testid="otherHousingRisksAdditionalInfo"
      >
    Severity: Major
    Found in src/applications/simple-forms/20-10207/config/constants.js and 1 other location - About 4 hrs to fix
    src/applications/simple-forms/21-4138/config/constants.js on lines 309..330

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

    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

        <va-additional-info
          trigger="What kind of evidence can I submit?"
          data-testid="financialHardshipAdditionalInfo"
        >
          <ul>
    Severity: Major
    Found in src/applications/simple-forms/20-10207/config/constants.js and 1 other location - About 1 hr to fix
    src/applications/financial-status-report/components/otherAssets/EnhancedVehicleRecord.jsx on lines 240..252

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

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

    export const LIVING_SITUATIONS = Object.freeze({
      OVERNIGHT:
        'I live or sleep overnight in a place that isn’t meant for regular sleeping. This includes a car, park, abandoned building, bus station, train station, airport, or camping ground.',
      SHELTER:
        'I live in a shelter (including a hotel or motel) that’s meant for temporary stays.',
    Severity: Major
    Found in src/applications/simple-forms/20-10207/config/constants.js and 7 other locations - About 55 mins to fix
    src/applications/simple-forms/20-10207/config/constants.js on lines 54..67
    src/applications/simple-forms/20-10207/config/constants.js on lines 68..81
    src/applications/simple-forms/20-10207/config/constants.js on lines 276..286
    src/applications/simple-forms/20-10207/config/constants.js on lines 288..299
    src/applications/simple-forms/20-10207/config/constants.js on lines 301..313
    src/applications/simple-forms/21-4138/config/constants.js on lines 92..105
    src/applications/disability-benefits/all-claims/constants.js on lines 371..379

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

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

    export const LIVING_SITUATIONS_3RD_PTY_VET = Object.freeze({
      OVERNIGHT:
        'The Veteran lives or sleeps overnight in a place that isn’t meant for regular sleeping. This includes a car, park, abandoned building, bus station, train station, airport, or camping ground.',
      SHELTER:
        'The Veteran lives in a shelter (including a hotel or motel) that’s meant for temporary stays.',
    Severity: Major
    Found in src/applications/simple-forms/20-10207/config/constants.js and 7 other locations - About 55 mins to fix
    src/applications/simple-forms/20-10207/config/constants.js on lines 40..53
    src/applications/simple-forms/20-10207/config/constants.js on lines 68..81
    src/applications/simple-forms/20-10207/config/constants.js on lines 276..286
    src/applications/simple-forms/20-10207/config/constants.js on lines 288..299
    src/applications/simple-forms/20-10207/config/constants.js on lines 301..313
    src/applications/simple-forms/21-4138/config/constants.js on lines 92..105
    src/applications/disability-benefits/all-claims/constants.js on lines 371..379

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

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

    export const OTHER_REASONS_3RD_PTY_VET = Object.freeze({
      FINANCIAL_HARDSHIP: 'The Veteran is experiencing extreme financial hardship.',
      ALS:
        'The Veteran has ALS (amyotrophic lateral sclerosis), also known as Lou Gehrig’s disease.',
      TERMINAL_ILLNESS: 'The Veteran has a terminal illness.',
    Severity: Major
    Found in src/applications/simple-forms/20-10207/config/constants.js and 7 other locations - About 55 mins to fix
    src/applications/simple-forms/20-10207/config/constants.js on lines 40..53
    src/applications/simple-forms/20-10207/config/constants.js on lines 54..67
    src/applications/simple-forms/20-10207/config/constants.js on lines 68..81
    src/applications/simple-forms/20-10207/config/constants.js on lines 276..286
    src/applications/simple-forms/20-10207/config/constants.js on lines 301..313
    src/applications/simple-forms/21-4138/config/constants.js on lines 92..105
    src/applications/disability-benefits/all-claims/constants.js on lines 371..379

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

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

    export const OTHER_REASONS_3RD_PTY_NON_VET = Object.freeze({
      FINANCIAL_HARDSHIP:
        'The claimant is experiencing extreme financial hardship.',
      ALS:
        'The claimant has ALS (amyotrophic lateral sclerosis), also known as Lou Gehrig’s disease.',
    Severity: Major
    Found in src/applications/simple-forms/20-10207/config/constants.js and 7 other locations - About 55 mins to fix
    src/applications/simple-forms/20-10207/config/constants.js on lines 40..53
    src/applications/simple-forms/20-10207/config/constants.js on lines 54..67
    src/applications/simple-forms/20-10207/config/constants.js on lines 68..81
    src/applications/simple-forms/20-10207/config/constants.js on lines 276..286
    src/applications/simple-forms/20-10207/config/constants.js on lines 288..299
    src/applications/simple-forms/21-4138/config/constants.js on lines 92..105
    src/applications/disability-benefits/all-claims/constants.js on lines 371..379

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

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

    export const OTHER_REASONS = Object.freeze({
      FINANCIAL_HARDSHIP: 'I’m experiencing extreme financial hardship.',
      ALS:
        'I have ALS (amyotrophic lateral sclerosis), also known as Lou Gehrig’s disease.',
      TERMINAL_ILLNESS: 'I have a terminal illness.',
    Severity: Major
    Found in src/applications/simple-forms/20-10207/config/constants.js and 7 other locations - About 55 mins to fix
    src/applications/simple-forms/20-10207/config/constants.js on lines 40..53
    src/applications/simple-forms/20-10207/config/constants.js on lines 54..67
    src/applications/simple-forms/20-10207/config/constants.js on lines 68..81
    src/applications/simple-forms/20-10207/config/constants.js on lines 288..299
    src/applications/simple-forms/20-10207/config/constants.js on lines 301..313
    src/applications/simple-forms/21-4138/config/constants.js on lines 92..105
    src/applications/disability-benefits/all-claims/constants.js on lines 371..379

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

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

    export const LIVING_SITUATIONS_3RD_PTY_NON_VET = Object.freeze({
      OVERNIGHT:
        'The claimant lives or sleeps overnight in a place that isn’t meant for regular sleeping. This includes a car, park, abandoned building, bus station, train station, airport, or camping ground.',
      SHELTER:
        'The claimant lives in a shelter (including a hotel or motel) that’s meant for temporary stays.',
    Severity: Major
    Found in src/applications/simple-forms/20-10207/config/constants.js and 7 other locations - About 55 mins to fix
    src/applications/simple-forms/20-10207/config/constants.js on lines 40..53
    src/applications/simple-forms/20-10207/config/constants.js on lines 54..67
    src/applications/simple-forms/20-10207/config/constants.js on lines 276..286
    src/applications/simple-forms/20-10207/config/constants.js on lines 288..299
    src/applications/simple-forms/20-10207/config/constants.js on lines 301..313
    src/applications/simple-forms/21-4138/config/constants.js on lines 92..105
    src/applications/disability-benefits/all-claims/constants.js on lines 371..379

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

    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

    export const PREPARER_TYPE_LABELS = Object.freeze({
      [PREPARER_TYPES.VETERAN]:
        'I’m a Veteran. I’m requesting priority processing for my claim.',
      [PREPARER_TYPES.NON_VETERAN]:
        'I’m not a Veteran, but I have an existing VA claim. I’m requesting priority processing for my claim.',
    Severity: Minor
    Found in src/applications/simple-forms/20-10207/config/constants.js and 1 other location - About 35 mins to fix
    src/site/constants/vsp-environments.js on lines 10..15

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

    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