UTD-CRSS/app.exploreapollo.org

View on GitHub

Showing 270 of 270 total issues

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

          <Link to={`/channels/${mission}`}>
            <button
              type="button"
              className="btn btn-primary select-new-channel-btn audio-controller-text"
            >
Severity: Minor
Found in src/containers/ChannelViewer/index.js and 1 other location - About 50 mins to fix
src/containers/ChannelsLoader/index.js on lines 132..136

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

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

      maxBlock:
        this.props.location && this.props.location.state
          ? this.props.location.state.maxBlock
          : null,
Severity: Major
Found in src/containers/ChannelViewer/index.js and 2 other locations - About 50 mins to fix
src/containers/ChannelViewer/index.js on lines 24..27
src/containers/ChannelsLoader/index.js on lines 11..14

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

          <Link to={`/channels/${mission}`}>
            <button type="button" className="btn btn-primary">
              Select New Channels
            </button>
          </Link>
Severity: Minor
Found in src/containers/ChannelsLoader/index.js and 1 other location - About 50 mins to fix
src/containers/ChannelViewer/index.js on lines 196..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 51.

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

      minBlock:
        this.props.location && this.props.location.state
          ? this.props.location.state.minBlock
          : null,
Severity: Major
Found in src/containers/ChannelViewer/index.js and 2 other locations - About 50 mins to fix
src/containers/ChannelViewer/index.js on lines 28..31
src/containers/ChannelsLoader/index.js on lines 11..14

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

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

Function getActiveIndex has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

export default function getActiveIndex(transcripts, currentMissionTime) {
  if (
    transcripts == null ||
    transcripts.length < 1 ||
    currentMissionTime == 0
Severity: Minor
Found in src/containers/MomentViewer/getActiveIndex.js - About 45 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

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

        <div className="channel-item-title d-flex col-3 align-items-center">
          <div className="mr-2">Channel: </div>
          <div>{title}</div>
        </div>
Severity: Major
Found in src/containers/Channels/index.js and 3 other locations - About 45 mins to fix
src/containers/Channels/index.js on lines 102..105
src/containers/Channels/index.js on lines 106..109
src/containers/Channels/index.js on lines 227..230

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

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

        <div className="channel-item-title d-flex col-1 align-items-center">
          <div className="mr-2">Tape: </div>
          <div>{title}</div>
        </div>
Severity: Major
Found in src/containers/Channels/index.js and 3 other locations - About 45 mins to fix
src/containers/Channels/index.js on lines 106..109
src/containers/Channels/index.js on lines 223..226
src/containers/Channels/index.js on lines 227..230

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

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

        <div className="channel-item-title d-flex col-3 align-items-center pl-5">
          <div className="mr-2">Operation: </div>
          <div>{operation}</div>
        </div>
Severity: Major
Found in src/containers/Channels/index.js and 3 other locations - About 45 mins to fix
src/containers/Channels/index.js on lines 102..105
src/containers/Channels/index.js on lines 223..226
src/containers/Channels/index.js on lines 227..230

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

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

        <div className="col-9 channel-item-description d-flex align-items-center">
          <div className="mr-4">Description: </div>
          <div>{description}</div>
        </div>
Severity: Major
Found in src/containers/Channels/index.js and 3 other locations - About 45 mins to fix
src/containers/Channels/index.js on lines 102..105
src/containers/Channels/index.js on lines 106..109
src/containers/Channels/index.js on lines 223..226

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

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

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

      const slot = closestIndex(
        this.props.data.time,
        rawInteractions.map(function (index) {
          return Number(index.name);
        })
Severity: Major
Found in src/components/ChordDiagram/index.js and 2 other locations - About 40 mins to fix
src/components/ChordDiagram/index.js on lines 31..36
src/components/ChordDiagram/index.js on lines 51..56

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

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

Severity
Category
Status
Source
Language