Showing 10,536 of 10,536 total issues

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

class CombinedEquipmentCommandCollection:
    def __init__(self):
        """Initializes Class"""
        pass

Severity: Major
Found in myems-api/core/combinedequipment.py and 24 other locations - About 1 wk to fix
myems-api/core/equipment.py on lines 1914..2028
myems-api/core/meter.py on lines 1142..1254
myems-api/core/shopfloor.py on lines 458..570
myems-api/core/shopfloor.py on lines 1199..1311
myems-api/core/shopfloor.py on lines 1563..1675
myems-api/core/shopfloor.py on lines 1739..1851
myems-api/core/space.py on lines 817..929
myems-api/core/space.py on lines 993..1105
myems-api/core/space.py on lines 1169..1281
myems-api/core/space.py on lines 1534..1646
myems-api/core/space.py on lines 2087..2199
myems-api/core/space.py on lines 2262..2374
myems-api/core/space.py on lines 2437..2549
myems-api/core/space.py on lines 2612..2724
myems-api/core/space.py on lines 3161..3273
myems-api/core/space.py on lines 3337..3449
myems-api/core/space.py on lines 5067..5179
myems-api/core/store.py on lines 1142..1254
myems-api/core/store.py on lines 1506..1618
myems-api/core/store.py on lines 1682..1794
myems-api/core/tenant.py on lines 1246..1360
myems-api/core/tenant.py on lines 1614..1728
myems-api/core/tenant.py on lines 1792..1906
myems-api/core/virtualpowerplant.py on lines 435..547

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

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

class MeterCommandCollection:
    def __init__(self):
        """Initializes Class"""
        pass

Severity: Major
Found in myems-api/core/meter.py and 24 other locations - About 1 wk to fix
myems-api/core/combinedequipment.py on lines 2098..2210
myems-api/core/equipment.py on lines 1914..2028
myems-api/core/shopfloor.py on lines 458..570
myems-api/core/shopfloor.py on lines 1199..1311
myems-api/core/shopfloor.py on lines 1563..1675
myems-api/core/shopfloor.py on lines 1739..1851
myems-api/core/space.py on lines 817..929
myems-api/core/space.py on lines 993..1105
myems-api/core/space.py on lines 1169..1281
myems-api/core/space.py on lines 1534..1646
myems-api/core/space.py on lines 2087..2199
myems-api/core/space.py on lines 2262..2374
myems-api/core/space.py on lines 2437..2549
myems-api/core/space.py on lines 2612..2724
myems-api/core/space.py on lines 3161..3273
myems-api/core/space.py on lines 3337..3449
myems-api/core/space.py on lines 5067..5179
myems-api/core/store.py on lines 1142..1254
myems-api/core/store.py on lines 1506..1618
myems-api/core/store.py on lines 1682..1794
myems-api/core/tenant.py on lines 1246..1360
myems-api/core/tenant.py on lines 1614..1728
myems-api/core/tenant.py on lines 1792..1906
myems-api/core/virtualpowerplant.py on lines 435..547

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

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

class SpaceEquipmentCollection:
    def __init__(self):
        """Initializes Class"""
        pass

Severity: Major
Found in myems-api/core/space.py and 24 other locations - About 1 wk to fix
myems-api/core/combinedequipment.py on lines 2098..2210
myems-api/core/equipment.py on lines 1914..2028
myems-api/core/meter.py on lines 1142..1254
myems-api/core/shopfloor.py on lines 458..570
myems-api/core/shopfloor.py on lines 1199..1311
myems-api/core/shopfloor.py on lines 1563..1675
myems-api/core/shopfloor.py on lines 1739..1851
myems-api/core/space.py on lines 817..929
myems-api/core/space.py on lines 993..1105
myems-api/core/space.py on lines 1534..1646
myems-api/core/space.py on lines 2087..2199
myems-api/core/space.py on lines 2262..2374
myems-api/core/space.py on lines 2437..2549
myems-api/core/space.py on lines 2612..2724
myems-api/core/space.py on lines 3161..3273
myems-api/core/space.py on lines 3337..3449
myems-api/core/space.py on lines 5067..5179
myems-api/core/store.py on lines 1142..1254
myems-api/core/store.py on lines 1506..1618
myems-api/core/store.py on lines 1682..1794
myems-api/core/tenant.py on lines 1246..1360
myems-api/core/tenant.py on lines 1614..1728
myems-api/core/tenant.py on lines 1792..1906
myems-api/core/virtualpowerplant.py on lines 435..547

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

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

class SpaceShopfloorCollection:
    def __init__(self):
        """Initializes Class"""
        pass

Severity: Major
Found in myems-api/core/space.py and 24 other locations - About 1 wk to fix
myems-api/core/combinedequipment.py on lines 2098..2210
myems-api/core/equipment.py on lines 1914..2028
myems-api/core/meter.py on lines 1142..1254
myems-api/core/shopfloor.py on lines 458..570
myems-api/core/shopfloor.py on lines 1199..1311
myems-api/core/shopfloor.py on lines 1563..1675
myems-api/core/shopfloor.py on lines 1739..1851
myems-api/core/space.py on lines 817..929
myems-api/core/space.py on lines 993..1105
myems-api/core/space.py on lines 1169..1281
myems-api/core/space.py on lines 1534..1646
myems-api/core/space.py on lines 2087..2199
myems-api/core/space.py on lines 2437..2549
myems-api/core/space.py on lines 2612..2724
myems-api/core/space.py on lines 3161..3273
myems-api/core/space.py on lines 3337..3449
myems-api/core/space.py on lines 5067..5179
myems-api/core/store.py on lines 1142..1254
myems-api/core/store.py on lines 1506..1618
myems-api/core/store.py on lines 1682..1794
myems-api/core/tenant.py on lines 1246..1360
myems-api/core/tenant.py on lines 1614..1728
myems-api/core/tenant.py on lines 1792..1906
myems-api/core/virtualpowerplant.py on lines 435..547

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

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

class TenantCommandCollection:
    def __init__(self):
        """Initializes Class"""
        pass

Severity: Major
Found in myems-api/core/tenant.py and 24 other locations - About 1 wk to fix
myems-api/core/combinedequipment.py on lines 2098..2210
myems-api/core/equipment.py on lines 1914..2028
myems-api/core/meter.py on lines 1142..1254
myems-api/core/shopfloor.py on lines 458..570
myems-api/core/shopfloor.py on lines 1199..1311
myems-api/core/shopfloor.py on lines 1563..1675
myems-api/core/shopfloor.py on lines 1739..1851
myems-api/core/space.py on lines 817..929
myems-api/core/space.py on lines 993..1105
myems-api/core/space.py on lines 1169..1281
myems-api/core/space.py on lines 1534..1646
myems-api/core/space.py on lines 2087..2199
myems-api/core/space.py on lines 2262..2374
myems-api/core/space.py on lines 2437..2549
myems-api/core/space.py on lines 2612..2724
myems-api/core/space.py on lines 3161..3273
myems-api/core/space.py on lines 3337..3449
myems-api/core/space.py on lines 5067..5179
myems-api/core/store.py on lines 1142..1254
myems-api/core/store.py on lines 1506..1618
myems-api/core/store.py on lines 1682..1794
myems-api/core/tenant.py on lines 1246..1360
myems-api/core/tenant.py on lines 1614..1728
myems-api/core/virtualpowerplant.py on lines 435..547

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

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

class ShopfloorSensorCollection:
    def __init__(self):
        """Initializes ShopfloorSensorCollection"""
        pass

Severity: Major
Found in myems-api/core/shopfloor.py and 24 other locations - About 1 wk to fix
myems-api/core/combinedequipment.py on lines 2098..2210
myems-api/core/equipment.py on lines 1914..2028
myems-api/core/meter.py on lines 1142..1254
myems-api/core/shopfloor.py on lines 458..570
myems-api/core/shopfloor.py on lines 1563..1675
myems-api/core/shopfloor.py on lines 1739..1851
myems-api/core/space.py on lines 817..929
myems-api/core/space.py on lines 993..1105
myems-api/core/space.py on lines 1169..1281
myems-api/core/space.py on lines 1534..1646
myems-api/core/space.py on lines 2087..2199
myems-api/core/space.py on lines 2262..2374
myems-api/core/space.py on lines 2437..2549
myems-api/core/space.py on lines 2612..2724
myems-api/core/space.py on lines 3161..3273
myems-api/core/space.py on lines 3337..3449
myems-api/core/space.py on lines 5067..5179
myems-api/core/store.py on lines 1142..1254
myems-api/core/store.py on lines 1506..1618
myems-api/core/store.py on lines 1682..1794
myems-api/core/tenant.py on lines 1246..1360
myems-api/core/tenant.py on lines 1614..1728
myems-api/core/tenant.py on lines 1792..1906
myems-api/core/virtualpowerplant.py on lines 435..547

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

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

class ShopfloorCommandCollection:
    def __init__(self):
        """Initializes Class"""
        pass

Severity: Major
Found in myems-api/core/shopfloor.py and 24 other locations - About 1 wk to fix
myems-api/core/combinedequipment.py on lines 2098..2210
myems-api/core/equipment.py on lines 1914..2028
myems-api/core/meter.py on lines 1142..1254
myems-api/core/shopfloor.py on lines 458..570
myems-api/core/shopfloor.py on lines 1199..1311
myems-api/core/shopfloor.py on lines 1563..1675
myems-api/core/space.py on lines 817..929
myems-api/core/space.py on lines 993..1105
myems-api/core/space.py on lines 1169..1281
myems-api/core/space.py on lines 1534..1646
myems-api/core/space.py on lines 2087..2199
myems-api/core/space.py on lines 2262..2374
myems-api/core/space.py on lines 2437..2549
myems-api/core/space.py on lines 2612..2724
myems-api/core/space.py on lines 3161..3273
myems-api/core/space.py on lines 3337..3449
myems-api/core/space.py on lines 5067..5179
myems-api/core/store.py on lines 1142..1254
myems-api/core/store.py on lines 1506..1618
myems-api/core/store.py on lines 1682..1794
myems-api/core/tenant.py on lines 1246..1360
myems-api/core/tenant.py on lines 1614..1728
myems-api/core/tenant.py on lines 1792..1906
myems-api/core/virtualpowerplant.py on lines 435..547

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

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

class SpaceEnergyStoragePowerStationCollection:
    def __init__(self):
        """Initializes Class"""
        pass

Severity: Major
Found in myems-api/core/space.py and 24 other locations - About 1 wk to fix
myems-api/core/combinedequipment.py on lines 2098..2210
myems-api/core/equipment.py on lines 1914..2028
myems-api/core/meter.py on lines 1142..1254
myems-api/core/shopfloor.py on lines 458..570
myems-api/core/shopfloor.py on lines 1199..1311
myems-api/core/shopfloor.py on lines 1563..1675
myems-api/core/shopfloor.py on lines 1739..1851
myems-api/core/space.py on lines 817..929
myems-api/core/space.py on lines 1169..1281
myems-api/core/space.py on lines 1534..1646
myems-api/core/space.py on lines 2087..2199
myems-api/core/space.py on lines 2262..2374
myems-api/core/space.py on lines 2437..2549
myems-api/core/space.py on lines 2612..2724
myems-api/core/space.py on lines 3161..3273
myems-api/core/space.py on lines 3337..3449
myems-api/core/space.py on lines 5067..5179
myems-api/core/store.py on lines 1142..1254
myems-api/core/store.py on lines 1506..1618
myems-api/core/store.py on lines 1682..1794
myems-api/core/tenant.py on lines 1246..1360
myems-api/core/tenant.py on lines 1614..1728
myems-api/core/tenant.py on lines 1792..1906
myems-api/core/virtualpowerplant.py on lines 435..547

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

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

class SpaceCommandCollection:
    def __init__(self):
        """Initializes Class"""
        pass

Severity: Major
Found in myems-api/core/space.py and 24 other locations - About 1 wk to fix
myems-api/core/combinedequipment.py on lines 2098..2210
myems-api/core/equipment.py on lines 1914..2028
myems-api/core/meter.py on lines 1142..1254
myems-api/core/shopfloor.py on lines 458..570
myems-api/core/shopfloor.py on lines 1199..1311
myems-api/core/shopfloor.py on lines 1563..1675
myems-api/core/shopfloor.py on lines 1739..1851
myems-api/core/space.py on lines 817..929
myems-api/core/space.py on lines 993..1105
myems-api/core/space.py on lines 1169..1281
myems-api/core/space.py on lines 1534..1646
myems-api/core/space.py on lines 2087..2199
myems-api/core/space.py on lines 2262..2374
myems-api/core/space.py on lines 2437..2549
myems-api/core/space.py on lines 2612..2724
myems-api/core/space.py on lines 3161..3273
myems-api/core/space.py on lines 5067..5179
myems-api/core/store.py on lines 1142..1254
myems-api/core/store.py on lines 1506..1618
myems-api/core/store.py on lines 1682..1794
myems-api/core/tenant.py on lines 1246..1360
myems-api/core/tenant.py on lines 1614..1728
myems-api/core/tenant.py on lines 1792..1906
myems-api/core/virtualpowerplant.py on lines 435..547

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

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

class TenantSensorCollection:
    def __init__(self):
        """Initializes Class"""
        pass

Severity: Major
Found in myems-api/core/tenant.py and 24 other locations - About 1 wk to fix
myems-api/core/combinedequipment.py on lines 2098..2210
myems-api/core/equipment.py on lines 1914..2028
myems-api/core/meter.py on lines 1142..1254
myems-api/core/shopfloor.py on lines 458..570
myems-api/core/shopfloor.py on lines 1199..1311
myems-api/core/shopfloor.py on lines 1563..1675
myems-api/core/shopfloor.py on lines 1739..1851
myems-api/core/space.py on lines 817..929
myems-api/core/space.py on lines 993..1105
myems-api/core/space.py on lines 1169..1281
myems-api/core/space.py on lines 1534..1646
myems-api/core/space.py on lines 2087..2199
myems-api/core/space.py on lines 2262..2374
myems-api/core/space.py on lines 2437..2549
myems-api/core/space.py on lines 2612..2724
myems-api/core/space.py on lines 3161..3273
myems-api/core/space.py on lines 3337..3449
myems-api/core/space.py on lines 5067..5179
myems-api/core/store.py on lines 1142..1254
myems-api/core/store.py on lines 1506..1618
myems-api/core/store.py on lines 1682..1794
myems-api/core/tenant.py on lines 1614..1728
myems-api/core/tenant.py on lines 1792..1906
myems-api/core/virtualpowerplant.py on lines 435..547

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

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

class ShopfloorEquipmentCollection:
    def __init__(self):
        """Initializes ShopfloorEquipmentCollection"""
        pass

Severity: Major
Found in myems-api/core/shopfloor.py and 24 other locations - About 1 wk to fix
myems-api/core/combinedequipment.py on lines 2098..2210
myems-api/core/equipment.py on lines 1914..2028
myems-api/core/meter.py on lines 1142..1254
myems-api/core/shopfloor.py on lines 1199..1311
myems-api/core/shopfloor.py on lines 1563..1675
myems-api/core/shopfloor.py on lines 1739..1851
myems-api/core/space.py on lines 817..929
myems-api/core/space.py on lines 993..1105
myems-api/core/space.py on lines 1169..1281
myems-api/core/space.py on lines 1534..1646
myems-api/core/space.py on lines 2087..2199
myems-api/core/space.py on lines 2262..2374
myems-api/core/space.py on lines 2437..2549
myems-api/core/space.py on lines 2612..2724
myems-api/core/space.py on lines 3161..3273
myems-api/core/space.py on lines 3337..3449
myems-api/core/space.py on lines 5067..5179
myems-api/core/store.py on lines 1142..1254
myems-api/core/store.py on lines 1506..1618
myems-api/core/store.py on lines 1682..1794
myems-api/core/tenant.py on lines 1246..1360
myems-api/core/tenant.py on lines 1614..1728
myems-api/core/tenant.py on lines 1792..1906
myems-api/core/virtualpowerplant.py on lines 435..547

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

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

class SpaceWorkingCalendarCollection:
    def __init__(self):
        """Initializes SpaceWorkingCalendarCollection Class"""
        pass

Severity: Major
Found in myems-api/core/space.py and 24 other locations - About 1 wk to fix
myems-api/core/combinedequipment.py on lines 2098..2210
myems-api/core/equipment.py on lines 1914..2028
myems-api/core/meter.py on lines 1142..1254
myems-api/core/shopfloor.py on lines 458..570
myems-api/core/shopfloor.py on lines 1199..1311
myems-api/core/shopfloor.py on lines 1563..1675
myems-api/core/shopfloor.py on lines 1739..1851
myems-api/core/space.py on lines 817..929
myems-api/core/space.py on lines 993..1105
myems-api/core/space.py on lines 1169..1281
myems-api/core/space.py on lines 1534..1646
myems-api/core/space.py on lines 2087..2199
myems-api/core/space.py on lines 2262..2374
myems-api/core/space.py on lines 2437..2549
myems-api/core/space.py on lines 2612..2724
myems-api/core/space.py on lines 3337..3449
myems-api/core/space.py on lines 5067..5179
myems-api/core/store.py on lines 1142..1254
myems-api/core/store.py on lines 1506..1618
myems-api/core/store.py on lines 1682..1794
myems-api/core/tenant.py on lines 1246..1360
myems-api/core/tenant.py on lines 1614..1728
myems-api/core/tenant.py on lines 1792..1906
myems-api/core/virtualpowerplant.py on lines 435..547

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

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

class StoreSensorCollection:
    def __init__(self):
        """Initializes Class"""
        pass

Severity: Major
Found in myems-api/core/store.py and 24 other locations - About 1 wk to fix
myems-api/core/combinedequipment.py on lines 2098..2210
myems-api/core/equipment.py on lines 1914..2028
myems-api/core/meter.py on lines 1142..1254
myems-api/core/shopfloor.py on lines 458..570
myems-api/core/shopfloor.py on lines 1199..1311
myems-api/core/shopfloor.py on lines 1563..1675
myems-api/core/shopfloor.py on lines 1739..1851
myems-api/core/space.py on lines 817..929
myems-api/core/space.py on lines 993..1105
myems-api/core/space.py on lines 1169..1281
myems-api/core/space.py on lines 1534..1646
myems-api/core/space.py on lines 2087..2199
myems-api/core/space.py on lines 2262..2374
myems-api/core/space.py on lines 2437..2549
myems-api/core/space.py on lines 2612..2724
myems-api/core/space.py on lines 3161..3273
myems-api/core/space.py on lines 3337..3449
myems-api/core/space.py on lines 5067..5179
myems-api/core/store.py on lines 1506..1618
myems-api/core/store.py on lines 1682..1794
myems-api/core/tenant.py on lines 1246..1360
myems-api/core/tenant.py on lines 1614..1728
myems-api/core/tenant.py on lines 1792..1906
myems-api/core/virtualpowerplant.py on lines 435..547

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

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

class StoreCommandCollection:
    def __init__(self):
        """Initializes Class"""
        pass

Severity: Major
Found in myems-api/core/store.py and 24 other locations - About 1 wk to fix
myems-api/core/combinedequipment.py on lines 2098..2210
myems-api/core/equipment.py on lines 1914..2028
myems-api/core/meter.py on lines 1142..1254
myems-api/core/shopfloor.py on lines 458..570
myems-api/core/shopfloor.py on lines 1199..1311
myems-api/core/shopfloor.py on lines 1563..1675
myems-api/core/shopfloor.py on lines 1739..1851
myems-api/core/space.py on lines 817..929
myems-api/core/space.py on lines 993..1105
myems-api/core/space.py on lines 1169..1281
myems-api/core/space.py on lines 1534..1646
myems-api/core/space.py on lines 2087..2199
myems-api/core/space.py on lines 2262..2374
myems-api/core/space.py on lines 2437..2549
myems-api/core/space.py on lines 2612..2724
myems-api/core/space.py on lines 3161..3273
myems-api/core/space.py on lines 3337..3449
myems-api/core/space.py on lines 5067..5179
myems-api/core/store.py on lines 1142..1254
myems-api/core/store.py on lines 1506..1618
myems-api/core/tenant.py on lines 1246..1360
myems-api/core/tenant.py on lines 1614..1728
myems-api/core/tenant.py on lines 1792..1906
myems-api/core/virtualpowerplant.py on lines 435..547

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

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

class SpaceCombinedEquipmentCollection:
    def __init__(self):
        """Initializes Class"""
        pass

Severity: Major
Found in myems-api/core/space.py and 24 other locations - About 1 wk to fix
myems-api/core/combinedequipment.py on lines 2098..2210
myems-api/core/equipment.py on lines 1914..2028
myems-api/core/meter.py on lines 1142..1254
myems-api/core/shopfloor.py on lines 458..570
myems-api/core/shopfloor.py on lines 1199..1311
myems-api/core/shopfloor.py on lines 1563..1675
myems-api/core/shopfloor.py on lines 1739..1851
myems-api/core/space.py on lines 993..1105
myems-api/core/space.py on lines 1169..1281
myems-api/core/space.py on lines 1534..1646
myems-api/core/space.py on lines 2087..2199
myems-api/core/space.py on lines 2262..2374
myems-api/core/space.py on lines 2437..2549
myems-api/core/space.py on lines 2612..2724
myems-api/core/space.py on lines 3161..3273
myems-api/core/space.py on lines 3337..3449
myems-api/core/space.py on lines 5067..5179
myems-api/core/store.py on lines 1142..1254
myems-api/core/store.py on lines 1506..1618
myems-api/core/store.py on lines 1682..1794
myems-api/core/tenant.py on lines 1246..1360
myems-api/core/tenant.py on lines 1614..1728
myems-api/core/tenant.py on lines 1792..1906
myems-api/core/virtualpowerplant.py on lines 435..547

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

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

class ShopfloorWorkingCalendarCollection:
    def __init__(self):
        """Initializes ShopfloorWorkingCalendarCollection Class"""
        pass

Severity: Major
Found in myems-api/core/shopfloor.py and 24 other locations - About 1 wk to fix
myems-api/core/combinedequipment.py on lines 2098..2210
myems-api/core/equipment.py on lines 1914..2028
myems-api/core/meter.py on lines 1142..1254
myems-api/core/shopfloor.py on lines 458..570
myems-api/core/shopfloor.py on lines 1199..1311
myems-api/core/shopfloor.py on lines 1739..1851
myems-api/core/space.py on lines 817..929
myems-api/core/space.py on lines 993..1105
myems-api/core/space.py on lines 1169..1281
myems-api/core/space.py on lines 1534..1646
myems-api/core/space.py on lines 2087..2199
myems-api/core/space.py on lines 2262..2374
myems-api/core/space.py on lines 2437..2549
myems-api/core/space.py on lines 2612..2724
myems-api/core/space.py on lines 3161..3273
myems-api/core/space.py on lines 3337..3449
myems-api/core/space.py on lines 5067..5179
myems-api/core/store.py on lines 1142..1254
myems-api/core/store.py on lines 1506..1618
myems-api/core/store.py on lines 1682..1794
myems-api/core/tenant.py on lines 1246..1360
myems-api/core/tenant.py on lines 1614..1728
myems-api/core/tenant.py on lines 1792..1906
myems-api/core/virtualpowerplant.py on lines 435..547

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

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

class SpaceMicrogridCollection:
    def __init__(self):
        """Initializes Class"""
        pass

Severity: Major
Found in myems-api/core/space.py and 24 other locations - About 1 wk to fix
myems-api/core/combinedequipment.py on lines 2098..2210
myems-api/core/equipment.py on lines 1914..2028
myems-api/core/meter.py on lines 1142..1254
myems-api/core/shopfloor.py on lines 458..570
myems-api/core/shopfloor.py on lines 1199..1311
myems-api/core/shopfloor.py on lines 1563..1675
myems-api/core/shopfloor.py on lines 1739..1851
myems-api/core/space.py on lines 817..929
myems-api/core/space.py on lines 993..1105
myems-api/core/space.py on lines 1169..1281
myems-api/core/space.py on lines 2087..2199
myems-api/core/space.py on lines 2262..2374
myems-api/core/space.py on lines 2437..2549
myems-api/core/space.py on lines 2612..2724
myems-api/core/space.py on lines 3161..3273
myems-api/core/space.py on lines 3337..3449
myems-api/core/space.py on lines 5067..5179
myems-api/core/store.py on lines 1142..1254
myems-api/core/store.py on lines 1506..1618
myems-api/core/store.py on lines 1682..1794
myems-api/core/tenant.py on lines 1246..1360
myems-api/core/tenant.py on lines 1614..1728
myems-api/core/tenant.py on lines 1792..1906
myems-api/core/virtualpowerplant.py on lines 435..547

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

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

class SpaceEnergyFlowDiagramCollection:
    def __init__(self):
        """Initializes Class"""
        pass

Severity: Major
Found in myems-api/core/space.py and 24 other locations - About 1 wk to fix
myems-api/core/combinedequipment.py on lines 2098..2210
myems-api/core/equipment.py on lines 1914..2028
myems-api/core/meter.py on lines 1142..1254
myems-api/core/shopfloor.py on lines 458..570
myems-api/core/shopfloor.py on lines 1199..1311
myems-api/core/shopfloor.py on lines 1563..1675
myems-api/core/shopfloor.py on lines 1739..1851
myems-api/core/space.py on lines 817..929
myems-api/core/space.py on lines 993..1105
myems-api/core/space.py on lines 1169..1281
myems-api/core/space.py on lines 1534..1646
myems-api/core/space.py on lines 2087..2199
myems-api/core/space.py on lines 2262..2374
myems-api/core/space.py on lines 2437..2549
myems-api/core/space.py on lines 2612..2724
myems-api/core/space.py on lines 3161..3273
myems-api/core/space.py on lines 3337..3449
myems-api/core/store.py on lines 1142..1254
myems-api/core/store.py on lines 1506..1618
myems-api/core/store.py on lines 1682..1794
myems-api/core/tenant.py on lines 1246..1360
myems-api/core/tenant.py on lines 1614..1728
myems-api/core/tenant.py on lines 1792..1906
myems-api/core/virtualpowerplant.py on lines 435..547

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

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

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

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

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

Refactorings

Further Reading

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

app.controller('SensorPointController', function (
    $scope,
    $window,
    $timeout,
    $translate,
myems-admin/app/controllers/settings/meter/meterpoint.controller.js on lines 3..135

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

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

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

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

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

Refactorings

Further Reading

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

app.controller('MeterPointController', function (
    $scope,
    $window,
    $timeout, 
    $translate,
myems-admin/app/controllers/settings/sensor/sensorpoint.controller.js on lines 3..139

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

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