department-of-veterans-affairs/vets-website

View on GitHub

Showing 12,840 of 12,840 total issues

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

Lejeune24.propTypes = {
  formResponses: PropTypes.object.isRequired,
  router: PropTypes.shape({
    push: PropTypes.func,
  }).isRequired,
src/applications/pact-act/containers/questions/ServicePeriod.jsx on lines 68..75
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-A.jsx on lines 79..86
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-B.jsx on lines 75..82
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-2.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-3.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-A.jsx on lines 83..90
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-B.jsx on lines 72..79
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-1.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-2.jsx on lines 79..86
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-3.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1.jsx on lines 79..86
src/applications/pact-act/containers/questions/main-flow/Main-Flow-2-5.jsx on lines 94..101
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-A.jsx on lines 76..83
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-B.jsx on lines 72..79

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

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

Orange221A.propTypes = {
  formResponses: PropTypes.object.isRequired,
  router: PropTypes.shape({
    push: PropTypes.func,
  }).isRequired,
src/applications/pact-act/containers/questions/ServicePeriod.jsx on lines 68..75
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-B.jsx on lines 75..82
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-2.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-3.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-A.jsx on lines 83..90
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-B.jsx on lines 72..79
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-1.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-2.jsx on lines 79..86
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-3.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1.jsx on lines 79..86
src/applications/pact-act/containers/questions/camp-lejeune/Lejeune-2-4.jsx on lines 75..82
src/applications/pact-act/containers/questions/main-flow/Main-Flow-2-5.jsx on lines 94..101
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-A.jsx on lines 76..83
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-B.jsx on lines 72..79

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

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

Orange223.propTypes = {
  formResponses: PropTypes.object.isRequired,
  router: PropTypes.shape({
    push: PropTypes.func,
  }).isRequired,
src/applications/pact-act/containers/questions/ServicePeriod.jsx on lines 68..75
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-A.jsx on lines 79..86
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-B.jsx on lines 75..82
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-2.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-A.jsx on lines 83..90
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-B.jsx on lines 72..79
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-1.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-2.jsx on lines 79..86
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-3.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1.jsx on lines 79..86
src/applications/pact-act/containers/questions/camp-lejeune/Lejeune-2-4.jsx on lines 75..82
src/applications/pact-act/containers/questions/main-flow/Main-Flow-2-5.jsx on lines 94..101
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-A.jsx on lines 76..83
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-B.jsx on lines 72..79

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

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

Radiation23B.propTypes = {
  formResponses: PropTypes.object.isRequired,
  router: PropTypes.shape({
    push: PropTypes.func,
  }).isRequired,
src/applications/pact-act/containers/questions/ServicePeriod.jsx on lines 68..75
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-A.jsx on lines 79..86
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-B.jsx on lines 75..82
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-2.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-3.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-A.jsx on lines 83..90
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-B.jsx on lines 72..79
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-1.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-2.jsx on lines 79..86
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-3.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1.jsx on lines 79..86
src/applications/pact-act/containers/questions/camp-lejeune/Lejeune-2-4.jsx on lines 75..82
src/applications/pact-act/containers/questions/main-flow/Main-Flow-2-5.jsx on lines 94..101
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-A.jsx on lines 76..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 78.

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

MainFlow25.propTypes = {
  formResponses: PropTypes.object.isRequired,
  router: PropTypes.shape({
    push: PropTypes.func,
  }).isRequired,
src/applications/pact-act/containers/questions/ServicePeriod.jsx on lines 68..75
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-A.jsx on lines 79..86
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-B.jsx on lines 75..82
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-2.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-3.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-A.jsx on lines 83..90
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-B.jsx on lines 72..79
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-1.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-2.jsx on lines 79..86
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-3.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1.jsx on lines 79..86
src/applications/pact-act/containers/questions/camp-lejeune/Lejeune-2-4.jsx on lines 75..82
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-A.jsx on lines 76..83
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-B.jsx on lines 72..79

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

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

BurnPit211.propTypes = {
  formResponses: PropTypes.object.isRequired,
  router: PropTypes.shape({
    push: PropTypes.func,
  }).isRequired,
src/applications/pact-act/containers/questions/ServicePeriod.jsx on lines 68..75
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-A.jsx on lines 79..86
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-B.jsx on lines 75..82
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-2.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-3.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-A.jsx on lines 83..90
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-B.jsx on lines 72..79
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-2.jsx on lines 79..86
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-3.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1.jsx on lines 79..86
src/applications/pact-act/containers/questions/camp-lejeune/Lejeune-2-4.jsx on lines 75..82
src/applications/pact-act/containers/questions/main-flow/Main-Flow-2-5.jsx on lines 94..101
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-A.jsx on lines 76..83
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-B.jsx on lines 72..79

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

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

BurnPit213.propTypes = {
  formResponses: PropTypes.object.isRequired,
  router: PropTypes.shape({
    push: PropTypes.func,
  }).isRequired,
src/applications/pact-act/containers/questions/ServicePeriod.jsx on lines 68..75
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-A.jsx on lines 79..86
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-B.jsx on lines 75..82
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-2.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-3.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-A.jsx on lines 83..90
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-B.jsx on lines 72..79
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-1.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-2.jsx on lines 79..86
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1.jsx on lines 79..86
src/applications/pact-act/containers/questions/camp-lejeune/Lejeune-2-4.jsx on lines 75..82
src/applications/pact-act/containers/questions/main-flow/Main-Flow-2-5.jsx on lines 94..101
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-A.jsx on lines 76..83
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-B.jsx on lines 72..79

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

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

Orange22B.propTypes = {
  formResponses: PropTypes.object.isRequired,
  router: PropTypes.shape({
    push: PropTypes.func,
  }).isRequired,
src/applications/pact-act/containers/questions/ServicePeriod.jsx on lines 68..75
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-A.jsx on lines 79..86
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-B.jsx on lines 75..82
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-2.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-3.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-A.jsx on lines 83..90
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-1.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-2.jsx on lines 79..86
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-3.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1.jsx on lines 79..86
src/applications/pact-act/containers/questions/camp-lejeune/Lejeune-2-4.jsx on lines 75..82
src/applications/pact-act/containers/questions/main-flow/Main-Flow-2-5.jsx on lines 94..101
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-A.jsx on lines 76..83
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-B.jsx on lines 72..79

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

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

BurnPit21.propTypes = {
  formResponses: PropTypes.object.isRequired,
  router: PropTypes.shape({
    push: PropTypes.func,
  }).isRequired,
src/applications/pact-act/containers/questions/ServicePeriod.jsx on lines 68..75
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-A.jsx on lines 79..86
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-B.jsx on lines 75..82
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-2.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-3.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-A.jsx on lines 83..90
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-B.jsx on lines 72..79
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-1.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-2.jsx on lines 79..86
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-3.jsx on lines 82..89
src/applications/pact-act/containers/questions/camp-lejeune/Lejeune-2-4.jsx on lines 75..82
src/applications/pact-act/containers/questions/main-flow/Main-Flow-2-5.jsx on lines 94..101
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-A.jsx on lines 76..83
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-B.jsx on lines 72..79

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

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

BurnPit212.propTypes = {
  formResponses: PropTypes.object.isRequired,
  router: PropTypes.shape({
    push: PropTypes.func,
  }).isRequired,
src/applications/pact-act/containers/questions/ServicePeriod.jsx on lines 68..75
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-A.jsx on lines 79..86
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-B.jsx on lines 75..82
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-2.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-3.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-A.jsx on lines 83..90
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-B.jsx on lines 72..79
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-1.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-3.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1.jsx on lines 79..86
src/applications/pact-act/containers/questions/camp-lejeune/Lejeune-2-4.jsx on lines 75..82
src/applications/pact-act/containers/questions/main-flow/Main-Flow-2-5.jsx on lines 94..101
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-A.jsx on lines 76..83
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-B.jsx on lines 72..79

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

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

Orange222.propTypes = {
  formResponses: PropTypes.object.isRequired,
  router: PropTypes.shape({
    push: PropTypes.func,
  }).isRequired,
src/applications/pact-act/containers/questions/ServicePeriod.jsx on lines 68..75
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-A.jsx on lines 79..86
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-B.jsx on lines 75..82
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-3.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-A.jsx on lines 83..90
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-B.jsx on lines 72..79
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-1.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-2.jsx on lines 79..86
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-3.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1.jsx on lines 79..86
src/applications/pact-act/containers/questions/camp-lejeune/Lejeune-2-4.jsx on lines 75..82
src/applications/pact-act/containers/questions/main-flow/Main-Flow-2-5.jsx on lines 94..101
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-A.jsx on lines 76..83
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-B.jsx on lines 72..79

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

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

Radiation23A.propTypes = {
  formResponses: PropTypes.object.isRequired,
  router: PropTypes.shape({
    push: PropTypes.func,
  }).isRequired,
src/applications/pact-act/containers/questions/ServicePeriod.jsx on lines 68..75
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-A.jsx on lines 79..86
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-1-B.jsx on lines 75..82
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-2.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-3.jsx on lines 67..74
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-A.jsx on lines 83..90
src/applications/pact-act/containers/questions/agent-orange/AgentOrange-2-2-B.jsx on lines 72..79
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-1.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-2.jsx on lines 79..86
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1-3.jsx on lines 82..89
src/applications/pact-act/containers/questions/burn-pit/BurnPit-2-1.jsx on lines 79..86
src/applications/pact-act/containers/questions/camp-lejeune/Lejeune-2-4.jsx on lines 75..82
src/applications/pact-act/containers/questions/main-flow/Main-Flow-2-5.jsx on lines 94..101
src/applications/pact-act/containers/questions/radiation/Radiation-2-3-B.jsx on lines 72..79

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

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

const vaFileNumber = (state = initialState, action) => {
  switch (action.type) {
    case VERIFY_VA_FILE_NUMBER_STARTED:
      return set('isLoading', action.response, state);
    case VERIFY_VA_FILE_NUMBER_SUCCEEDED:
src/applications/disability-benefits/686c-674-v2/reducers/index.js on lines 16..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 78.

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 MILITARY_STATES = Object.entries(ADDRESS_DATA.states).reduce(
  (militaryStates, [stateCode, stateName]) => {
    if (ADDRESS_DATA.militaryStates.includes(stateCode)) {
      return {
        ...militaryStates,
src/applications/verify-your-enrollment/helpers.jsx on lines 138..149

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

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

const SearchBenefits = ({
  cumulativeService,
  dispatchShowModal,
  eligForPostGiBill,
  enlistmentService,
Severity: Major
Found in src/applications/gi/components/SearchBenefits.jsx and 3 other locations - About 2 hrs to fix
src/applications/financial-status-report/containers/App.jsx on lines 33..215
src/applications/gi/components/search/KeywordSearch.jsx on lines 15..210
src/applications/gi/containers/search/LocationSearchForm.jsx on lines 33..331

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

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

    selectSuppliesChapter: {
      title: formChapterTitles.selectSupplies,
      pages: {
        [formPageTitlesLookup.addSuppliesPage]: {
          path: 'supplies',
Severity: Major
Found in src/applications/disability-benefits/2346/config/form.js and 1 other location - About 2 hrs to fix
src/applications/health-care-supply-reordering/config/form.js on lines 195..212

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

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 default function PhoneViewField({ formData }) {
  let phone;
  try {
    phone = formData.phone.replace(/(\d{3})(\d{3})(\d{4})/, '$1-$2-$3');
  } catch (err) {
Severity: Major
Found in src/applications/toe/components/PhoneViewField.jsx and 1 other location - About 2 hrs to fix
src/applications/my-education-benefits/components/PhoneViewField.jsx on lines 3..11

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

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 schema = {
  type: 'object',
  properties: {
    application: {
      type: 'object',
src/applications/pre-need-integration/config/pages/applicantMilitaryNameInformationPreparer.jsx on lines 49..68

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

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

export function LocationSearchForm({
  autocomplete,
  dispatchFetchLocationAutocompleteSuggestions,
  dispatchFetchSearchByLocationCoords,
  dispatchFetchSearchByLocationResults,
src/applications/financial-status-report/containers/App.jsx on lines 33..215
src/applications/gi/components/SearchBenefits.jsx on lines 17..326
src/applications/gi/components/search/KeywordSearch.jsx on lines 15..210

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

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 schema = {
  type: 'object',
  properties: {
    application: {
      type: 'object',
src/applications/pre-need-integration/config/pages/applicantMilitaryNameInformation.jsx on lines 49..68

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

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