department-of-veterans-affairs/vets-website

View on GitHub
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx

Summary

Maintainability
F
4 days
Test Coverage

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

export const StudentAdditionalInfoH3 = ({ formData }) => {
  const { first, last } = formData.fullName;
  return (
    <legend className="schemaform-block-title" id="root__title">
      <h3 className="vads-u-color--black vads-u-margin-top--0">
src/applications/disability-benefits/686c-674-v2/components/SpouseViewField.jsx on lines 19..29

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

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

export const StudentAssetsH3 = ({ formData }) => {
  const { first, last } = formData.fullName;
  return (
    <legend className="schemaform-block-title" id="root__title">
      <h3 className="vads-u-color--black vads-u-margin-top--0">
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 83..92
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 94..103
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 105..114
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 116..125
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 127..136
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 149..158
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 160..169
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 171..181
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 183..192

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

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

export const StudentCurrentTermH3 = ({ formData }) => {
  const { first, last } = formData.fullName;
  return (
    <legend className="schemaform-block-title" id="root__title">
      <h3 className="vads-u-color--black vads-u-margin-top--0">
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 83..92
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 94..103
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 105..114
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 116..125
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 127..136
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 160..169
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 171..181
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 183..192
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 194..203

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

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

export const StudentIncomeAtSchoolH3 = ({ formData }) => {
  const { first, last } = formData.fullName;
  return (
    <legend className="schemaform-block-title" id="root__title">
      <h3 className="vads-u-color--black vads-u-margin-top--0">
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 83..92
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 94..103
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 105..114
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 116..125
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 127..136
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 149..158
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 160..169
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 183..192
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 194..203

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

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

export const StudentInfoH3 = ({ formData }) => {
  const { first, last } = formData.fullName;
  return (
    <legend className="schemaform-block-title" id="root__title">
      <h3 className="vads-u-color--black vads-u-margin-top--0">
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 94..103
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 105..114
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 116..125
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 127..136
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 149..158
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 160..169
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 171..181
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 183..192
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 194..203

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

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

export const StudentProgramH3 = ({ formData }) => {
  const { first, last } = formData.fullName;
  return (
    <legend className="schemaform-block-title" id="root__title">
      <h3 className="vads-u-color--black vads-u-margin-top--0">
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 83..92
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 94..103
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 105..114
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 116..125
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 149..158
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 160..169
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 171..181
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 183..192
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 194..203

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

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

export const StudentExpectedIncomeH3 = ({ formData }) => {
  const { first, last } = formData.fullName;
  return (
    <legend className="schemaform-block-title" id="root__title">
      <h3 className="vads-u-color--black vads-u-margin-top--0">
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 83..92
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 94..103
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 105..114
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 116..125
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 127..136
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 149..158
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 160..169
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 171..181
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 194..203

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

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

export const StudentAddressH3 = ({ formData }) => {
  const { first, last } = formData.fullName;
  return (
    <legend className="schemaform-block-title" id="root__title">
      <h3 className="vads-u-color--black vads-u-margin-top--0">
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 83..92
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 105..114
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 116..125
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 127..136
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 149..158
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 160..169
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 171..181
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 183..192
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 194..203

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

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

export const StudentMarriageH3 = ({ formData }) => {
  const { first, last } = formData.fullName;
  return (
    <legend className="schemaform-block-title" id="root__title">
      <h3 className="vads-u-color--black vads-u-margin-top--0">
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 83..92
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 94..103
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 116..125
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 127..136
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 149..158
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 160..169
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 171..181
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 183..192
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 194..203

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

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

export const StudentEducationH3 = ({ formData }) => {
  const { first, last } = formData.fullName;
  return (
    <legend className="schemaform-block-title" id="root__title">
      <h3 className="vads-u-color--black vads-u-margin-top--0">
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 83..92
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 94..103
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 105..114
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 127..136
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 149..158
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 160..169
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 171..181
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 183..192
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 194..203

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

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

export const StudentPrevTermH3 = ({ formData }) => {
  const { first, last } = formData.fullName;
  return (
    <legend className="schemaform-block-title" id="root__title">
      <h3 className="vads-u-color--black vads-u-margin-top--0">
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 83..92
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 94..103
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 105..114
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 116..125
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 127..136
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 149..158
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 171..181
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 183..192
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/helpers.jsx on lines 194..203

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

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 ProgramExamples = (
  <va-additional-info trigger="Examples of federally funded programs or schools">
    <ul>
      <li>U.S Department of Labor’s Job Corps program</li>
      <li>Military academies</li>
src/applications/financial-status-report/pages/assets/recreationalVehicles/records.js on lines 8..19

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

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="How to tell if a school is accredited">
    <p>
      You can go to the U.S. Department of Education’s website to check if a
      school is accredited.
    </p>
src/applications/simple-forms/20-10206/config/constants.js on lines 68..83

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

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