UTD-CRSS/app.exploreapollo.org

View on GitHub
src/components/InTheNewsComponent/index.js

Summary

Maintainability
F
3 days
Test Coverage

Function render has 363 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  render() {
    return (
      <div className="newsLinks">
        <font></font>

Severity: Major
Found in src/components/InTheNewsComponent/index.js - About 1 day to fix

    File index.js has 369 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import "./index.scss";
    import React, { Component } from "react";
    
    export class InTheNewsComponent extends Component {
      render() {
    Severity: Minor
    Found in src/components/InTheNewsComponent/index.js - About 4 hrs to fix

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

              <h4>
                <b>
                  5. Dmagazine<br></br>Published: December 21, 2017
                </b>
                <br></br>
      Severity: Major
      Found in src/components/InTheNewsComponent/index.js and 13 other locations - About 40 mins to fix
      src/components/InTheNewsComponent/index.js on lines 10..15
      src/components/InTheNewsComponent/index.js on lines 32..37
      src/components/InTheNewsComponent/index.js on lines 54..59
      src/components/InTheNewsComponent/index.js on lines 76..81
      src/components/InTheNewsComponent/index.js on lines 121..126
      src/components/InTheNewsComponent/index.js on lines 143..148
      src/components/InTheNewsComponent/index.js on lines 166..171
      src/components/InTheNewsComponent/index.js on lines 184..189
      src/components/InTheNewsComponent/index.js on lines 200..205
      src/components/InTheNewsComponent/index.js on lines 219..224
      src/components/InTheNewsComponent/index.js on lines 242..247
      src/components/InTheNewsComponent/index.js on lines 354..359
      src/components/InTheNewsComponent/index.js on lines 377..382

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

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

              <h4>
                <b>
                  4. Kera News<br></br>Published: December 20, 2017
                </b>
                <br></br>
      Severity: Major
      Found in src/components/InTheNewsComponent/index.js and 13 other locations - About 40 mins to fix
      src/components/InTheNewsComponent/index.js on lines 10..15
      src/components/InTheNewsComponent/index.js on lines 32..37
      src/components/InTheNewsComponent/index.js on lines 54..59
      src/components/InTheNewsComponent/index.js on lines 99..104
      src/components/InTheNewsComponent/index.js on lines 121..126
      src/components/InTheNewsComponent/index.js on lines 143..148
      src/components/InTheNewsComponent/index.js on lines 166..171
      src/components/InTheNewsComponent/index.js on lines 184..189
      src/components/InTheNewsComponent/index.js on lines 200..205
      src/components/InTheNewsComponent/index.js on lines 219..224
      src/components/InTheNewsComponent/index.js on lines 242..247
      src/components/InTheNewsComponent/index.js on lines 354..359
      src/components/InTheNewsComponent/index.js on lines 377..382

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

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

              <h4>
                <b>
                  10. NASA<br></br>Published: August 25, 2018
                </b>
                <br></br>
      Severity: Major
      Found in src/components/InTheNewsComponent/index.js and 13 other locations - About 40 mins to fix
      src/components/InTheNewsComponent/index.js on lines 10..15
      src/components/InTheNewsComponent/index.js on lines 32..37
      src/components/InTheNewsComponent/index.js on lines 54..59
      src/components/InTheNewsComponent/index.js on lines 76..81
      src/components/InTheNewsComponent/index.js on lines 99..104
      src/components/InTheNewsComponent/index.js on lines 121..126
      src/components/InTheNewsComponent/index.js on lines 143..148
      src/components/InTheNewsComponent/index.js on lines 166..171
      src/components/InTheNewsComponent/index.js on lines 184..189
      src/components/InTheNewsComponent/index.js on lines 219..224
      src/components/InTheNewsComponent/index.js on lines 242..247
      src/components/InTheNewsComponent/index.js on lines 354..359
      src/components/InTheNewsComponent/index.js on lines 377..382

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

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

              <h4>
                <b>
                  9. NASA<br></br>Published: July 24, 2018
                </b>
                <br></br>
      Severity: Major
      Found in src/components/InTheNewsComponent/index.js and 13 other locations - About 40 mins to fix
      src/components/InTheNewsComponent/index.js on lines 10..15
      src/components/InTheNewsComponent/index.js on lines 32..37
      src/components/InTheNewsComponent/index.js on lines 54..59
      src/components/InTheNewsComponent/index.js on lines 76..81
      src/components/InTheNewsComponent/index.js on lines 99..104
      src/components/InTheNewsComponent/index.js on lines 121..126
      src/components/InTheNewsComponent/index.js on lines 143..148
      src/components/InTheNewsComponent/index.js on lines 166..171
      src/components/InTheNewsComponent/index.js on lines 200..205
      src/components/InTheNewsComponent/index.js on lines 219..224
      src/components/InTheNewsComponent/index.js on lines 242..247
      src/components/InTheNewsComponent/index.js on lines 354..359
      src/components/InTheNewsComponent/index.js on lines 377..382

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

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

              <h4>
                <b>
                  8. Texas Country Reporter<br></br>Published: May 31, 2019
                </b>
                <br></br>
      Severity: Major
      Found in src/components/InTheNewsComponent/index.js and 13 other locations - About 40 mins to fix
      src/components/InTheNewsComponent/index.js on lines 10..15
      src/components/InTheNewsComponent/index.js on lines 32..37
      src/components/InTheNewsComponent/index.js on lines 54..59
      src/components/InTheNewsComponent/index.js on lines 76..81
      src/components/InTheNewsComponent/index.js on lines 99..104
      src/components/InTheNewsComponent/index.js on lines 121..126
      src/components/InTheNewsComponent/index.js on lines 143..148
      src/components/InTheNewsComponent/index.js on lines 184..189
      src/components/InTheNewsComponent/index.js on lines 200..205
      src/components/InTheNewsComponent/index.js on lines 219..224
      src/components/InTheNewsComponent/index.js on lines 242..247
      src/components/InTheNewsComponent/index.js on lines 354..359
      src/components/InTheNewsComponent/index.js on lines 377..382

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

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

              <h4>
                <b>
                  1. UTD Today<br></br>Published: December 5, 2017
                </b>
                <br></br>
      Severity: Major
      Found in src/components/InTheNewsComponent/index.js and 13 other locations - About 40 mins to fix
      src/components/InTheNewsComponent/index.js on lines 32..37
      src/components/InTheNewsComponent/index.js on lines 54..59
      src/components/InTheNewsComponent/index.js on lines 76..81
      src/components/InTheNewsComponent/index.js on lines 99..104
      src/components/InTheNewsComponent/index.js on lines 121..126
      src/components/InTheNewsComponent/index.js on lines 143..148
      src/components/InTheNewsComponent/index.js on lines 166..171
      src/components/InTheNewsComponent/index.js on lines 184..189
      src/components/InTheNewsComponent/index.js on lines 200..205
      src/components/InTheNewsComponent/index.js on lines 219..224
      src/components/InTheNewsComponent/index.js on lines 242..247
      src/components/InTheNewsComponent/index.js on lines 354..359
      src/components/InTheNewsComponent/index.js on lines 377..382

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

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

              <h4>
                <b>
                  12. Vanity Fair<br></br>Published: December 9, 2018
                </b>
                <br></br>
      Severity: Major
      Found in src/components/InTheNewsComponent/index.js and 13 other locations - About 40 mins to fix
      src/components/InTheNewsComponent/index.js on lines 10..15
      src/components/InTheNewsComponent/index.js on lines 32..37
      src/components/InTheNewsComponent/index.js on lines 54..59
      src/components/InTheNewsComponent/index.js on lines 76..81
      src/components/InTheNewsComponent/index.js on lines 99..104
      src/components/InTheNewsComponent/index.js on lines 121..126
      src/components/InTheNewsComponent/index.js on lines 143..148
      src/components/InTheNewsComponent/index.js on lines 166..171
      src/components/InTheNewsComponent/index.js on lines 184..189
      src/components/InTheNewsComponent/index.js on lines 200..205
      src/components/InTheNewsComponent/index.js on lines 219..224
      src/components/InTheNewsComponent/index.js on lines 354..359
      src/components/InTheNewsComponent/index.js on lines 377..382

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

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

              <h4>
                <b>
                  15. Dallas Morning News<br></br>Published: December 5, 2017
                </b>
                <br></br>
      Severity: Major
      Found in src/components/InTheNewsComponent/index.js and 13 other locations - About 40 mins to fix
      src/components/InTheNewsComponent/index.js on lines 10..15
      src/components/InTheNewsComponent/index.js on lines 32..37
      src/components/InTheNewsComponent/index.js on lines 54..59
      src/components/InTheNewsComponent/index.js on lines 76..81
      src/components/InTheNewsComponent/index.js on lines 99..104
      src/components/InTheNewsComponent/index.js on lines 121..126
      src/components/InTheNewsComponent/index.js on lines 143..148
      src/components/InTheNewsComponent/index.js on lines 166..171
      src/components/InTheNewsComponent/index.js on lines 184..189
      src/components/InTheNewsComponent/index.js on lines 200..205
      src/components/InTheNewsComponent/index.js on lines 219..224
      src/components/InTheNewsComponent/index.js on lines 242..247
      src/components/InTheNewsComponent/index.js on lines 354..359

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

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

              <h4>
                <b>
                  3. National Science Foundation<br></br>Published: December 7, 2017
                </b>
                <br></br>
      Severity: Major
      Found in src/components/InTheNewsComponent/index.js and 13 other locations - About 40 mins to fix
      src/components/InTheNewsComponent/index.js on lines 10..15
      src/components/InTheNewsComponent/index.js on lines 32..37
      src/components/InTheNewsComponent/index.js on lines 76..81
      src/components/InTheNewsComponent/index.js on lines 99..104
      src/components/InTheNewsComponent/index.js on lines 121..126
      src/components/InTheNewsComponent/index.js on lines 143..148
      src/components/InTheNewsComponent/index.js on lines 166..171
      src/components/InTheNewsComponent/index.js on lines 184..189
      src/components/InTheNewsComponent/index.js on lines 200..205
      src/components/InTheNewsComponent/index.js on lines 219..224
      src/components/InTheNewsComponent/index.js on lines 242..247
      src/components/InTheNewsComponent/index.js on lines 354..359
      src/components/InTheNewsComponent/index.js on lines 377..382

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

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

              <h4>
                <b>
                  6. collectSpace<br></br>Published: January 5, 2018
                </b>
                <br></br>
      Severity: Major
      Found in src/components/InTheNewsComponent/index.js and 13 other locations - About 40 mins to fix
      src/components/InTheNewsComponent/index.js on lines 10..15
      src/components/InTheNewsComponent/index.js on lines 32..37
      src/components/InTheNewsComponent/index.js on lines 54..59
      src/components/InTheNewsComponent/index.js on lines 76..81
      src/components/InTheNewsComponent/index.js on lines 99..104
      src/components/InTheNewsComponent/index.js on lines 143..148
      src/components/InTheNewsComponent/index.js on lines 166..171
      src/components/InTheNewsComponent/index.js on lines 184..189
      src/components/InTheNewsComponent/index.js on lines 200..205
      src/components/InTheNewsComponent/index.js on lines 219..224
      src/components/InTheNewsComponent/index.js on lines 242..247
      src/components/InTheNewsComponent/index.js on lines 354..359
      src/components/InTheNewsComponent/index.js on lines 377..382

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

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

              <h4>
                <b>
                  2. Dallas Innovates<br></br>Published: December 7, 2017
                </b>
                <br></br>
      Severity: Major
      Found in src/components/InTheNewsComponent/index.js and 13 other locations - About 40 mins to fix
      src/components/InTheNewsComponent/index.js on lines 10..15
      src/components/InTheNewsComponent/index.js on lines 54..59
      src/components/InTheNewsComponent/index.js on lines 76..81
      src/components/InTheNewsComponent/index.js on lines 99..104
      src/components/InTheNewsComponent/index.js on lines 121..126
      src/components/InTheNewsComponent/index.js on lines 143..148
      src/components/InTheNewsComponent/index.js on lines 166..171
      src/components/InTheNewsComponent/index.js on lines 184..189
      src/components/InTheNewsComponent/index.js on lines 200..205
      src/components/InTheNewsComponent/index.js on lines 219..224
      src/components/InTheNewsComponent/index.js on lines 242..247
      src/components/InTheNewsComponent/index.js on lines 354..359
      src/components/InTheNewsComponent/index.js on lines 377..382

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

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

              <h4>
                <b>
                  11. Discover Magazine<br></br>Published: October 29, 2018
                </b>
                <br></br>
      Severity: Major
      Found in src/components/InTheNewsComponent/index.js and 13 other locations - About 40 mins to fix
      src/components/InTheNewsComponent/index.js on lines 10..15
      src/components/InTheNewsComponent/index.js on lines 32..37
      src/components/InTheNewsComponent/index.js on lines 54..59
      src/components/InTheNewsComponent/index.js on lines 76..81
      src/components/InTheNewsComponent/index.js on lines 99..104
      src/components/InTheNewsComponent/index.js on lines 121..126
      src/components/InTheNewsComponent/index.js on lines 143..148
      src/components/InTheNewsComponent/index.js on lines 166..171
      src/components/InTheNewsComponent/index.js on lines 184..189
      src/components/InTheNewsComponent/index.js on lines 200..205
      src/components/InTheNewsComponent/index.js on lines 242..247
      src/components/InTheNewsComponent/index.js on lines 354..359
      src/components/InTheNewsComponent/index.js on lines 377..382

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

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

              <h4>
                <b>
                  14. FOX News<br></br>Published: July 19, 2019
                </b>
                <br></br>
      Severity: Major
      Found in src/components/InTheNewsComponent/index.js and 13 other locations - About 40 mins to fix
      src/components/InTheNewsComponent/index.js on lines 10..15
      src/components/InTheNewsComponent/index.js on lines 32..37
      src/components/InTheNewsComponent/index.js on lines 54..59
      src/components/InTheNewsComponent/index.js on lines 76..81
      src/components/InTheNewsComponent/index.js on lines 99..104
      src/components/InTheNewsComponent/index.js on lines 121..126
      src/components/InTheNewsComponent/index.js on lines 143..148
      src/components/InTheNewsComponent/index.js on lines 166..171
      src/components/InTheNewsComponent/index.js on lines 184..189
      src/components/InTheNewsComponent/index.js on lines 200..205
      src/components/InTheNewsComponent/index.js on lines 219..224
      src/components/InTheNewsComponent/index.js on lines 242..247
      src/components/InTheNewsComponent/index.js on lines 377..382

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

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

              <h4>
                <b>
                  7. Houston Public Media<br></br>Published: January 30, 2018
                </b>
                <br></br>
      Severity: Major
      Found in src/components/InTheNewsComponent/index.js and 13 other locations - About 40 mins to fix
      src/components/InTheNewsComponent/index.js on lines 10..15
      src/components/InTheNewsComponent/index.js on lines 32..37
      src/components/InTheNewsComponent/index.js on lines 54..59
      src/components/InTheNewsComponent/index.js on lines 76..81
      src/components/InTheNewsComponent/index.js on lines 99..104
      src/components/InTheNewsComponent/index.js on lines 121..126
      src/components/InTheNewsComponent/index.js on lines 166..171
      src/components/InTheNewsComponent/index.js on lines 184..189
      src/components/InTheNewsComponent/index.js on lines 200..205
      src/components/InTheNewsComponent/index.js on lines 219..224
      src/components/InTheNewsComponent/index.js on lines 242..247
      src/components/InTheNewsComponent/index.js on lines 354..359
      src/components/InTheNewsComponent/index.js on lines 377..382

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

      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