Showing 10,536 of 10,536 total issues

Function Dropzone has 2071 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function (_Emitter) {
  _inherits(Dropzone, _Emitter);

  _createClass(Dropzone, null, [{
    key: "initClass",
Severity: Major
Found in myems-admin/js/plugins/dropzone/dropzone.js - About 1 wk to fix

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

    class SpaceVirtualMeterCollection:
        def __init__(self):
            """Initializes Class"""
            pass
    
    
    Severity: Major
    Found in myems-api/core/space.py and 11 other locations - About 1 wk to fix
    myems-api/core/shopfloor.py on lines 634..759
    myems-api/core/shopfloor.py on lines 822..947
    myems-api/core/shopfloor.py on lines 1374..1499
    myems-api/core/space.py on lines 1344..1469
    myems-api/core/space.py on lines 1710..1835
    myems-api/core/store.py on lines 577..702
    myems-api/core/store.py on lines 765..890
    myems-api/core/store.py on lines 1317..1442
    myems-api/core/tenant.py on lines 675..802
    myems-api/core/tenant.py on lines 865..992
    myems-api/core/tenant.py on lines 1423..1550

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

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

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

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

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

    Refactorings

    Further Reading

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

    class StoreOfflineMeterCollection:
        def __init__(self):
            """Initializes Class"""
            pass
    
    
    Severity: Major
    Found in myems-api/core/store.py and 11 other locations - About 1 wk to fix
    myems-api/core/shopfloor.py on lines 634..759
    myems-api/core/shopfloor.py on lines 822..947
    myems-api/core/shopfloor.py on lines 1374..1499
    myems-api/core/space.py on lines 1344..1469
    myems-api/core/space.py on lines 1710..1835
    myems-api/core/space.py on lines 2787..2912
    myems-api/core/store.py on lines 577..702
    myems-api/core/store.py on lines 1317..1442
    myems-api/core/tenant.py on lines 675..802
    myems-api/core/tenant.py on lines 865..992
    myems-api/core/tenant.py on lines 1423..1550

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

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

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

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

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

    Refactorings

    Further Reading

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

    class TenantVirtualMeterCollection:
        def __init__(self):
            """Initializes Class"""
            pass
    
    
    Severity: Major
    Found in myems-api/core/tenant.py and 11 other locations - About 1 wk to fix
    myems-api/core/shopfloor.py on lines 634..759
    myems-api/core/shopfloor.py on lines 822..947
    myems-api/core/shopfloor.py on lines 1374..1499
    myems-api/core/space.py on lines 1344..1469
    myems-api/core/space.py on lines 1710..1835
    myems-api/core/space.py on lines 2787..2912
    myems-api/core/store.py on lines 577..702
    myems-api/core/store.py on lines 765..890
    myems-api/core/store.py on lines 1317..1442
    myems-api/core/tenant.py on lines 675..802
    myems-api/core/tenant.py on lines 865..992

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

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

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

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

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

    Refactorings

    Further Reading

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

    class ShopfloorOfflineMeterCollection:
        def __init__(self):
            """Initializes ShopfloorOfflineMeterCollection"""
            pass
    
    
    Severity: Major
    Found in myems-api/core/shopfloor.py and 11 other locations - About 1 wk to fix
    myems-api/core/shopfloor.py on lines 634..759
    myems-api/core/shopfloor.py on lines 1374..1499
    myems-api/core/space.py on lines 1344..1469
    myems-api/core/space.py on lines 1710..1835
    myems-api/core/space.py on lines 2787..2912
    myems-api/core/store.py on lines 577..702
    myems-api/core/store.py on lines 765..890
    myems-api/core/store.py on lines 1317..1442
    myems-api/core/tenant.py on lines 675..802
    myems-api/core/tenant.py on lines 865..992
    myems-api/core/tenant.py on lines 1423..1550

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

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

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

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

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

    Refactorings

    Further Reading

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

    class StoreVirtualMeterCollection:
        def __init__(self):
            """Initializes Class"""
            pass
    
    
    Severity: Major
    Found in myems-api/core/store.py and 11 other locations - About 1 wk to fix
    myems-api/core/shopfloor.py on lines 634..759
    myems-api/core/shopfloor.py on lines 822..947
    myems-api/core/shopfloor.py on lines 1374..1499
    myems-api/core/space.py on lines 1344..1469
    myems-api/core/space.py on lines 1710..1835
    myems-api/core/space.py on lines 2787..2912
    myems-api/core/store.py on lines 577..702
    myems-api/core/store.py on lines 765..890
    myems-api/core/tenant.py on lines 675..802
    myems-api/core/tenant.py on lines 865..992
    myems-api/core/tenant.py on lines 1423..1550

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

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

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

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

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

    Refactorings

    Further Reading

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

    class ShopfloorVirtualMeterCollection:
        def __init__(self):
            """Initializes ShopfloorVirtualMeterCollection"""
            pass
    
    
    Severity: Major
    Found in myems-api/core/shopfloor.py and 11 other locations - About 1 wk to fix
    myems-api/core/shopfloor.py on lines 634..759
    myems-api/core/shopfloor.py on lines 822..947
    myems-api/core/space.py on lines 1344..1469
    myems-api/core/space.py on lines 1710..1835
    myems-api/core/space.py on lines 2787..2912
    myems-api/core/store.py on lines 577..702
    myems-api/core/store.py on lines 765..890
    myems-api/core/store.py on lines 1317..1442
    myems-api/core/tenant.py on lines 675..802
    myems-api/core/tenant.py on lines 865..992
    myems-api/core/tenant.py on lines 1423..1550

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

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

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

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

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

    Refactorings

    Further Reading

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

    class SpaceMeterCollection:
        def __init__(self):
            """Initializes Class"""
            pass
    
    
    Severity: Major
    Found in myems-api/core/space.py and 11 other locations - About 1 wk to fix
    myems-api/core/shopfloor.py on lines 634..759
    myems-api/core/shopfloor.py on lines 822..947
    myems-api/core/shopfloor.py on lines 1374..1499
    myems-api/core/space.py on lines 1710..1835
    myems-api/core/space.py on lines 2787..2912
    myems-api/core/store.py on lines 577..702
    myems-api/core/store.py on lines 765..890
    myems-api/core/store.py on lines 1317..1442
    myems-api/core/tenant.py on lines 675..802
    myems-api/core/tenant.py on lines 865..992
    myems-api/core/tenant.py on lines 1423..1550

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

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

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

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

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

    Refactorings

    Further Reading

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

    class TenantOfflineMeterCollection:
        def __init__(self):
            """Initializes Class"""
            pass
    
    
    Severity: Major
    Found in myems-api/core/tenant.py and 11 other locations - About 1 wk to fix
    myems-api/core/shopfloor.py on lines 634..759
    myems-api/core/shopfloor.py on lines 822..947
    myems-api/core/shopfloor.py on lines 1374..1499
    myems-api/core/space.py on lines 1344..1469
    myems-api/core/space.py on lines 1710..1835
    myems-api/core/space.py on lines 2787..2912
    myems-api/core/store.py on lines 577..702
    myems-api/core/store.py on lines 765..890
    myems-api/core/store.py on lines 1317..1442
    myems-api/core/tenant.py on lines 675..802
    myems-api/core/tenant.py on lines 1423..1550

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

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

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

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

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

    Refactorings

    Further Reading

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

    class ShopfloorMeterCollection:
        def __init__(self):
            """Initializes ShopfloorMeterCollection"""
            pass
    
    
    Severity: Major
    Found in myems-api/core/shopfloor.py and 11 other locations - About 1 wk to fix
    myems-api/core/shopfloor.py on lines 822..947
    myems-api/core/shopfloor.py on lines 1374..1499
    myems-api/core/space.py on lines 1344..1469
    myems-api/core/space.py on lines 1710..1835
    myems-api/core/space.py on lines 2787..2912
    myems-api/core/store.py on lines 577..702
    myems-api/core/store.py on lines 765..890
    myems-api/core/store.py on lines 1317..1442
    myems-api/core/tenant.py on lines 675..802
    myems-api/core/tenant.py on lines 865..992
    myems-api/core/tenant.py on lines 1423..1550

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

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

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

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

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

    Refactorings

    Further Reading

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

    class StoreMeterCollection:
        def __init__(self):
            """"Initializes StoreMeterCollection"""
            pass
    
    
    Severity: Major
    Found in myems-api/core/store.py and 11 other locations - About 1 wk to fix
    myems-api/core/shopfloor.py on lines 634..759
    myems-api/core/shopfloor.py on lines 822..947
    myems-api/core/shopfloor.py on lines 1374..1499
    myems-api/core/space.py on lines 1344..1469
    myems-api/core/space.py on lines 1710..1835
    myems-api/core/space.py on lines 2787..2912
    myems-api/core/store.py on lines 765..890
    myems-api/core/store.py on lines 1317..1442
    myems-api/core/tenant.py on lines 675..802
    myems-api/core/tenant.py on lines 865..992
    myems-api/core/tenant.py on lines 1423..1550

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

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

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

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

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

    Refactorings

    Further Reading

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

    class TenantMeterCollection:
        def __init__(self):
            """Initializes Class"""
            pass
    
    
    Severity: Major
    Found in myems-api/core/tenant.py and 11 other locations - About 1 wk to fix
    myems-api/core/shopfloor.py on lines 634..759
    myems-api/core/shopfloor.py on lines 822..947
    myems-api/core/shopfloor.py on lines 1374..1499
    myems-api/core/space.py on lines 1344..1469
    myems-api/core/space.py on lines 1710..1835
    myems-api/core/space.py on lines 2787..2912
    myems-api/core/store.py on lines 577..702
    myems-api/core/store.py on lines 765..890
    myems-api/core/store.py on lines 1317..1442
    myems-api/core/tenant.py on lines 865..992
    myems-api/core/tenant.py on lines 1423..1550

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

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

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

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

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

    Refactorings

    Further Reading

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

    class SpaceOfflineMeterCollection:
        def __init__(self):
            """Initializes Class"""
            pass
    
    
    Severity: Major
    Found in myems-api/core/space.py and 11 other locations - About 1 wk to fix
    myems-api/core/shopfloor.py on lines 634..759
    myems-api/core/shopfloor.py on lines 822..947
    myems-api/core/shopfloor.py on lines 1374..1499
    myems-api/core/space.py on lines 1344..1469
    myems-api/core/space.py on lines 2787..2912
    myems-api/core/store.py on lines 577..702
    myems-api/core/store.py on lines 765..890
    myems-api/core/store.py on lines 1317..1442
    myems-api/core/tenant.py on lines 675..802
    myems-api/core/tenant.py on lines 865..992
    myems-api/core/tenant.py on lines 1423..1550

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

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

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

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

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

    Refactorings

    Further Reading

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

    class SpacePointCollection:
        def __init__(self):
            """Initializes Class"""
            pass
    
    
    Severity: Major
    Found in myems-api/core/space.py and 3 other locations - About 1 wk to fix
    myems-api/core/shopfloor.py on lines 1011..1135
    myems-api/core/store.py on lines 954..1078
    myems-api/core/tenant.py on lines 1056..1182

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

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

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

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

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

    Refactorings

    Further Reading

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

    class StorePointCollection:
        def __init__(self):
            """Initializes Class"""
            pass
    
    
    Severity: Major
    Found in myems-api/core/store.py and 3 other locations - About 1 wk to fix
    myems-api/core/shopfloor.py on lines 1011..1135
    myems-api/core/space.py on lines 1899..2023
    myems-api/core/tenant.py on lines 1056..1182

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

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

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

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

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

    Refactorings

    Further Reading

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

    class TenantPointCollection:
        def __init__(self):
            """Initializes Class"""
            pass
    
    
    Severity: Major
    Found in myems-api/core/tenant.py and 3 other locations - About 1 wk to fix
    myems-api/core/shopfloor.py on lines 1011..1135
    myems-api/core/space.py on lines 1899..2023
    myems-api/core/store.py on lines 954..1078

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

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

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

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

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

    Refactorings

    Further Reading

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

    class ShopfloorPointCollection:
        def __init__(self):
            """Initializes ShopfloorPointCollection"""
            pass
    
    
    Severity: Major
    Found in myems-api/core/shopfloor.py and 3 other locations - About 1 wk to fix
    myems-api/core/space.py on lines 1899..2023
    myems-api/core/store.py on lines 954..1078
    myems-api/core/tenant.py on lines 1056..1182

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

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

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

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

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

    Refactorings

    Further Reading

    Function Plot has 1987 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function Plot(placeholder, data_, options_, plugins) {
            // data is on the form:
            //   [ series1, series2 ... ]
            // where series is either just the data as [ [x1, y1], [x2, y2], ... ]
            // or { data: [ [x1, y1], [x2, y2], ... ], label: "some label", ... }
    Severity: Major
    Found in myems-admin/js/plugins/flot/jquery.flot.js - About 1 wk to fix

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

      Severity: Major
      Found in myems-api/excelexporters/meterbatch.py and 2 other locations - About 1 wk to fix
      myems-api/excelexporters/offlinemeterbatch.py on lines 0..121
      myems-api/excelexporters/virtualmeterbatch.py on lines 0..121

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

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

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

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

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

      Refactorings

      Further Reading

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

      Severity: Major
      Found in myems-api/excelexporters/virtualmeterbatch.py and 2 other locations - About 1 wk to fix
      myems-api/excelexporters/meterbatch.py on lines 0..121
      myems-api/excelexporters/offlinemeterbatch.py on lines 0..121

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

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

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

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

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

      Refactorings

      Further Reading

      Severity
      Category
      Status
      Source
      Language