UTD-CRSS/app.exploreapollo.org

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

Summary

Maintainability
D
2 days
Test Coverage

Function LessonList has 142 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function LessonList() {
  return (
    <div className="app-container">
      <nav className="navbar navbar-inverse bg-black">
        <a className="lessonlinks " href="/lessons#k-2">
Severity: Major
Found in src/components/LessonList/index.js - About 5 hrs to fix

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

          <button className="btn-info btn-lg flex-grow-1 addpadding bolder">
            <a
              href="https://drive.google.com/file/d/1-lfODu9I_ClBMptXIyTcItyai_ymXanf/view?usp=sharing"
              target="_blank"
              rel="noopener noreferrer"
    Severity: Major
    Found in src/components/LessonList/index.js and 3 other locations - About 1 hr to fix
    src/components/LessonList/index.js on lines 71..80
    src/components/LessonList/index.js on lines 99..108
    src/components/LessonList/index.js on lines 133..142

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

    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

          <button className="btn-info btn-lg flex-grow-1 addpadding bolder">
            <a
              href="https://drive.google.com/file/d/179IAuqqypsIsOQkuc7H3CJou2RcfnhBg/view?usp=sharing"
              target="_blank"
              rel="noopener noreferrer"
    Severity: Major
    Found in src/components/LessonList/index.js and 3 other locations - About 1 hr to fix
    src/components/LessonList/index.js on lines 42..51
    src/components/LessonList/index.js on lines 99..108
    src/components/LessonList/index.js on lines 133..142

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

    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

          <button className="btn-primary btn-lg flex-grow-1 addpadding bolder">
            <a
              href="https://drive.google.com/file/d/1m4aWDdcCoWHfNRGFJ6vPId-HzG4L-zEF/view?usp=sharing"
              target="_blank"
              rel="noopener noreferrer"
    Severity: Major
    Found in src/components/LessonList/index.js and 3 other locations - About 1 hr to fix
    src/components/LessonList/index.js on lines 42..51
    src/components/LessonList/index.js on lines 71..80
    src/components/LessonList/index.js on lines 99..108

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

    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

          <button className="btn-info btn-lg flex-grow-1 addpadding bolder">
            <a
              href=" https://drive.google.com/file/d/1RRJjdASEg_H3fVw0MsC3ENYgdhYLmtkX/view?usp=sharing"
              target="_blank"
              rel="noopener noreferrer"
    Severity: Major
    Found in src/components/LessonList/index.js and 3 other locations - About 1 hr to fix
    src/components/LessonList/index.js on lines 42..51
    src/components/LessonList/index.js on lines 71..80
    src/components/LessonList/index.js on lines 133..142

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

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

          <button className="btn-info btn-lg flex-grow-1 addpadding bolder">
            <a href="">
              {" "}
              <font>History: Coming soon</font>{" "}
            </a>
    Severity: Major
    Found in src/components/LessonList/index.js and 7 other locations - About 1 hr to fix
    src/components/LessonList/index.js on lines 52..57
    src/components/LessonList/index.js on lines 58..63
    src/components/LessonList/index.js on lines 81..86
    src/components/LessonList/index.js on lines 87..92
    src/components/LessonList/index.js on lines 109..114
    src/components/LessonList/index.js on lines 115..120
    src/components/LessonList/index.js on lines 143..148

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

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

          <button className="btn-secondary btn-lg flex-grow-1 addpadding bolder">
            <a href="">
              {" "}
              <font>Activities: Coming Soon</font>{" "}
            </a>
    Severity: Major
    Found in src/components/LessonList/index.js and 7 other locations - About 1 hr to fix
    src/components/LessonList/index.js on lines 52..57
    src/components/LessonList/index.js on lines 81..86
    src/components/LessonList/index.js on lines 87..92
    src/components/LessonList/index.js on lines 109..114
    src/components/LessonList/index.js on lines 115..120
    src/components/LessonList/index.js on lines 127..132
    src/components/LessonList/index.js on lines 143..148

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

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

          <button className="btn-secondary btn-lg flex-grow-1 addpadding bolder">
            <a href="">
              {" "}
              <font>Activities: Coming Soon</font>{" "}
            </a>
    Severity: Major
    Found in src/components/LessonList/index.js and 7 other locations - About 1 hr to fix
    src/components/LessonList/index.js on lines 52..57
    src/components/LessonList/index.js on lines 58..63
    src/components/LessonList/index.js on lines 81..86
    src/components/LessonList/index.js on lines 87..92
    src/components/LessonList/index.js on lines 109..114
    src/components/LessonList/index.js on lines 127..132
    src/components/LessonList/index.js on lines 143..148

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

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

          <button className="btn-primary btn-lg flex-grow-1 addpadding bolder">
            <a href="">
              {" "}
              <font>Tech: Coming Soon</font>{" "}
            </a>
    Severity: Major
    Found in src/components/LessonList/index.js and 7 other locations - About 1 hr to fix
    src/components/LessonList/index.js on lines 58..63
    src/components/LessonList/index.js on lines 81..86
    src/components/LessonList/index.js on lines 87..92
    src/components/LessonList/index.js on lines 109..114
    src/components/LessonList/index.js on lines 115..120
    src/components/LessonList/index.js on lines 127..132
    src/components/LessonList/index.js on lines 143..148

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

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

          <button className="btn-primary btn-lg flex-grow-1 addpadding bolder">
            <a href="">
              {" "}
              <font>Tech: Coming Soon</font>{" "}
            </a>
    Severity: Major
    Found in src/components/LessonList/index.js and 7 other locations - About 1 hr to fix
    src/components/LessonList/index.js on lines 52..57
    src/components/LessonList/index.js on lines 58..63
    src/components/LessonList/index.js on lines 81..86
    src/components/LessonList/index.js on lines 87..92
    src/components/LessonList/index.js on lines 115..120
    src/components/LessonList/index.js on lines 127..132
    src/components/LessonList/index.js on lines 143..148

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

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

          <button className="btn-secondary btn-lg flex-grow-1 addpadding bolder">
            <a href="">
              {" "}
              <font>Activities: Coming Soon</font>{" "}
            </a>
    Severity: Major
    Found in src/components/LessonList/index.js and 7 other locations - About 1 hr to fix
    src/components/LessonList/index.js on lines 52..57
    src/components/LessonList/index.js on lines 58..63
    src/components/LessonList/index.js on lines 81..86
    src/components/LessonList/index.js on lines 109..114
    src/components/LessonList/index.js on lines 115..120
    src/components/LessonList/index.js on lines 127..132
    src/components/LessonList/index.js on lines 143..148

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

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

          <button className="btn-secondary btn-lg flex-grow-1 addpadding bolder">
            <a href="">
              {" "}
              <font>Activities: Coming Soon</font>{" "}
            </a>
    Severity: Major
    Found in src/components/LessonList/index.js and 7 other locations - About 1 hr to fix
    src/components/LessonList/index.js on lines 52..57
    src/components/LessonList/index.js on lines 58..63
    src/components/LessonList/index.js on lines 81..86
    src/components/LessonList/index.js on lines 87..92
    src/components/LessonList/index.js on lines 109..114
    src/components/LessonList/index.js on lines 115..120
    src/components/LessonList/index.js on lines 127..132

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

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

          <button className="btn-primary btn-lg flex-grow-1 addpadding bolder">
            <a href="">
              {" "}
              <font>Tech: Coming Soon</font>{" "}
            </a>
    Severity: Major
    Found in src/components/LessonList/index.js and 7 other locations - About 1 hr to fix
    src/components/LessonList/index.js on lines 52..57
    src/components/LessonList/index.js on lines 58..63
    src/components/LessonList/index.js on lines 87..92
    src/components/LessonList/index.js on lines 109..114
    src/components/LessonList/index.js on lines 115..120
    src/components/LessonList/index.js on lines 127..132
    src/components/LessonList/index.js on lines 143..148

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

    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