myems-admin/app/services/settings/combinedequipment/combinedequipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/combinedequipment/combinedequipmentequipment.service.js on lines 2..30
myems-admin/app/services/settings/costcenter/costcentertariff.service.js on lines 2..29
myems-admin/app/services/settings/distributionsystem/distributioncircuitpoint.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationcontainer.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationuser.service.js on lines 2..30
myems-admin/app/services/settings/equipment/equipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/metercommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/meterpoint.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgridsensor.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgriduser.service.js on lines 2..30
myems-admin/app/services/settings/sensor/sensorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorcommand.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorequipment.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorsensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecombinedequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergyflowdiagram.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergystoragepowerstation.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacepoint.service.js on lines 2..30
myems-admin/app/services/settings/space/spacesensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceshopfloor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacestore.service.js on lines 2..30
myems-admin/app/services/settings/space/spacetenant.service.js on lines 2..30
myems-admin/app/services/settings/store/storecommand.service.js on lines 2..30
myems-admin/app/services/settings/store/storepoint.service.js on lines 2..30
myems-admin/app/services/settings/store/storesensor.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantcommand.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantpoint.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantsensor.service.js on lines 2..30
myems-admin/app/services/settings/virtualpowerplant/virtualpowerplantmicrogrid.service.js on lines 2..30
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 284.
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.
myems-admin/app/services/settings/combinedequipment/combinedequipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/combinedequipment/combinedequipmentequipment.service.js on lines 2..30
myems-admin/app/services/settings/costcenter/costcentertariff.service.js on lines 2..29
myems-admin/app/services/settings/distributionsystem/distributioncircuitpoint.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationcontainer.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationuser.service.js on lines 2..30
myems-admin/app/services/settings/equipment/equipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/metercommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/meterpoint.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgridsensor.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgriduser.service.js on lines 2..30
myems-admin/app/services/settings/sensor/sensorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorcommand.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorequipment.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorsensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecombinedequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecommand.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergystoragepowerstation.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacepoint.service.js on lines 2..30
myems-admin/app/services/settings/space/spacesensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceshopfloor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacestore.service.js on lines 2..30
myems-admin/app/services/settings/space/spacetenant.service.js on lines 2..30
myems-admin/app/services/settings/store/storecommand.service.js on lines 2..30
myems-admin/app/services/settings/store/storepoint.service.js on lines 2..30
myems-admin/app/services/settings/store/storesensor.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantcommand.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantpoint.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantsensor.service.js on lines 2..30
myems-admin/app/services/settings/virtualpowerplant/virtualpowerplantmicrogrid.service.js on lines 2..30
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 284.
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.
myems-admin/app/services/settings/combinedequipment/combinedequipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/combinedequipment/combinedequipmentequipment.service.js on lines 2..30
myems-admin/app/services/settings/costcenter/costcentertariff.service.js on lines 2..29
myems-admin/app/services/settings/distributionsystem/distributioncircuitpoint.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationcontainer.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationuser.service.js on lines 2..30
myems-admin/app/services/settings/equipment/equipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/metercommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/meterpoint.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgridsensor.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgriduser.service.js on lines 2..30
myems-admin/app/services/settings/sensor/sensorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorcommand.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorequipment.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorsensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecombinedequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecommand.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergyflowdiagram.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergystoragepowerstation.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacepoint.service.js on lines 2..30
myems-admin/app/services/settings/space/spacesensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceshopfloor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacestore.service.js on lines 2..30
myems-admin/app/services/settings/space/spacetenant.service.js on lines 2..30
myems-admin/app/services/settings/store/storecommand.service.js on lines 2..30
myems-admin/app/services/settings/store/storepoint.service.js on lines 2..30
myems-admin/app/services/settings/store/storesensor.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantpoint.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantsensor.service.js on lines 2..30
myems-admin/app/services/settings/virtualpowerplant/virtualpowerplantmicrogrid.service.js on lines 2..30
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 284.
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.
myems-admin/app/services/settings/combinedequipment/combinedequipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/combinedequipment/combinedequipmentequipment.service.js on lines 2..30
myems-admin/app/services/settings/costcenter/costcentertariff.service.js on lines 2..29
myems-admin/app/services/settings/distributionsystem/distributioncircuitpoint.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationcontainer.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationuser.service.js on lines 2..30
myems-admin/app/services/settings/equipment/equipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/metercommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/meterpoint.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgridsensor.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgriduser.service.js on lines 2..30
myems-admin/app/services/settings/sensor/sensorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorcommand.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorequipment.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorsensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecombinedequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecommand.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergyflowdiagram.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergystoragepowerstation.service.js on lines 2..30
myems-admin/app/services/settings/space/spacepoint.service.js on lines 2..30
myems-admin/app/services/settings/space/spacesensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceshopfloor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacestore.service.js on lines 2..30
myems-admin/app/services/settings/space/spacetenant.service.js on lines 2..30
myems-admin/app/services/settings/store/storecommand.service.js on lines 2..30
myems-admin/app/services/settings/store/storepoint.service.js on lines 2..30
myems-admin/app/services/settings/store/storesensor.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantcommand.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantpoint.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantsensor.service.js on lines 2..30
myems-admin/app/services/settings/virtualpowerplant/virtualpowerplantmicrogrid.service.js on lines 2..30
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 284.
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.
myems-admin/app/services/settings/combinedequipment/combinedequipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/combinedequipment/combinedequipmentequipment.service.js on lines 2..30
myems-admin/app/services/settings/costcenter/costcentertariff.service.js on lines 2..29
myems-admin/app/services/settings/distributionsystem/distributioncircuitpoint.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationcontainer.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationuser.service.js on lines 2..30
myems-admin/app/services/settings/equipment/equipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/metercommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/meterpoint.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgridsensor.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgriduser.service.js on lines 2..30
myems-admin/app/services/settings/sensor/sensorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorcommand.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorequipment.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorsensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecombinedequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecommand.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergyflowdiagram.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergystoragepowerstation.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacepoint.service.js on lines 2..30
myems-admin/app/services/settings/space/spacesensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceshopfloor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacestore.service.js on lines 2..30
myems-admin/app/services/settings/space/spacetenant.service.js on lines 2..30
myems-admin/app/services/settings/store/storecommand.service.js on lines 2..30
myems-admin/app/services/settings/store/storesensor.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantcommand.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantpoint.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantsensor.service.js on lines 2..30
myems-admin/app/services/settings/virtualpowerplant/virtualpowerplantmicrogrid.service.js on lines 2..30
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 284.
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.
myems-admin/js/plugins/oclazyload/ocLazyLoad.js on lines 1293..1354
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 284.
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.
myems-admin/app/services/settings/combinedequipment/combinedequipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/combinedequipment/combinedequipmentequipment.service.js on lines 2..30
myems-admin/app/services/settings/costcenter/costcentertariff.service.js on lines 2..29
myems-admin/app/services/settings/distributionsystem/distributioncircuitpoint.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationcontainer.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationuser.service.js on lines 2..30
myems-admin/app/services/settings/equipment/equipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/metercommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/meterpoint.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgridsensor.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgriduser.service.js on lines 2..30
myems-admin/app/services/settings/sensor/sensorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorcommand.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorequipment.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorsensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecombinedequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecommand.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergyflowdiagram.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergystoragepowerstation.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacepoint.service.js on lines 2..30
myems-admin/app/services/settings/space/spacesensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacestore.service.js on lines 2..30
myems-admin/app/services/settings/space/spacetenant.service.js on lines 2..30
myems-admin/app/services/settings/store/storecommand.service.js on lines 2..30
myems-admin/app/services/settings/store/storepoint.service.js on lines 2..30
myems-admin/app/services/settings/store/storesensor.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantcommand.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantpoint.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantsensor.service.js on lines 2..30
myems-admin/app/services/settings/virtualpowerplant/virtualpowerplantmicrogrid.service.js on lines 2..30
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 284.
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.
myems-admin/app/services/settings/combinedequipment/combinedequipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/combinedequipment/combinedequipmentequipment.service.js on lines 2..30
myems-admin/app/services/settings/costcenter/costcentertariff.service.js on lines 2..29
myems-admin/app/services/settings/distributionsystem/distributioncircuitpoint.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationcontainer.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationuser.service.js on lines 2..30
myems-admin/app/services/settings/equipment/equipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/metercommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/meterpoint.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgridsensor.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgriduser.service.js on lines 2..30
myems-admin/app/services/settings/sensor/sensorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorcommand.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorequipment.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorsensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecombinedequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecommand.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergyflowdiagram.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergystoragepowerstation.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacepoint.service.js on lines 2..30
myems-admin/app/services/settings/space/spacesensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceshopfloor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacestore.service.js on lines 2..30
myems-admin/app/services/settings/space/spacetenant.service.js on lines 2..30
myems-admin/app/services/settings/store/storecommand.service.js on lines 2..30
myems-admin/app/services/settings/store/storepoint.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantcommand.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantpoint.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantsensor.service.js on lines 2..30
myems-admin/app/services/settings/virtualpowerplant/virtualpowerplantmicrogrid.service.js on lines 2..30
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 284.
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.
myems-admin/app/services/settings/combinedequipment/combinedequipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/combinedequipment/combinedequipmentequipment.service.js on lines 2..30
myems-admin/app/services/settings/costcenter/costcentertariff.service.js on lines 2..29
myems-admin/app/services/settings/distributionsystem/distributioncircuitpoint.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationcontainer.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationuser.service.js on lines 2..30
myems-admin/app/services/settings/equipment/equipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/metercommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/meterpoint.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgridsensor.service.js on lines 2..30
myems-admin/app/services/settings/sensor/sensorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorcommand.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorequipment.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorsensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecombinedequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecommand.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergyflowdiagram.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergystoragepowerstation.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacepoint.service.js on lines 2..30
myems-admin/app/services/settings/space/spacesensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceshopfloor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacestore.service.js on lines 2..30
myems-admin/app/services/settings/space/spacetenant.service.js on lines 2..30
myems-admin/app/services/settings/store/storecommand.service.js on lines 2..30
myems-admin/app/services/settings/store/storepoint.service.js on lines 2..30
myems-admin/app/services/settings/store/storesensor.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantcommand.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantpoint.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantsensor.service.js on lines 2..30
myems-admin/app/services/settings/virtualpowerplant/virtualpowerplantmicrogrid.service.js on lines 2..30
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 284.
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.
myems-admin/app/services/settings/combinedequipment/combinedequipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/combinedequipment/combinedequipmentequipment.service.js on lines 2..30
myems-admin/app/services/settings/costcenter/costcentertariff.service.js on lines 2..29
myems-admin/app/services/settings/distributionsystem/distributioncircuitpoint.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationcontainer.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationuser.service.js on lines 2..30
myems-admin/app/services/settings/equipment/equipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/metercommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/meterpoint.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgridsensor.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgriduser.service.js on lines 2..30
myems-admin/app/services/settings/sensor/sensorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorcommand.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorequipment.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorsensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecombinedequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecommand.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergyflowdiagram.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergystoragepowerstation.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacepoint.service.js on lines 2..30
myems-admin/app/services/settings/space/spacesensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceshopfloor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacetenant.service.js on lines 2..30
myems-admin/app/services/settings/store/storecommand.service.js on lines 2..30
myems-admin/app/services/settings/store/storepoint.service.js on lines 2..30
myems-admin/app/services/settings/store/storesensor.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantcommand.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantpoint.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantsensor.service.js on lines 2..30
myems-admin/app/services/settings/virtualpowerplant/virtualpowerplantmicrogrid.service.js on lines 2..30
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 284.
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.
myems-admin/app/services/settings/combinedequipment/combinedequipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/combinedequipment/combinedequipmentequipment.service.js on lines 2..30
myems-admin/app/services/settings/costcenter/costcentertariff.service.js on lines 2..29
myems-admin/app/services/settings/distributionsystem/distributioncircuitpoint.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationuser.service.js on lines 2..30
myems-admin/app/services/settings/equipment/equipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/metercommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/meterpoint.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgridsensor.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgriduser.service.js on lines 2..30
myems-admin/app/services/settings/sensor/sensorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorcommand.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorequipment.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorsensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecombinedequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecommand.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergyflowdiagram.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergystoragepowerstation.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacepoint.service.js on lines 2..30
myems-admin/app/services/settings/space/spacesensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceshopfloor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacestore.service.js on lines 2..30
myems-admin/app/services/settings/space/spacetenant.service.js on lines 2..30
myems-admin/app/services/settings/store/storecommand.service.js on lines 2..30
myems-admin/app/services/settings/store/storepoint.service.js on lines 2..30
myems-admin/app/services/settings/store/storesensor.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantcommand.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantpoint.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantsensor.service.js on lines 2..30
myems-admin/app/services/settings/virtualpowerplant/virtualpowerplantmicrogrid.service.js on lines 2..30
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 284.
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.
myems-admin/app/services/settings/combinedequipment/combinedequipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/combinedequipment/combinedequipmentequipment.service.js on lines 2..30
myems-admin/app/services/settings/costcenter/costcentertariff.service.js on lines 2..29
myems-admin/app/services/settings/distributionsystem/distributioncircuitpoint.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationcontainer.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationuser.service.js on lines 2..30
myems-admin/app/services/settings/equipment/equipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/metercommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/meterpoint.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgridsensor.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgriduser.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorcommand.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorequipment.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorsensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecombinedequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecommand.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergyflowdiagram.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergystoragepowerstation.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacepoint.service.js on lines 2..30
myems-admin/app/services/settings/space/spacesensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceshopfloor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacestore.service.js on lines 2..30
myems-admin/app/services/settings/space/spacetenant.service.js on lines 2..30
myems-admin/app/services/settings/store/storecommand.service.js on lines 2..30
myems-admin/app/services/settings/store/storepoint.service.js on lines 2..30
myems-admin/app/services/settings/store/storesensor.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantcommand.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantpoint.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantsensor.service.js on lines 2..30
myems-admin/app/services/settings/virtualpowerplant/virtualpowerplantmicrogrid.service.js on lines 2..30
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 284.
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.
myems-admin/app/services/settings/combinedequipment/combinedequipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/combinedequipment/combinedequipmentequipment.service.js on lines 2..30
myems-admin/app/services/settings/costcenter/costcentertariff.service.js on lines 2..29
myems-admin/app/services/settings/distributionsystem/distributioncircuitpoint.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationcontainer.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationuser.service.js on lines 2..30
myems-admin/app/services/settings/equipment/equipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/metercommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/meterpoint.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgridsensor.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgriduser.service.js on lines 2..30
myems-admin/app/services/settings/sensor/sensorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorcommand.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorequipment.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorpoint.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecombinedequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecommand.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergyflowdiagram.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergystoragepowerstation.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacepoint.service.js on lines 2..30
myems-admin/app/services/settings/space/spacesensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceshopfloor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacestore.service.js on lines 2..30
myems-admin/app/services/settings/space/spacetenant.service.js on lines 2..30
myems-admin/app/services/settings/store/storecommand.service.js on lines 2..30
myems-admin/app/services/settings/store/storepoint.service.js on lines 2..30
myems-admin/app/services/settings/store/storesensor.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantcommand.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantpoint.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantsensor.service.js on lines 2..30
myems-admin/app/services/settings/virtualpowerplant/virtualpowerplantmicrogrid.service.js on lines 2..30
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 284.
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.
myems-admin/app/services/settings/combinedequipment/combinedequipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/combinedequipment/combinedequipmentequipment.service.js on lines 2..30
myems-admin/app/services/settings/costcenter/costcentertariff.service.js on lines 2..29
myems-admin/app/services/settings/distributionsystem/distributioncircuitpoint.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationcontainer.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationuser.service.js on lines 2..30
myems-admin/app/services/settings/equipment/equipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/metercommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/meterpoint.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgridsensor.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgriduser.service.js on lines 2..30
myems-admin/app/services/settings/sensor/sensorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorequipment.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorsensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecombinedequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecommand.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergyflowdiagram.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergystoragepowerstation.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacepoint.service.js on lines 2..30
myems-admin/app/services/settings/space/spacesensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceshopfloor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacestore.service.js on lines 2..30
myems-admin/app/services/settings/space/spacetenant.service.js on lines 2..30
myems-admin/app/services/settings/store/storecommand.service.js on lines 2..30
myems-admin/app/services/settings/store/storepoint.service.js on lines 2..30
myems-admin/app/services/settings/store/storesensor.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantcommand.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantpoint.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantsensor.service.js on lines 2..30
myems-admin/app/services/settings/virtualpowerplant/virtualpowerplantmicrogrid.service.js on lines 2..30
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 284.
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.
Identical blocks of code found in 2 locations. Consider refactoring.
Open
if (!Array.prototype.indexOf) {
Array.prototype.indexOf = function (searchElement, fromIndex) {
var k;
// 1. Let O be the result of calling ToObject passing
myems-admin/js/plugins/jvectormap/jquery-jvectormap-2.0.2.min.js on lines 367..429
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 284.
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.
myems-admin/app/services/settings/combinedequipment/combinedequipmentequipment.service.js on lines 2..30
myems-admin/app/services/settings/costcenter/costcentertariff.service.js on lines 2..29
myems-admin/app/services/settings/distributionsystem/distributioncircuitpoint.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationcontainer.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationuser.service.js on lines 2..30
myems-admin/app/services/settings/equipment/equipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/metercommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/meterpoint.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgridsensor.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgriduser.service.js on lines 2..30
myems-admin/app/services/settings/sensor/sensorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorcommand.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorequipment.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorsensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecombinedequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecommand.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergyflowdiagram.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergystoragepowerstation.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacepoint.service.js on lines 2..30
myems-admin/app/services/settings/space/spacesensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceshopfloor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacestore.service.js on lines 2..30
myems-admin/app/services/settings/space/spacetenant.service.js on lines 2..30
myems-admin/app/services/settings/store/storecommand.service.js on lines 2..30
myems-admin/app/services/settings/store/storepoint.service.js on lines 2..30
myems-admin/app/services/settings/store/storesensor.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantcommand.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantpoint.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantsensor.service.js on lines 2..30
myems-admin/app/services/settings/virtualpowerplant/virtualpowerplantmicrogrid.service.js on lines 2..30
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 284.
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.
myems-admin/app/services/settings/combinedequipment/combinedequipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/combinedequipment/combinedequipmentequipment.service.js on lines 2..30
myems-admin/app/services/settings/costcenter/costcentertariff.service.js on lines 2..29
myems-admin/app/services/settings/distributionsystem/distributioncircuitpoint.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationcontainer.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationuser.service.js on lines 2..30
myems-admin/app/services/settings/equipment/equipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/metercommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/meterpoint.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgridsensor.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgriduser.service.js on lines 2..30
myems-admin/app/services/settings/sensor/sensorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorcommand.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorsensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecombinedequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecommand.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergyflowdiagram.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergystoragepowerstation.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacepoint.service.js on lines 2..30
myems-admin/app/services/settings/space/spacesensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceshopfloor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacestore.service.js on lines 2..30
myems-admin/app/services/settings/space/spacetenant.service.js on lines 2..30
myems-admin/app/services/settings/store/storecommand.service.js on lines 2..30
myems-admin/app/services/settings/store/storepoint.service.js on lines 2..30
myems-admin/app/services/settings/store/storesensor.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantcommand.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantpoint.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantsensor.service.js on lines 2..30
myems-admin/app/services/settings/virtualpowerplant/virtualpowerplantmicrogrid.service.js on lines 2..30
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 284.
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.
myems-admin/app/services/settings/combinedequipment/combinedequipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/combinedequipment/combinedequipmentequipment.service.js on lines 2..30
myems-admin/app/services/settings/costcenter/costcentertariff.service.js on lines 2..29
myems-admin/app/services/settings/distributionsystem/distributioncircuitpoint.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationcontainer.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationuser.service.js on lines 2..30
myems-admin/app/services/settings/equipment/equipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/metercommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/meterpoint.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgridsensor.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgriduser.service.js on lines 2..30
myems-admin/app/services/settings/sensor/sensorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorcommand.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorequipment.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorsensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecombinedequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecommand.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergyflowdiagram.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergystoragepowerstation.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacepoint.service.js on lines 2..30
myems-admin/app/services/settings/space/spacesensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceshopfloor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacestore.service.js on lines 2..30
myems-admin/app/services/settings/space/spacetenant.service.js on lines 2..30
myems-admin/app/services/settings/store/storecommand.service.js on lines 2..30
myems-admin/app/services/settings/store/storepoint.service.js on lines 2..30
myems-admin/app/services/settings/store/storesensor.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantcommand.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantpoint.service.js on lines 2..30
myems-admin/app/services/settings/virtualpowerplant/virtualpowerplantmicrogrid.service.js on lines 2..30
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 284.
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.
myems-admin/app/services/settings/combinedequipment/combinedequipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/combinedequipment/combinedequipmentequipment.service.js on lines 2..30
myems-admin/app/services/settings/costcenter/costcentertariff.service.js on lines 2..29
myems-admin/app/services/settings/distributionsystem/distributioncircuitpoint.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationcontainer.service.js on lines 2..30
myems-admin/app/services/settings/energystoragepowerstation/energystoragepowerstationuser.service.js on lines 2..30
myems-admin/app/services/settings/equipment/equipmentcommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/metercommand.service.js on lines 2..30
myems-admin/app/services/settings/meter/meterpoint.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgridsensor.service.js on lines 2..30
myems-admin/app/services/settings/microgrid/microgriduser.service.js on lines 2..30
myems-admin/app/services/settings/sensor/sensorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorcommand.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorequipment.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorpoint.service.js on lines 2..30
myems-admin/app/services/settings/shopfloor/shopfloorsensor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecombinedequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacecommand.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergyflowdiagram.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceenergystoragepowerstation.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceequipment.service.js on lines 2..30
myems-admin/app/services/settings/space/spacepoint.service.js on lines 2..30
myems-admin/app/services/settings/space/spaceshopfloor.service.js on lines 2..30
myems-admin/app/services/settings/space/spacestore.service.js on lines 2..30
myems-admin/app/services/settings/space/spacetenant.service.js on lines 2..30
myems-admin/app/services/settings/store/storecommand.service.js on lines 2..30
myems-admin/app/services/settings/store/storepoint.service.js on lines 2..30
myems-admin/app/services/settings/store/storesensor.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantcommand.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantpoint.service.js on lines 2..30
myems-admin/app/services/settings/tenant/tenantsensor.service.js on lines 2..30
myems-admin/app/services/settings/virtualpowerplant/virtualpowerplantmicrogrid.service.js on lines 2..30
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 284.
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.
Similar blocks of code found in 2 locations. Consider refactoring.
Open
if 'longitude' in new_values['data'].keys() and new_values['data']['longitude'] is not None:
if not (isinstance(new_values['data']['longitude'], float) or
isinstance(new_values['data']['longitude'], int)) or \
new_values['data']['longitude'] < -180.0 or \
new_values['data']['longitude'] > 180.0:
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 174.
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.