Showing 4,494 of 10,140 total issues

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

Severity: Major
Found in myems-api/excelexporters/equipmentbatch.py and 2 other locations - About 2 wks to fix
myems-api/excelexporters/combinedequipmentbatch.py on lines 0..187
myems-api/excelexporters/shopfloorbatch.py on lines 0..187

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

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

    @staticmethod
    @user_logger
    def on_post(req, resp):
        """Handles POST requests"""
        admin_control(req)
Severity: Major
Found in myems-api/core/windfarm.py and 1 other location - About 2 wks to fix
myems-api/core/photovoltaicpowerstation.py on lines 82..226

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

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

    @staticmethod
    @user_logger
    def on_post(req, resp):
        """Handles POST requests"""
        admin_control(req)
Severity: Major
Found in myems-api/core/photovoltaicpowerstation.py and 1 other location - About 2 wks to fix
myems-api/core/windfarm.py on lines 80..224

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

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

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

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

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

Refactorings

Further Reading

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

app.controller('WindFarmController', function(
    $scope,
    $rootScope,
    $window,
    $translate,
myems-admin/app/controllers/settings/photovoltaicpowerstation/photovoltaicpowerstation.controller.js on lines 3..271
myems-admin/app/controllers/settings/virtualpowerplant/virtualpowerplant.controller.js on lines 3..272

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

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

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

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

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

Refactorings

Further Reading

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

app.controller('VirtualPowerPlantController', function(
    $scope,
    $rootScope,
    $window,
    $translate,
myems-admin/app/controllers/settings/photovoltaicpowerstation/photovoltaicpowerstation.controller.js on lines 3..271
myems-admin/app/controllers/settings/windfarm/windfarm.controller.js on lines 3..271

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 2573.

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

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

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

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

Refactorings

Further Reading

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

app.controller('PhotovoltaicPowerStationController', function(
    $scope,
    $rootScope,
    $window,
    $translate,
myems-admin/app/controllers/settings/virtualpowerplant/virtualpowerplant.controller.js on lines 3..272
myems-admin/app/controllers/settings/windfarm/windfarm.controller.js on lines 3..271

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 2573.

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

Severity: Major
Found in myems-aggregation/tenant_billing_input_category.py and 14 other locations - About 2 wks to fix
myems-aggregation/combined_equipment_billing_input_category.py on lines 0..271
myems-aggregation/combined_equipment_billing_input_item.py on lines 0..271
myems-aggregation/combined_equipment_billing_output_category.py on lines 0..271
myems-aggregation/equipment_billing_input_category.py on lines 0..270
myems-aggregation/equipment_billing_input_item.py on lines 0..270
myems-aggregation/equipment_billing_output_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_input_category.py on lines 0..270
myems-aggregation/space_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_output_category.py on lines 0..270
myems-aggregation/store_billing_input_category.py on lines 0..270
myems-aggregation/store_billing_input_item.py on lines 0..270
myems-aggregation/tenant_billing_input_item.py on lines 0..269

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

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

Severity: Major
Found in myems-aggregation/equipment_billing_input_category.py and 14 other locations - About 2 wks to fix
myems-aggregation/combined_equipment_billing_input_category.py on lines 0..271
myems-aggregation/combined_equipment_billing_input_item.py on lines 0..271
myems-aggregation/combined_equipment_billing_output_category.py on lines 0..271
myems-aggregation/equipment_billing_input_item.py on lines 0..270
myems-aggregation/equipment_billing_output_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_input_category.py on lines 0..270
myems-aggregation/space_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_output_category.py on lines 0..270
myems-aggregation/store_billing_input_category.py on lines 0..270
myems-aggregation/store_billing_input_item.py on lines 0..270
myems-aggregation/tenant_billing_input_category.py on lines 0..269
myems-aggregation/tenant_billing_input_item.py on lines 0..269

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

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

Severity: Major
Found in myems-aggregation/equipment_billing_output_category.py and 14 other locations - About 2 wks to fix
myems-aggregation/combined_equipment_billing_input_category.py on lines 0..271
myems-aggregation/combined_equipment_billing_input_item.py on lines 0..271
myems-aggregation/combined_equipment_billing_output_category.py on lines 0..271
myems-aggregation/equipment_billing_input_category.py on lines 0..270
myems-aggregation/equipment_billing_input_item.py on lines 0..270
myems-aggregation/shopfloor_billing_input_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_input_category.py on lines 0..270
myems-aggregation/space_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_output_category.py on lines 0..270
myems-aggregation/store_billing_input_category.py on lines 0..270
myems-aggregation/store_billing_input_item.py on lines 0..270
myems-aggregation/tenant_billing_input_category.py on lines 0..269
myems-aggregation/tenant_billing_input_item.py on lines 0..269

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

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

Severity: Major
Found in myems-aggregation/space_billing_input_item.py and 14 other locations - About 2 wks to fix
myems-aggregation/combined_equipment_billing_input_category.py on lines 0..271
myems-aggregation/combined_equipment_billing_input_item.py on lines 0..271
myems-aggregation/combined_equipment_billing_output_category.py on lines 0..271
myems-aggregation/equipment_billing_input_category.py on lines 0..270
myems-aggregation/equipment_billing_input_item.py on lines 0..270
myems-aggregation/equipment_billing_output_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_input_category.py on lines 0..270
myems-aggregation/space_billing_output_category.py on lines 0..270
myems-aggregation/store_billing_input_category.py on lines 0..270
myems-aggregation/store_billing_input_item.py on lines 0..270
myems-aggregation/tenant_billing_input_category.py on lines 0..269
myems-aggregation/tenant_billing_input_item.py on lines 0..269

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

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

Severity: Major
Found in myems-aggregation/shopfloor_billing_input_category.py and 14 other locations - About 2 wks to fix
myems-aggregation/combined_equipment_billing_input_category.py on lines 0..271
myems-aggregation/combined_equipment_billing_input_item.py on lines 0..271
myems-aggregation/combined_equipment_billing_output_category.py on lines 0..271
myems-aggregation/equipment_billing_input_category.py on lines 0..270
myems-aggregation/equipment_billing_input_item.py on lines 0..270
myems-aggregation/equipment_billing_output_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_input_category.py on lines 0..270
myems-aggregation/space_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_output_category.py on lines 0..270
myems-aggregation/store_billing_input_category.py on lines 0..270
myems-aggregation/store_billing_input_item.py on lines 0..270
myems-aggregation/tenant_billing_input_category.py on lines 0..269
myems-aggregation/tenant_billing_input_item.py on lines 0..269

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

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

myems-aggregation/combined_equipment_billing_input_category.py on lines 0..271
myems-aggregation/combined_equipment_billing_input_item.py on lines 0..271
myems-aggregation/equipment_billing_input_category.py on lines 0..270
myems-aggregation/equipment_billing_input_item.py on lines 0..270
myems-aggregation/equipment_billing_output_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_input_category.py on lines 0..270
myems-aggregation/space_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_output_category.py on lines 0..270
myems-aggregation/store_billing_input_category.py on lines 0..270
myems-aggregation/store_billing_input_item.py on lines 0..270
myems-aggregation/tenant_billing_input_category.py on lines 0..269
myems-aggregation/tenant_billing_input_item.py on lines 0..269

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

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

Severity: Major
Found in myems-aggregation/space_billing_input_category.py and 14 other locations - About 2 wks to fix
myems-aggregation/combined_equipment_billing_input_category.py on lines 0..271
myems-aggregation/combined_equipment_billing_input_item.py on lines 0..271
myems-aggregation/combined_equipment_billing_output_category.py on lines 0..271
myems-aggregation/equipment_billing_input_category.py on lines 0..270
myems-aggregation/equipment_billing_input_item.py on lines 0..270
myems-aggregation/equipment_billing_output_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_output_category.py on lines 0..270
myems-aggregation/store_billing_input_category.py on lines 0..270
myems-aggregation/store_billing_input_item.py on lines 0..270
myems-aggregation/tenant_billing_input_category.py on lines 0..269
myems-aggregation/tenant_billing_input_item.py on lines 0..269

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

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

Severity: Major
Found in myems-aggregation/equipment_billing_input_item.py and 14 other locations - About 2 wks to fix
myems-aggregation/combined_equipment_billing_input_category.py on lines 0..271
myems-aggregation/combined_equipment_billing_input_item.py on lines 0..271
myems-aggregation/combined_equipment_billing_output_category.py on lines 0..271
myems-aggregation/equipment_billing_input_category.py on lines 0..270
myems-aggregation/equipment_billing_output_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_input_category.py on lines 0..270
myems-aggregation/space_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_output_category.py on lines 0..270
myems-aggregation/store_billing_input_category.py on lines 0..270
myems-aggregation/store_billing_input_item.py on lines 0..270
myems-aggregation/tenant_billing_input_category.py on lines 0..269
myems-aggregation/tenant_billing_input_item.py on lines 0..269

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

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

Severity: Major
Found in myems-aggregation/space_billing_output_category.py and 14 other locations - About 2 wks to fix
myems-aggregation/combined_equipment_billing_input_category.py on lines 0..271
myems-aggregation/combined_equipment_billing_input_item.py on lines 0..271
myems-aggregation/combined_equipment_billing_output_category.py on lines 0..271
myems-aggregation/equipment_billing_input_category.py on lines 0..270
myems-aggregation/equipment_billing_input_item.py on lines 0..270
myems-aggregation/equipment_billing_output_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_input_category.py on lines 0..270
myems-aggregation/space_billing_input_item.py on lines 0..270
myems-aggregation/store_billing_input_category.py on lines 0..270
myems-aggregation/store_billing_input_item.py on lines 0..270
myems-aggregation/tenant_billing_input_category.py on lines 0..269
myems-aggregation/tenant_billing_input_item.py on lines 0..269

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

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

Severity: Major
Found in myems-aggregation/tenant_billing_input_item.py and 14 other locations - About 2 wks to fix
myems-aggregation/combined_equipment_billing_input_category.py on lines 0..271
myems-aggregation/combined_equipment_billing_input_item.py on lines 0..271
myems-aggregation/combined_equipment_billing_output_category.py on lines 0..271
myems-aggregation/equipment_billing_input_category.py on lines 0..270
myems-aggregation/equipment_billing_input_item.py on lines 0..270
myems-aggregation/equipment_billing_output_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_input_category.py on lines 0..270
myems-aggregation/space_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_output_category.py on lines 0..270
myems-aggregation/store_billing_input_category.py on lines 0..270
myems-aggregation/store_billing_input_item.py on lines 0..270
myems-aggregation/tenant_billing_input_category.py on lines 0..269

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

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

Severity: Major
Found in myems-aggregation/combined_equipment_billing_input_item.py and 14 other locations - About 2 wks to fix
myems-aggregation/combined_equipment_billing_input_category.py on lines 0..271
myems-aggregation/combined_equipment_billing_output_category.py on lines 0..271
myems-aggregation/equipment_billing_input_category.py on lines 0..270
myems-aggregation/equipment_billing_input_item.py on lines 0..270
myems-aggregation/equipment_billing_output_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_input_category.py on lines 0..270
myems-aggregation/space_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_output_category.py on lines 0..270
myems-aggregation/store_billing_input_category.py on lines 0..270
myems-aggregation/store_billing_input_item.py on lines 0..270
myems-aggregation/tenant_billing_input_category.py on lines 0..269
myems-aggregation/tenant_billing_input_item.py on lines 0..269

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

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

myems-aggregation/combined_equipment_billing_input_item.py on lines 0..271
myems-aggregation/combined_equipment_billing_output_category.py on lines 0..271
myems-aggregation/equipment_billing_input_category.py on lines 0..270
myems-aggregation/equipment_billing_input_item.py on lines 0..270
myems-aggregation/equipment_billing_output_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_input_category.py on lines 0..270
myems-aggregation/space_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_output_category.py on lines 0..270
myems-aggregation/store_billing_input_category.py on lines 0..270
myems-aggregation/store_billing_input_item.py on lines 0..270
myems-aggregation/tenant_billing_input_category.py on lines 0..269
myems-aggregation/tenant_billing_input_item.py on lines 0..269

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

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

Severity: Major
Found in myems-aggregation/store_billing_input_item.py and 14 other locations - About 2 wks to fix
myems-aggregation/combined_equipment_billing_input_category.py on lines 0..271
myems-aggregation/combined_equipment_billing_input_item.py on lines 0..271
myems-aggregation/combined_equipment_billing_output_category.py on lines 0..271
myems-aggregation/equipment_billing_input_category.py on lines 0..270
myems-aggregation/equipment_billing_input_item.py on lines 0..270
myems-aggregation/equipment_billing_output_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_input_category.py on lines 0..270
myems-aggregation/space_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_output_category.py on lines 0..270
myems-aggregation/store_billing_input_category.py on lines 0..270
myems-aggregation/tenant_billing_input_category.py on lines 0..269
myems-aggregation/tenant_billing_input_item.py on lines 0..269

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

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

Severity: Major
Found in myems-aggregation/shopfloor_billing_input_item.py and 14 other locations - About 2 wks to fix
myems-aggregation/combined_equipment_billing_input_category.py on lines 0..271
myems-aggregation/combined_equipment_billing_input_item.py on lines 0..271
myems-aggregation/combined_equipment_billing_output_category.py on lines 0..271
myems-aggregation/equipment_billing_input_category.py on lines 0..270
myems-aggregation/equipment_billing_input_item.py on lines 0..270
myems-aggregation/equipment_billing_output_category.py on lines 0..270
myems-aggregation/shopfloor_billing_input_category.py on lines 0..270
myems-aggregation/space_billing_input_category.py on lines 0..270
myems-aggregation/space_billing_input_item.py on lines 0..270
myems-aggregation/space_billing_output_category.py on lines 0..270
myems-aggregation/store_billing_input_category.py on lines 0..270
myems-aggregation/store_billing_input_item.py on lines 0..270
myems-aggregation/tenant_billing_input_category.py on lines 0..269
myems-aggregation/tenant_billing_input_item.py on lines 0..269

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

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