department-of-veterans-affairs/vets-website

View on GitHub

Showing 12,811 of 12,811 total issues

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

IntroductionPage.propTypes = {
  route: PropTypes.shape({
    formConfig: PropTypes.shape({
      prefillEnabled: PropTypes.bool.isRequired,
      savedFormMessages: PropTypes.object.isRequired,
src/applications/simple-forms/20-10207/containers/IntroductionPage.jsx on lines 286..294
src/applications/simple-forms/21-10210/containers/IntroductionPage.jsx on lines 72..80
src/applications/simple-forms/21-4138/containers/IntroductionPage.jsx on lines 76..84
src/applications/simple-forms/40-0247/containers/IntroductionPage.jsx on lines 110..118

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

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

IntroductionPage.propTypes = {
  route: PropTypes.shape({
    formConfig: PropTypes.shape({
      prefillEnabled: PropTypes.bool.isRequired,
      savedFormMessages: PropTypes.object.isRequired,
src/applications/simple-forms/20-10207/containers/IntroductionPage.jsx on lines 286..294
src/applications/simple-forms/21-4138/containers/IntroductionPage.jsx on lines 76..84
src/applications/simple-forms/40-0247/containers/IntroductionPage.jsx on lines 110..118
src/applications/simple-forms/form-upload/containers/IntroductionPage.jsx on lines 104..112

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

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

IntroductionPage.propTypes = {
  route: PropTypes.shape({
    formConfig: PropTypes.shape({
      prefillEnabled: PropTypes.bool.isRequired,
      savedFormMessages: PropTypes.object.isRequired,
src/applications/simple-forms/20-10207/containers/IntroductionPage.jsx on lines 286..294
src/applications/simple-forms/21-10210/containers/IntroductionPage.jsx on lines 72..80
src/applications/simple-forms/40-0247/containers/IntroductionPage.jsx on lines 110..118
src/applications/simple-forms/form-upload/containers/IntroductionPage.jsx on lines 104..112

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

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

IntroductionPage.propTypes = {
  route: PropTypes.shape({
    formConfig: PropTypes.shape({
      prefillEnabled: PropTypes.bool.isRequired,
      savedFormMessages: PropTypes.object.isRequired,
src/applications/simple-forms/21-10210/containers/IntroductionPage.jsx on lines 72..80
src/applications/simple-forms/21-4138/containers/IntroductionPage.jsx on lines 76..84
src/applications/simple-forms/40-0247/containers/IntroductionPage.jsx on lines 110..118
src/applications/simple-forms/form-upload/containers/IntroductionPage.jsx on lines 104..112

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

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

IntroductionPage.propTypes = {
  route: PropTypes.shape({
    formConfig: PropTypes.shape({
      prefillEnabled: PropTypes.bool.isRequired,
      savedFormMessages: PropTypes.object.isRequired,
src/applications/simple-forms/20-10207/containers/IntroductionPage.jsx on lines 286..294
src/applications/simple-forms/21-10210/containers/IntroductionPage.jsx on lines 72..80
src/applications/simple-forms/21-4138/containers/IntroductionPage.jsx on lines 76..84
src/applications/simple-forms/form-upload/containers/IntroductionPage.jsx on lines 104..112

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

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

const createError = ({ code = '', detail = '' } = {}) => {
  const errorBase = _.cloneDeep(unspecifiedError);
  if (code) {
    _.set(errorBase, 'errors[0].code', code);
  }
src/applications/personalization/profile/mocks/endpoints/direct-deposits/index.js on lines 89..98
src/applications/personalization/profile/mocks/endpoints/disability-compensations/index.js on lines 88..97

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

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

const createError = ({ code = '', detail = '' } = {}) => {
  const errorBase = _.cloneDeep(unspecifiedError);
  if (code) {
    _.set(errorBase, 'errors[0].code', code);
  }
src/applications/personalization/profile/mocks/endpoints/direct-deposit/index.js on lines 89..98
src/applications/personalization/profile/mocks/endpoints/disability-compensations/index.js on lines 88..97

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

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

const createError = ({ code = '', detail = '' } = {}) => {
  const errorBase = _.cloneDeep(unspecifiedError);
  if (code) {
    _.set(errorBase, 'errors[0].code', code);
  }
src/applications/personalization/profile/mocks/endpoints/direct-deposit/index.js on lines 89..98
src/applications/personalization/profile/mocks/endpoints/direct-deposits/index.js on lines 89..98

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

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

VeteranInfoBox.propTypes = {
  first: PropTypes.string.isRequired,
  last: PropTypes.string.isRequired,
  suffix: PropTypes.string,
  middle: PropTypes.string,
src/applications/health-care-supply-reordering/components/VeteranInfoBox.jsx on lines 51..59

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

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

          <ul>
            <li>
              You made a change in course enrollment, <strong>or</strong>
            </li>
            <li>
src/applications/financial-status-report/constants/deduction-codes/index.js on lines 110..120

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

Severity
Category
Status
Source
Language