myems-web/src/components/utilities/Display.js

Summary

Maintainability
F
5 days
Test Coverage

Function Display has 213 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const Display = () => {
  return (
    <Fragment>
      <PageHeader
        title="Display"
Severity: Major
Found in myems-web/src/components/utilities/Display.js - About 1 day to fix

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

              <ul>
                <li>
                  <code>none</code>
                </li>
                <li>
    Severity: Major
    Found in myems-web/src/components/utilities/Display.js and 1 other location - About 1 day to fix
    myems-web/src/components/utilities/Display.js on lines 194..222

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

    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

              <ul>
                <li>
                  <code>.d-print-none</code>
                </li>
                <li>
    Severity: Major
    Found in myems-web/src/components/utilities/Display.js and 1 other location - About 1 day to fix
    myems-web/src/components/utilities/Display.js on lines 47..75

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

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

                  <tr>
                    <td>Visible on all</td>
                    <td>
                      <code>.d-block</code>
                    </td>
    Severity: Major
    Found in myems-web/src/components/utilities/Display.js and 11 other locations - About 50 mins to fix
    myems-web/src/components/utilities/Display.js on lines 111..116
    myems-web/src/components/utilities/Display.js on lines 117..122
    myems-web/src/components/utilities/Display.js on lines 123..128
    myems-web/src/components/utilities/Display.js on lines 129..134
    myems-web/src/components/utilities/Display.js on lines 135..140
    myems-web/src/components/utilities/Display.js on lines 141..146
    myems-web/src/components/utilities/Display.js on lines 153..158
    myems-web/src/components/utilities/Display.js on lines 159..164
    myems-web/src/components/utilities/Display.js on lines 165..170
    myems-web/src/components/utilities/Display.js on lines 171..176
    myems-web/src/components/utilities/Display.js on lines 177..182

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

              <p>
                Change the <code>display </code>value of elements when printing with our print display utility classes.
                Includes support for the same <code>display </code>values as our responsive <code>.d-* utilities.</code>
              </p>
    Severity: Major
    Found in myems-web/src/components/utilities/Display.js and 10 other locations - About 50 mins to fix
    myems-web/src/components/page/EventDetail.js on lines 39..43
    myems-web/src/components/utilities/Borders.js on lines 113..115
    myems-web/src/components/utilities/Borders.js on lines 116..118
    myems-web/src/components/utilities/Display.js on lines 28..33
    myems-web/src/components/utilities/Spacing.js on lines 44..46
    myems-web/src/components/utilities/Spacing.js on lines 47..49
    myems-web/src/components/utilities/Spacing.js on lines 50..52
    myems-web/src/components/utilities/Spacing.js on lines 53..55
    myems-web/src/components/utilities/Spacing.js on lines 56..58
    myems-web/src/components/utilities/Spacing.js on lines 59..61

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

                  <tr>
                    <td>Hidden only on xs</td>
                    <td>
                      <code>.d-none .d-sm-block</code>
                    </td>
    Severity: Major
    Found in myems-web/src/components/utilities/Display.js and 11 other locations - About 50 mins to fix
    myems-web/src/components/utilities/Display.js on lines 111..116
    myems-web/src/components/utilities/Display.js on lines 123..128
    myems-web/src/components/utilities/Display.js on lines 129..134
    myems-web/src/components/utilities/Display.js on lines 135..140
    myems-web/src/components/utilities/Display.js on lines 141..146
    myems-web/src/components/utilities/Display.js on lines 147..152
    myems-web/src/components/utilities/Display.js on lines 153..158
    myems-web/src/components/utilities/Display.js on lines 159..164
    myems-web/src/components/utilities/Display.js on lines 165..170
    myems-web/src/components/utilities/Display.js on lines 171..176
    myems-web/src/components/utilities/Display.js on lines 177..182

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

                  <tr>
                    <td>Hidden only on lg</td>
                    <td>
                      <code>.d-lg-none .d-xl-block</code>
                    </td>
    Severity: Major
    Found in myems-web/src/components/utilities/Display.js and 11 other locations - About 50 mins to fix
    myems-web/src/components/utilities/Display.js on lines 111..116
    myems-web/src/components/utilities/Display.js on lines 117..122
    myems-web/src/components/utilities/Display.js on lines 123..128
    myems-web/src/components/utilities/Display.js on lines 129..134
    myems-web/src/components/utilities/Display.js on lines 141..146
    myems-web/src/components/utilities/Display.js on lines 147..152
    myems-web/src/components/utilities/Display.js on lines 153..158
    myems-web/src/components/utilities/Display.js on lines 159..164
    myems-web/src/components/utilities/Display.js on lines 165..170
    myems-web/src/components/utilities/Display.js on lines 171..176
    myems-web/src/components/utilities/Display.js on lines 177..182

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

                  <tr>
                    <td>Visible only on xs</td>
                    <td>
                      <code>.d-block .d-sm-none</code>
                    </td>
    Severity: Major
    Found in myems-web/src/components/utilities/Display.js and 11 other locations - About 50 mins to fix
    myems-web/src/components/utilities/Display.js on lines 111..116
    myems-web/src/components/utilities/Display.js on lines 117..122
    myems-web/src/components/utilities/Display.js on lines 123..128
    myems-web/src/components/utilities/Display.js on lines 129..134
    myems-web/src/components/utilities/Display.js on lines 135..140
    myems-web/src/components/utilities/Display.js on lines 141..146
    myems-web/src/components/utilities/Display.js on lines 147..152
    myems-web/src/components/utilities/Display.js on lines 159..164
    myems-web/src/components/utilities/Display.js on lines 165..170
    myems-web/src/components/utilities/Display.js on lines 171..176
    myems-web/src/components/utilities/Display.js on lines 177..182

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

                  <tr>
                    <td>Hidden on all</td>
                    <td>
                      <code>.d-none</code>
                    </td>
    Severity: Major
    Found in myems-web/src/components/utilities/Display.js and 11 other locations - About 50 mins to fix
    myems-web/src/components/utilities/Display.js on lines 117..122
    myems-web/src/components/utilities/Display.js on lines 123..128
    myems-web/src/components/utilities/Display.js on lines 129..134
    myems-web/src/components/utilities/Display.js on lines 135..140
    myems-web/src/components/utilities/Display.js on lines 141..146
    myems-web/src/components/utilities/Display.js on lines 147..152
    myems-web/src/components/utilities/Display.js on lines 153..158
    myems-web/src/components/utilities/Display.js on lines 159..164
    myems-web/src/components/utilities/Display.js on lines 165..170
    myems-web/src/components/utilities/Display.js on lines 171..176
    myems-web/src/components/utilities/Display.js on lines 177..182

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

                  <tr>
                    <td>Visible only on lg</td>
                    <td>
                      <code>.d-none .d-lg-block .d-xl-none</code>
                    </td>
    Severity: Major
    Found in myems-web/src/components/utilities/Display.js and 11 other locations - About 50 mins to fix
    myems-web/src/components/utilities/Display.js on lines 111..116
    myems-web/src/components/utilities/Display.js on lines 117..122
    myems-web/src/components/utilities/Display.js on lines 123..128
    myems-web/src/components/utilities/Display.js on lines 129..134
    myems-web/src/components/utilities/Display.js on lines 135..140
    myems-web/src/components/utilities/Display.js on lines 141..146
    myems-web/src/components/utilities/Display.js on lines 147..152
    myems-web/src/components/utilities/Display.js on lines 153..158
    myems-web/src/components/utilities/Display.js on lines 159..164
    myems-web/src/components/utilities/Display.js on lines 165..170
    myems-web/src/components/utilities/Display.js on lines 177..182

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

                  <tr>
                    <td>Visible only on md</td>
                    <td>
                      <code>.d-none .d-md-block .d-lg-none</code>
                    </td>
    Severity: Major
    Found in myems-web/src/components/utilities/Display.js and 11 other locations - About 50 mins to fix
    myems-web/src/components/utilities/Display.js on lines 111..116
    myems-web/src/components/utilities/Display.js on lines 117..122
    myems-web/src/components/utilities/Display.js on lines 123..128
    myems-web/src/components/utilities/Display.js on lines 129..134
    myems-web/src/components/utilities/Display.js on lines 135..140
    myems-web/src/components/utilities/Display.js on lines 141..146
    myems-web/src/components/utilities/Display.js on lines 147..152
    myems-web/src/components/utilities/Display.js on lines 153..158
    myems-web/src/components/utilities/Display.js on lines 159..164
    myems-web/src/components/utilities/Display.js on lines 171..176
    myems-web/src/components/utilities/Display.js on lines 177..182

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

                  <tr>
                    <td>Hidden only on sm</td>
                    <td>
                      <code>.d-sm-none .d-md-block</code>
                    </td>
    Severity: Major
    Found in myems-web/src/components/utilities/Display.js and 11 other locations - About 50 mins to fix
    myems-web/src/components/utilities/Display.js on lines 111..116
    myems-web/src/components/utilities/Display.js on lines 117..122
    myems-web/src/components/utilities/Display.js on lines 129..134
    myems-web/src/components/utilities/Display.js on lines 135..140
    myems-web/src/components/utilities/Display.js on lines 141..146
    myems-web/src/components/utilities/Display.js on lines 147..152
    myems-web/src/components/utilities/Display.js on lines 153..158
    myems-web/src/components/utilities/Display.js on lines 159..164
    myems-web/src/components/utilities/Display.js on lines 165..170
    myems-web/src/components/utilities/Display.js on lines 171..176
    myems-web/src/components/utilities/Display.js on lines 177..182

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

                  <tr>
                    <td>Hidden only on md</td>
                    <td>
                      <code>.d-md-none .d-lg-block</code>
                    </td>
    Severity: Major
    Found in myems-web/src/components/utilities/Display.js and 11 other locations - About 50 mins to fix
    myems-web/src/components/utilities/Display.js on lines 111..116
    myems-web/src/components/utilities/Display.js on lines 117..122
    myems-web/src/components/utilities/Display.js on lines 123..128
    myems-web/src/components/utilities/Display.js on lines 135..140
    myems-web/src/components/utilities/Display.js on lines 141..146
    myems-web/src/components/utilities/Display.js on lines 147..152
    myems-web/src/components/utilities/Display.js on lines 153..158
    myems-web/src/components/utilities/Display.js on lines 159..164
    myems-web/src/components/utilities/Display.js on lines 165..170
    myems-web/src/components/utilities/Display.js on lines 171..176
    myems-web/src/components/utilities/Display.js on lines 177..182

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

                  <tr>
                    <td>Visible only on xl</td>
                    <td>
                      <code>.d-none .d-xl-block</code>
                    </td>
    Severity: Major
    Found in myems-web/src/components/utilities/Display.js and 11 other locations - About 50 mins to fix
    myems-web/src/components/utilities/Display.js on lines 111..116
    myems-web/src/components/utilities/Display.js on lines 117..122
    myems-web/src/components/utilities/Display.js on lines 123..128
    myems-web/src/components/utilities/Display.js on lines 129..134
    myems-web/src/components/utilities/Display.js on lines 135..140
    myems-web/src/components/utilities/Display.js on lines 141..146
    myems-web/src/components/utilities/Display.js on lines 147..152
    myems-web/src/components/utilities/Display.js on lines 153..158
    myems-web/src/components/utilities/Display.js on lines 159..164
    myems-web/src/components/utilities/Display.js on lines 165..170
    myems-web/src/components/utilities/Display.js on lines 171..176

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

                  <tr>
                    <td>Hidden only on xl</td>
                    <td>
                      <code>.d-xl-none</code>
                    </td>
    Severity: Major
    Found in myems-web/src/components/utilities/Display.js and 11 other locations - About 50 mins to fix
    myems-web/src/components/utilities/Display.js on lines 111..116
    myems-web/src/components/utilities/Display.js on lines 117..122
    myems-web/src/components/utilities/Display.js on lines 123..128
    myems-web/src/components/utilities/Display.js on lines 129..134
    myems-web/src/components/utilities/Display.js on lines 135..140
    myems-web/src/components/utilities/Display.js on lines 147..152
    myems-web/src/components/utilities/Display.js on lines 153..158
    myems-web/src/components/utilities/Display.js on lines 159..164
    myems-web/src/components/utilities/Display.js on lines 165..170
    myems-web/src/components/utilities/Display.js on lines 171..176
    myems-web/src/components/utilities/Display.js on lines 177..182

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

              <p>
                Display utility classes that apply to all breakpoints, from <code>xs </code>to <code>xl</code>, have no
                breakpoint abbreviation in them. This is because those classes are applied from <code>min-width: 0; </code>
                and up, and thus are not bound by a media query. The remaining breakpoints, however, do include a breakpoint
                abbreviation.
    Severity: Major
    Found in myems-web/src/components/utilities/Display.js and 10 other locations - About 50 mins to fix
    myems-web/src/components/page/EventDetail.js on lines 39..43
    myems-web/src/components/utilities/Borders.js on lines 113..115
    myems-web/src/components/utilities/Borders.js on lines 116..118
    myems-web/src/components/utilities/Display.js on lines 190..193
    myems-web/src/components/utilities/Spacing.js on lines 44..46
    myems-web/src/components/utilities/Spacing.js on lines 47..49
    myems-web/src/components/utilities/Spacing.js on lines 50..52
    myems-web/src/components/utilities/Spacing.js on lines 53..55
    myems-web/src/components/utilities/Spacing.js on lines 56..58
    myems-web/src/components/utilities/Spacing.js on lines 59..61

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

                  <tr>
                    <td>Visible only on sm</td>
                    <td>
                      <code>.d-none .d-sm-block .d-md-none</code>
                    </td>
    Severity: Major
    Found in myems-web/src/components/utilities/Display.js and 11 other locations - About 50 mins to fix
    myems-web/src/components/utilities/Display.js on lines 111..116
    myems-web/src/components/utilities/Display.js on lines 117..122
    myems-web/src/components/utilities/Display.js on lines 123..128
    myems-web/src/components/utilities/Display.js on lines 129..134
    myems-web/src/components/utilities/Display.js on lines 135..140
    myems-web/src/components/utilities/Display.js on lines 141..146
    myems-web/src/components/utilities/Display.js on lines 147..152
    myems-web/src/components/utilities/Display.js on lines 153..158
    myems-web/src/components/utilities/Display.js on lines 165..170
    myems-web/src/components/utilities/Display.js on lines 171..176
    myems-web/src/components/utilities/Display.js on lines 177..182

    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

    There are no issues that match your filters.

    Category
    Status