Showing 10,536 of 10,536 total issues

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

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

Severity: Major
Found in myems-api/core/energystoragecontainer.py and 1 other location - About 2 wks to fix
myems-api/core/microgrid.py on lines 4593..4779

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

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

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

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

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

Refactorings

Further Reading

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

Severity: Major
Found in myems-api/excelexporters/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 3 locations. Consider refactoring.
Open

Severity: Major
Found in myems-api/excelexporters/combinedequipmentbatch.py and 2 other locations - About 2 wks to fix
myems-api/excelexporters/equipmentbatch.py on lines 0..185
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 3 locations. Consider refactoring.
Open

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

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

File energystoragecontainer.py has 5435 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import uuid
import falcon
import mysql.connector
import simplejson as json
from core.useractivity import user_logger, admin_control, access_control, api_key_control
Severity: Major
Found in myems-api/core/energystoragecontainer.py - About 2 wks to fix

    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

    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/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/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

    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/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/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/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/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

    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

    Severity: Major
    Found in myems-aggregation/store_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_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

    Severity
    Category
    Status
    Source
    Language