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

Summary

Maintainability
F
4 days
Test Coverage

File orders.js has 304 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import {v4 as uuid} from 'uuid';

const result = [
  {
    id: uuid().split('-')[0],
Severity: Minor
Found in myems-web/src/data/e-commerce/orders.js - About 3 hrs to fix

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

      {
        id: uuid().split('-')[0],
        // id: 194,
        name: 'Simeon Harber',
        email: 'simeon@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 195,
        name: 'Lavon Haley',
        email: 'lavon@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 202,
        name: 'Brenda Watsica',
        email: 'watsica@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 203,
        name: "Ellie O'Reilly",
        email: 'ellie@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 189,
        name: 'Thomas Stephenson',
        email: 'Stephenson@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 191,
        name: 'David Peters',
        email: 'peter@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 206,
        name: 'Ara Mueller',
        email: 'ara@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 209,
        name: 'Brandon Bednar',
        email: 'bednar@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 187,
        name: 'Cristofer Henric',
        email: 'cristofer@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 188,
        name: 'Brate Lee',
        email: 'lee@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 201,
        name: 'Miles Haley',
        email: 'haley@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 207,
        name: 'Lucienne Blick',
        email: 'blick@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 192,
        name: 'Jennifer Johnson',
        email: 'jennifer@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 193,
        name: ' Demarcus Okuneva',
        email: 'okuneva@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 198,
        name: 'Trace Farrell',
        email: 'trace@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 185,
        name: 'Rocky Zampa',
        email: 'rocky@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 204,
        name: 'Garry Brainstrow',
        email: 'garry@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 181,
        name: 'Ricky Antony',
        email: 'ricky@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 182,
        name: 'Kin Rossow',
        email: 'kin@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 196,
        name: 'Ashley Kirlin',
        email: 'ashley@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 199,
        name: 'Estell Nienow',
        email: 'nienow@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 197,
        name: 'Johnnie Considine',
        email: 'johnnie@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 183,
        name: 'Merry Diana',
        email: 'merry@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 190,
        name: 'Evie Singh',
        email: 'eviewsing@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 186,
        name: 'Ricky John',
        email: 'ricky@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 200,
        name: 'Daisha Howe',
        email: 'howe@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 208,
        name: 'Laverne Haag',
        email: 'haag@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 210,
        name: 'Dimitri Boehm',
        email: 'dimitri@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322

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

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

      {
        id: uuid().split('-')[0],
        // id: 184,
        name: 'Bucky Robert',
        email: 'bucky@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 268..278
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

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

      {
        id: uuid().split('-')[0],
        // id: 205,
        name: 'Estell Pollich',
        email: 'estell@example.com',
    Severity: Major
    Found in myems-web/src/data/e-commerce/orders.js and 29 other locations - About 1 hr to fix
    myems-web/src/data/e-commerce/orders.js on lines 4..14
    myems-web/src/data/e-commerce/orders.js on lines 15..25
    myems-web/src/data/e-commerce/orders.js on lines 26..36
    myems-web/src/data/e-commerce/orders.js on lines 37..47
    myems-web/src/data/e-commerce/orders.js on lines 48..58
    myems-web/src/data/e-commerce/orders.js on lines 59..69
    myems-web/src/data/e-commerce/orders.js on lines 70..80
    myems-web/src/data/e-commerce/orders.js on lines 81..91
    myems-web/src/data/e-commerce/orders.js on lines 92..102
    myems-web/src/data/e-commerce/orders.js on lines 103..113
    myems-web/src/data/e-commerce/orders.js on lines 114..124
    myems-web/src/data/e-commerce/orders.js on lines 125..135
    myems-web/src/data/e-commerce/orders.js on lines 136..146
    myems-web/src/data/e-commerce/orders.js on lines 147..157
    myems-web/src/data/e-commerce/orders.js on lines 158..168
    myems-web/src/data/e-commerce/orders.js on lines 169..179
    myems-web/src/data/e-commerce/orders.js on lines 180..190
    myems-web/src/data/e-commerce/orders.js on lines 191..201
    myems-web/src/data/e-commerce/orders.js on lines 202..212
    myems-web/src/data/e-commerce/orders.js on lines 213..223
    myems-web/src/data/e-commerce/orders.js on lines 224..234
    myems-web/src/data/e-commerce/orders.js on lines 235..245
    myems-web/src/data/e-commerce/orders.js on lines 246..256
    myems-web/src/data/e-commerce/orders.js on lines 257..267
    myems-web/src/data/e-commerce/orders.js on lines 279..289
    myems-web/src/data/e-commerce/orders.js on lines 290..300
    myems-web/src/data/e-commerce/orders.js on lines 301..311
    myems-web/src/data/e-commerce/orders.js on lines 312..322
    myems-web/src/data/e-commerce/orders.js on lines 323..333

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

    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