myems-web/src/data/e-commerce/customers.js

Summary

Maintainability
F
3 days
Test Coverage

File customers.js has 337 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import {v4 as uuid} from 'uuid';
import team2 from '../../assets/img/team/2.jpg';
import team3 from '../../assets/img/team/3.jpg';
import team4 from '../../assets/img/team/4.jpg';
import team13 from '../../assets/img/team/13.jpg';
Severity: Minor
Found in myems-web/src/data/e-commerce/customers.js - About 4 hrs to fix

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

      {
        id: uuid(),
        name: 'Ara Mueller',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 11 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 25..37
    myems-web/src/data/e-commerce/customers.js on lines 51..63
    myems-web/src/data/e-commerce/customers.js on lines 64..76
    myems-web/src/data/e-commerce/customers.js on lines 90..102
    myems-web/src/data/e-commerce/customers.js on lines 103..115
    myems-web/src/data/e-commerce/customers.js on lines 142..154
    myems-web/src/data/e-commerce/customers.js on lines 155..167
    myems-web/src/data/e-commerce/customers.js on lines 207..219
    myems-web/src/data/e-commerce/customers.js on lines 220..232
    myems-web/src/data/e-commerce/customers.js on lines 259..271
    myems-web/src/data/e-commerce/customers.js on lines 272..284

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

    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

      {
        id: uuid(),
        name: 'Laverne Haag',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 11 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 25..37
    myems-web/src/data/e-commerce/customers.js on lines 51..63
    myems-web/src/data/e-commerce/customers.js on lines 64..76
    myems-web/src/data/e-commerce/customers.js on lines 90..102
    myems-web/src/data/e-commerce/customers.js on lines 103..115
    myems-web/src/data/e-commerce/customers.js on lines 142..154
    myems-web/src/data/e-commerce/customers.js on lines 155..167
    myems-web/src/data/e-commerce/customers.js on lines 181..193
    myems-web/src/data/e-commerce/customers.js on lines 220..232
    myems-web/src/data/e-commerce/customers.js on lines 259..271
    myems-web/src/data/e-commerce/customers.js on lines 272..284

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

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

      {
        id: uuid(),
        name: 'Estell Pollich',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 12 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 12..24
    myems-web/src/data/e-commerce/customers.js on lines 38..50
    myems-web/src/data/e-commerce/customers.js on lines 77..89
    myems-web/src/data/e-commerce/customers.js on lines 116..128
    myems-web/src/data/e-commerce/customers.js on lines 129..141
    myems-web/src/data/e-commerce/customers.js on lines 194..206
    myems-web/src/data/e-commerce/customers.js on lines 233..245
    myems-web/src/data/e-commerce/customers.js on lines 246..258
    myems-web/src/data/e-commerce/customers.js on lines 285..297
    myems-web/src/data/e-commerce/customers.js on lines 298..310
    myems-web/src/data/e-commerce/customers.js on lines 311..323
    myems-web/src/data/e-commerce/customers.js on lines 324..336

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

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

      {
        id: uuid(),
        name: 'Brenda Watsica',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 12 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 12..24
    myems-web/src/data/e-commerce/customers.js on lines 38..50
    myems-web/src/data/e-commerce/customers.js on lines 77..89
    myems-web/src/data/e-commerce/customers.js on lines 116..128
    myems-web/src/data/e-commerce/customers.js on lines 129..141
    myems-web/src/data/e-commerce/customers.js on lines 168..180
    myems-web/src/data/e-commerce/customers.js on lines 194..206
    myems-web/src/data/e-commerce/customers.js on lines 233..245
    myems-web/src/data/e-commerce/customers.js on lines 246..258
    myems-web/src/data/e-commerce/customers.js on lines 285..297
    myems-web/src/data/e-commerce/customers.js on lines 311..323
    myems-web/src/data/e-commerce/customers.js on lines 324..336

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

    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

      {
        id: uuid(),
        name: 'Brandon Bednar',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 11 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 25..37
    myems-web/src/data/e-commerce/customers.js on lines 51..63
    myems-web/src/data/e-commerce/customers.js on lines 64..76
    myems-web/src/data/e-commerce/customers.js on lines 90..102
    myems-web/src/data/e-commerce/customers.js on lines 103..115
    myems-web/src/data/e-commerce/customers.js on lines 142..154
    myems-web/src/data/e-commerce/customers.js on lines 155..167
    myems-web/src/data/e-commerce/customers.js on lines 181..193
    myems-web/src/data/e-commerce/customers.js on lines 207..219
    myems-web/src/data/e-commerce/customers.js on lines 259..271
    myems-web/src/data/e-commerce/customers.js on lines 272..284

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

    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

      {
        id: uuid(),
        name: 'Antony Hopkins',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 11 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 25..37
    myems-web/src/data/e-commerce/customers.js on lines 64..76
    myems-web/src/data/e-commerce/customers.js on lines 90..102
    myems-web/src/data/e-commerce/customers.js on lines 103..115
    myems-web/src/data/e-commerce/customers.js on lines 142..154
    myems-web/src/data/e-commerce/customers.js on lines 155..167
    myems-web/src/data/e-commerce/customers.js on lines 181..193
    myems-web/src/data/e-commerce/customers.js on lines 207..219
    myems-web/src/data/e-commerce/customers.js on lines 220..232
    myems-web/src/data/e-commerce/customers.js on lines 259..271
    myems-web/src/data/e-commerce/customers.js on lines 272..284

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

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

      {
        id: uuid(),
        name: 'Dimitri Boehm',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 12 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 12..24
    myems-web/src/data/e-commerce/customers.js on lines 38..50
    myems-web/src/data/e-commerce/customers.js on lines 77..89
    myems-web/src/data/e-commerce/customers.js on lines 116..128
    myems-web/src/data/e-commerce/customers.js on lines 129..141
    myems-web/src/data/e-commerce/customers.js on lines 168..180
    myems-web/src/data/e-commerce/customers.js on lines 194..206
    myems-web/src/data/e-commerce/customers.js on lines 246..258
    myems-web/src/data/e-commerce/customers.js on lines 285..297
    myems-web/src/data/e-commerce/customers.js on lines 298..310
    myems-web/src/data/e-commerce/customers.js on lines 311..323
    myems-web/src/data/e-commerce/customers.js on lines 324..336

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

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

      {
        id: uuid(),
        name: 'Lucienne Blick',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 12 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 12..24
    myems-web/src/data/e-commerce/customers.js on lines 38..50
    myems-web/src/data/e-commerce/customers.js on lines 77..89
    myems-web/src/data/e-commerce/customers.js on lines 116..128
    myems-web/src/data/e-commerce/customers.js on lines 129..141
    myems-web/src/data/e-commerce/customers.js on lines 168..180
    myems-web/src/data/e-commerce/customers.js on lines 233..245
    myems-web/src/data/e-commerce/customers.js on lines 246..258
    myems-web/src/data/e-commerce/customers.js on lines 285..297
    myems-web/src/data/e-commerce/customers.js on lines 298..310
    myems-web/src/data/e-commerce/customers.js on lines 311..323
    myems-web/src/data/e-commerce/customers.js on lines 324..336

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

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

      {
        id: uuid(),
        name: 'Miles Haley',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 12 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 12..24
    myems-web/src/data/e-commerce/customers.js on lines 38..50
    myems-web/src/data/e-commerce/customers.js on lines 77..89
    myems-web/src/data/e-commerce/customers.js on lines 116..128
    myems-web/src/data/e-commerce/customers.js on lines 129..141
    myems-web/src/data/e-commerce/customers.js on lines 168..180
    myems-web/src/data/e-commerce/customers.js on lines 194..206
    myems-web/src/data/e-commerce/customers.js on lines 233..245
    myems-web/src/data/e-commerce/customers.js on lines 246..258
    myems-web/src/data/e-commerce/customers.js on lines 298..310
    myems-web/src/data/e-commerce/customers.js on lines 311..323
    myems-web/src/data/e-commerce/customers.js on lines 324..336

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

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

      {
        id: uuid(),
        name: 'Garry Brainstrow',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 12 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 12..24
    myems-web/src/data/e-commerce/customers.js on lines 38..50
    myems-web/src/data/e-commerce/customers.js on lines 77..89
    myems-web/src/data/e-commerce/customers.js on lines 116..128
    myems-web/src/data/e-commerce/customers.js on lines 129..141
    myems-web/src/data/e-commerce/customers.js on lines 168..180
    myems-web/src/data/e-commerce/customers.js on lines 194..206
    myems-web/src/data/e-commerce/customers.js on lines 233..245
    myems-web/src/data/e-commerce/customers.js on lines 246..258
    myems-web/src/data/e-commerce/customers.js on lines 285..297
    myems-web/src/data/e-commerce/customers.js on lines 298..310
    myems-web/src/data/e-commerce/customers.js on lines 311..323

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

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

      {
        id: uuid(),
        name: 'Raymond Mims',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 12 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 12..24
    myems-web/src/data/e-commerce/customers.js on lines 38..50
    myems-web/src/data/e-commerce/customers.js on lines 116..128
    myems-web/src/data/e-commerce/customers.js on lines 129..141
    myems-web/src/data/e-commerce/customers.js on lines 168..180
    myems-web/src/data/e-commerce/customers.js on lines 194..206
    myems-web/src/data/e-commerce/customers.js on lines 233..245
    myems-web/src/data/e-commerce/customers.js on lines 246..258
    myems-web/src/data/e-commerce/customers.js on lines 285..297
    myems-web/src/data/e-commerce/customers.js on lines 298..310
    myems-web/src/data/e-commerce/customers.js on lines 311..323
    myems-web/src/data/e-commerce/customers.js on lines 324..336

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

    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

      {
        id: uuid(),
        name: 'Kristine Cadena',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 11 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 25..37
    myems-web/src/data/e-commerce/customers.js on lines 51..63
    myems-web/src/data/e-commerce/customers.js on lines 64..76
    myems-web/src/data/e-commerce/customers.js on lines 90..102
    myems-web/src/data/e-commerce/customers.js on lines 142..154
    myems-web/src/data/e-commerce/customers.js on lines 155..167
    myems-web/src/data/e-commerce/customers.js on lines 181..193
    myems-web/src/data/e-commerce/customers.js on lines 207..219
    myems-web/src/data/e-commerce/customers.js on lines 220..232
    myems-web/src/data/e-commerce/customers.js on lines 259..271
    myems-web/src/data/e-commerce/customers.js on lines 272..284

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

    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

      {
        id: uuid(),
        name: 'Kathryn Love',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 11 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 25..37
    myems-web/src/data/e-commerce/customers.js on lines 51..63
    myems-web/src/data/e-commerce/customers.js on lines 64..76
    myems-web/src/data/e-commerce/customers.js on lines 90..102
    myems-web/src/data/e-commerce/customers.js on lines 103..115
    myems-web/src/data/e-commerce/customers.js on lines 142..154
    myems-web/src/data/e-commerce/customers.js on lines 181..193
    myems-web/src/data/e-commerce/customers.js on lines 207..219
    myems-web/src/data/e-commerce/customers.js on lines 220..232
    myems-web/src/data/e-commerce/customers.js on lines 259..271
    myems-web/src/data/e-commerce/customers.js on lines 272..284

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

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

      {
        id: uuid(),
        name: 'Ricky Antony',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 12 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 38..50
    myems-web/src/data/e-commerce/customers.js on lines 77..89
    myems-web/src/data/e-commerce/customers.js on lines 116..128
    myems-web/src/data/e-commerce/customers.js on lines 129..141
    myems-web/src/data/e-commerce/customers.js on lines 168..180
    myems-web/src/data/e-commerce/customers.js on lines 194..206
    myems-web/src/data/e-commerce/customers.js on lines 233..245
    myems-web/src/data/e-commerce/customers.js on lines 246..258
    myems-web/src/data/e-commerce/customers.js on lines 285..297
    myems-web/src/data/e-commerce/customers.js on lines 298..310
    myems-web/src/data/e-commerce/customers.js on lines 311..323
    myems-web/src/data/e-commerce/customers.js on lines 324..336

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

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

      {
        id: uuid(),
        name: 'Rowen Atkinson',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 12 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 12..24
    myems-web/src/data/e-commerce/customers.js on lines 77..89
    myems-web/src/data/e-commerce/customers.js on lines 116..128
    myems-web/src/data/e-commerce/customers.js on lines 129..141
    myems-web/src/data/e-commerce/customers.js on lines 168..180
    myems-web/src/data/e-commerce/customers.js on lines 194..206
    myems-web/src/data/e-commerce/customers.js on lines 233..245
    myems-web/src/data/e-commerce/customers.js on lines 246..258
    myems-web/src/data/e-commerce/customers.js on lines 285..297
    myems-web/src/data/e-commerce/customers.js on lines 298..310
    myems-web/src/data/e-commerce/customers.js on lines 311..323
    myems-web/src/data/e-commerce/customers.js on lines 324..336

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

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

      {
        id: uuid(),
        name: 'Trace Farrell',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 12 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 12..24
    myems-web/src/data/e-commerce/customers.js on lines 38..50
    myems-web/src/data/e-commerce/customers.js on lines 77..89
    myems-web/src/data/e-commerce/customers.js on lines 116..128
    myems-web/src/data/e-commerce/customers.js on lines 129..141
    myems-web/src/data/e-commerce/customers.js on lines 168..180
    myems-web/src/data/e-commerce/customers.js on lines 194..206
    myems-web/src/data/e-commerce/customers.js on lines 233..245
    myems-web/src/data/e-commerce/customers.js on lines 285..297
    myems-web/src/data/e-commerce/customers.js on lines 298..310
    myems-web/src/data/e-commerce/customers.js on lines 311..323
    myems-web/src/data/e-commerce/customers.js on lines 324..336

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

    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

      {
        id: uuid(),
        name: 'Estell Nienow',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 11 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 25..37
    myems-web/src/data/e-commerce/customers.js on lines 51..63
    myems-web/src/data/e-commerce/customers.js on lines 64..76
    myems-web/src/data/e-commerce/customers.js on lines 90..102
    myems-web/src/data/e-commerce/customers.js on lines 103..115
    myems-web/src/data/e-commerce/customers.js on lines 142..154
    myems-web/src/data/e-commerce/customers.js on lines 155..167
    myems-web/src/data/e-commerce/customers.js on lines 181..193
    myems-web/src/data/e-commerce/customers.js on lines 207..219
    myems-web/src/data/e-commerce/customers.js on lines 220..232
    myems-web/src/data/e-commerce/customers.js on lines 272..284

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

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

      {
        id: uuid(),
        name: 'Marie Cohen',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 12 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 12..24
    myems-web/src/data/e-commerce/customers.js on lines 38..50
    myems-web/src/data/e-commerce/customers.js on lines 77..89
    myems-web/src/data/e-commerce/customers.js on lines 116..128
    myems-web/src/data/e-commerce/customers.js on lines 168..180
    myems-web/src/data/e-commerce/customers.js on lines 194..206
    myems-web/src/data/e-commerce/customers.js on lines 233..245
    myems-web/src/data/e-commerce/customers.js on lines 246..258
    myems-web/src/data/e-commerce/customers.js on lines 285..297
    myems-web/src/data/e-commerce/customers.js on lines 298..310
    myems-web/src/data/e-commerce/customers.js on lines 311..323
    myems-web/src/data/e-commerce/customers.js on lines 324..336

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

    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

      {
        id: uuid(),
        name: 'Emma Watson',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 11 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 51..63
    myems-web/src/data/e-commerce/customers.js on lines 64..76
    myems-web/src/data/e-commerce/customers.js on lines 90..102
    myems-web/src/data/e-commerce/customers.js on lines 103..115
    myems-web/src/data/e-commerce/customers.js on lines 142..154
    myems-web/src/data/e-commerce/customers.js on lines 155..167
    myems-web/src/data/e-commerce/customers.js on lines 181..193
    myems-web/src/data/e-commerce/customers.js on lines 207..219
    myems-web/src/data/e-commerce/customers.js on lines 220..232
    myems-web/src/data/e-commerce/customers.js on lines 259..271
    myems-web/src/data/e-commerce/customers.js on lines 272..284

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

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

      {
        id: uuid(),
        name: 'Suzanne Martinez',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 12 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 12..24
    myems-web/src/data/e-commerce/customers.js on lines 38..50
    myems-web/src/data/e-commerce/customers.js on lines 77..89
    myems-web/src/data/e-commerce/customers.js on lines 129..141
    myems-web/src/data/e-commerce/customers.js on lines 168..180
    myems-web/src/data/e-commerce/customers.js on lines 194..206
    myems-web/src/data/e-commerce/customers.js on lines 233..245
    myems-web/src/data/e-commerce/customers.js on lines 246..258
    myems-web/src/data/e-commerce/customers.js on lines 285..297
    myems-web/src/data/e-commerce/customers.js on lines 298..310
    myems-web/src/data/e-commerce/customers.js on lines 311..323
    myems-web/src/data/e-commerce/customers.js on lines 324..336

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

    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

      {
        id: uuid(),
        name: 'Daisha Howe',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 11 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 25..37
    myems-web/src/data/e-commerce/customers.js on lines 51..63
    myems-web/src/data/e-commerce/customers.js on lines 64..76
    myems-web/src/data/e-commerce/customers.js on lines 90..102
    myems-web/src/data/e-commerce/customers.js on lines 103..115
    myems-web/src/data/e-commerce/customers.js on lines 142..154
    myems-web/src/data/e-commerce/customers.js on lines 155..167
    myems-web/src/data/e-commerce/customers.js on lines 181..193
    myems-web/src/data/e-commerce/customers.js on lines 207..219
    myems-web/src/data/e-commerce/customers.js on lines 220..232
    myems-web/src/data/e-commerce/customers.js on lines 259..271

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

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

      {
        id: uuid(),
        name: "Ellie O'Reilly",
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 12 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 12..24
    myems-web/src/data/e-commerce/customers.js on lines 38..50
    myems-web/src/data/e-commerce/customers.js on lines 77..89
    myems-web/src/data/e-commerce/customers.js on lines 116..128
    myems-web/src/data/e-commerce/customers.js on lines 129..141
    myems-web/src/data/e-commerce/customers.js on lines 168..180
    myems-web/src/data/e-commerce/customers.js on lines 194..206
    myems-web/src/data/e-commerce/customers.js on lines 233..245
    myems-web/src/data/e-commerce/customers.js on lines 246..258
    myems-web/src/data/e-commerce/customers.js on lines 285..297
    myems-web/src/data/e-commerce/customers.js on lines 298..310
    myems-web/src/data/e-commerce/customers.js on lines 324..336

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

    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

      {
        id: uuid(),
        name: 'Jennifer Schramm',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 11 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 25..37
    myems-web/src/data/e-commerce/customers.js on lines 51..63
    myems-web/src/data/e-commerce/customers.js on lines 90..102
    myems-web/src/data/e-commerce/customers.js on lines 103..115
    myems-web/src/data/e-commerce/customers.js on lines 142..154
    myems-web/src/data/e-commerce/customers.js on lines 155..167
    myems-web/src/data/e-commerce/customers.js on lines 181..193
    myems-web/src/data/e-commerce/customers.js on lines 207..219
    myems-web/src/data/e-commerce/customers.js on lines 220..232
    myems-web/src/data/e-commerce/customers.js on lines 259..271
    myems-web/src/data/e-commerce/customers.js on lines 272..284

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

    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

      {
        id: uuid(),
        name: 'Michael Jenkins',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 11 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 25..37
    myems-web/src/data/e-commerce/customers.js on lines 51..63
    myems-web/src/data/e-commerce/customers.js on lines 64..76
    myems-web/src/data/e-commerce/customers.js on lines 103..115
    myems-web/src/data/e-commerce/customers.js on lines 142..154
    myems-web/src/data/e-commerce/customers.js on lines 155..167
    myems-web/src/data/e-commerce/customers.js on lines 181..193
    myems-web/src/data/e-commerce/customers.js on lines 207..219
    myems-web/src/data/e-commerce/customers.js on lines 220..232
    myems-web/src/data/e-commerce/customers.js on lines 259..271
    myems-web/src/data/e-commerce/customers.js on lines 272..284

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

    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

      {
        id: uuid(),
        name: 'Michael Scates',
        avatar: {
          size: 'xl',
    Severity: Major
    Found in myems-web/src/data/e-commerce/customers.js and 11 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/customers.js on lines 25..37
    myems-web/src/data/e-commerce/customers.js on lines 51..63
    myems-web/src/data/e-commerce/customers.js on lines 64..76
    myems-web/src/data/e-commerce/customers.js on lines 90..102
    myems-web/src/data/e-commerce/customers.js on lines 103..115
    myems-web/src/data/e-commerce/customers.js on lines 155..167
    myems-web/src/data/e-commerce/customers.js on lines 181..193
    myems-web/src/data/e-commerce/customers.js on lines 207..219
    myems-web/src/data/e-commerce/customers.js on lines 220..232
    myems-web/src/data/e-commerce/customers.js on lines 259..271
    myems-web/src/data/e-commerce/customers.js on lines 272..284

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

    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