LatvianPython/pyoracle_forms

View on GitHub
pyoracle_forms/constants.py

Summary

Maintainability
A
0 mins
Test Coverage

File constants.py has 587 lines of code (exceeds 250 allowed). Consider refactoring.
Invalid

import enum


class Justification(enum.IntEnum):
    left = 0
Severity: Major
Found in pyoracle_forms/constants.py - About 1 day to fix

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

    class ColumnType(enum.IntEnum):
        varchar2 = 0
        number = 1
        long = 2
        rowid = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 1 other location - About 7 hrs to fix
    pyoracle_forms/constants.py on lines 592..614

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

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

    class ArgumentType(enum.IntEnum):
        varchar2 = 0
        number = 1
        long = 2
        rowid = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 1 other location - About 7 hrs to fix
    pyoracle_forms/constants.py on lines 567..589

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

    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 13 locations. Consider refactoring.
    Invalid

    class FrameTitleFontSpacing(enum.IntEnum):
        ultradense = 0
        extradense = 1
        dense = 2
        semidense = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 12 other locations - About 2 hrs to fix
    pyoracle_forms/constants.py on lines 67..76
    pyoracle_forms/constants.py on lines 121..130
    pyoracle_forms/constants.py on lines 133..142
    pyoracle_forms/constants.py on lines 145..154
    pyoracle_forms/constants.py on lines 324..333
    pyoracle_forms/constants.py on lines 342..351
    pyoracle_forms/constants.py on lines 354..363
    pyoracle_forms/constants.py on lines 391..400
    pyoracle_forms/constants.py on lines 647..656
    pyoracle_forms/constants.py on lines 659..668
    pyoracle_forms/constants.py on lines 732..741
    pyoracle_forms/constants.py on lines 744..753

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

    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 13 locations. Consider refactoring.
    Invalid

    class FrameTitleFontWeight(enum.IntEnum):
        ultralight = 0
        extralight = 1
        light = 2
        demilight = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 12 other locations - About 2 hrs to fix
    pyoracle_forms/constants.py on lines 67..76
    pyoracle_forms/constants.py on lines 121..130
    pyoracle_forms/constants.py on lines 133..142
    pyoracle_forms/constants.py on lines 145..154
    pyoracle_forms/constants.py on lines 324..333
    pyoracle_forms/constants.py on lines 342..351
    pyoracle_forms/constants.py on lines 354..363
    pyoracle_forms/constants.py on lines 391..400
    pyoracle_forms/constants.py on lines 647..656
    pyoracle_forms/constants.py on lines 671..680
    pyoracle_forms/constants.py on lines 732..741
    pyoracle_forms/constants.py on lines 744..753

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

    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 13 locations. Consider refactoring.
    Invalid

    class GraphicsType(enum.IntEnum):
        arc = 0
        image = 1
        line = 2
        polygon = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 12 other locations - About 2 hrs to fix
    pyoracle_forms/constants.py on lines 67..76
    pyoracle_forms/constants.py on lines 121..130
    pyoracle_forms/constants.py on lines 133..142
    pyoracle_forms/constants.py on lines 145..154
    pyoracle_forms/constants.py on lines 324..333
    pyoracle_forms/constants.py on lines 342..351
    pyoracle_forms/constants.py on lines 354..363
    pyoracle_forms/constants.py on lines 647..656
    pyoracle_forms/constants.py on lines 659..668
    pyoracle_forms/constants.py on lines 671..680
    pyoracle_forms/constants.py on lines 732..741
    pyoracle_forms/constants.py on lines 744..753

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

    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 13 locations. Consider refactoring.
    Invalid

    class FontWeight(enum.IntEnum):
        ultralight = 0
        extralight = 1
        light = 2
        demilight = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 12 other locations - About 2 hrs to fix
    pyoracle_forms/constants.py on lines 67..76
    pyoracle_forms/constants.py on lines 121..130
    pyoracle_forms/constants.py on lines 145..154
    pyoracle_forms/constants.py on lines 324..333
    pyoracle_forms/constants.py on lines 342..351
    pyoracle_forms/constants.py on lines 354..363
    pyoracle_forms/constants.py on lines 391..400
    pyoracle_forms/constants.py on lines 647..656
    pyoracle_forms/constants.py on lines 659..668
    pyoracle_forms/constants.py on lines 671..680
    pyoracle_forms/constants.py on lines 732..741
    pyoracle_forms/constants.py on lines 744..753

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

    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 13 locations. Consider refactoring.
    Invalid

    class PromptFontSpacing(enum.IntEnum):
        ultradense = 0
        extradense = 1
        dense = 2
        semidense = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 12 other locations - About 2 hrs to fix
    pyoracle_forms/constants.py on lines 67..76
    pyoracle_forms/constants.py on lines 121..130
    pyoracle_forms/constants.py on lines 133..142
    pyoracle_forms/constants.py on lines 145..154
    pyoracle_forms/constants.py on lines 324..333
    pyoracle_forms/constants.py on lines 342..351
    pyoracle_forms/constants.py on lines 391..400
    pyoracle_forms/constants.py on lines 647..656
    pyoracle_forms/constants.py on lines 659..668
    pyoracle_forms/constants.py on lines 671..680
    pyoracle_forms/constants.py on lines 732..741
    pyoracle_forms/constants.py on lines 744..753

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

    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 13 locations. Consider refactoring.
    Invalid

    class FrameTitleFontStyle(enum.IntEnum):
        plain = 0
        italic = 1
        oblique = 2
        underline = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 12 other locations - About 2 hrs to fix
    pyoracle_forms/constants.py on lines 67..76
    pyoracle_forms/constants.py on lines 121..130
    pyoracle_forms/constants.py on lines 133..142
    pyoracle_forms/constants.py on lines 145..154
    pyoracle_forms/constants.py on lines 324..333
    pyoracle_forms/constants.py on lines 342..351
    pyoracle_forms/constants.py on lines 354..363
    pyoracle_forms/constants.py on lines 391..400
    pyoracle_forms/constants.py on lines 659..668
    pyoracle_forms/constants.py on lines 671..680
    pyoracle_forms/constants.py on lines 732..741
    pyoracle_forms/constants.py on lines 744..753

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

    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 13 locations. Consider refactoring.
    Invalid

    class FontStyle(enum.IntEnum):
        plain = 0
        italic = 1
        oblique = 2
        underline = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 12 other locations - About 2 hrs to fix
    pyoracle_forms/constants.py on lines 67..76
    pyoracle_forms/constants.py on lines 133..142
    pyoracle_forms/constants.py on lines 145..154
    pyoracle_forms/constants.py on lines 324..333
    pyoracle_forms/constants.py on lines 342..351
    pyoracle_forms/constants.py on lines 354..363
    pyoracle_forms/constants.py on lines 391..400
    pyoracle_forms/constants.py on lines 647..656
    pyoracle_forms/constants.py on lines 659..668
    pyoracle_forms/constants.py on lines 671..680
    pyoracle_forms/constants.py on lines 732..741
    pyoracle_forms/constants.py on lines 744..753

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

    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 13 locations. Consider refactoring.
    Invalid

    class FontSpacing(enum.IntEnum):
        ultradense = 0
        extradense = 1
        dense = 2
        semidense = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 12 other locations - About 2 hrs to fix
    pyoracle_forms/constants.py on lines 67..76
    pyoracle_forms/constants.py on lines 121..130
    pyoracle_forms/constants.py on lines 133..142
    pyoracle_forms/constants.py on lines 324..333
    pyoracle_forms/constants.py on lines 342..351
    pyoracle_forms/constants.py on lines 354..363
    pyoracle_forms/constants.py on lines 391..400
    pyoracle_forms/constants.py on lines 647..656
    pyoracle_forms/constants.py on lines 659..668
    pyoracle_forms/constants.py on lines 671..680
    pyoracle_forms/constants.py on lines 732..741
    pyoracle_forms/constants.py on lines 744..753

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

    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 13 locations. Consider refactoring.
    Invalid

    class PromptFontStyle(enum.IntEnum):
        plain = 0
        italic = 1
        oblique = 2
        underline = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 12 other locations - About 2 hrs to fix
    pyoracle_forms/constants.py on lines 67..76
    pyoracle_forms/constants.py on lines 121..130
    pyoracle_forms/constants.py on lines 133..142
    pyoracle_forms/constants.py on lines 145..154
    pyoracle_forms/constants.py on lines 342..351
    pyoracle_forms/constants.py on lines 354..363
    pyoracle_forms/constants.py on lines 391..400
    pyoracle_forms/constants.py on lines 647..656
    pyoracle_forms/constants.py on lines 659..668
    pyoracle_forms/constants.py on lines 671..680
    pyoracle_forms/constants.py on lines 732..741
    pyoracle_forms/constants.py on lines 744..753

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

    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 13 locations. Consider refactoring.
    Invalid

    class PromptFontWeight(enum.IntEnum):
        ultralight = 0
        extralight = 1
        light = 2
        demilight = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 12 other locations - About 2 hrs to fix
    pyoracle_forms/constants.py on lines 67..76
    pyoracle_forms/constants.py on lines 121..130
    pyoracle_forms/constants.py on lines 133..142
    pyoracle_forms/constants.py on lines 145..154
    pyoracle_forms/constants.py on lines 324..333
    pyoracle_forms/constants.py on lines 354..363
    pyoracle_forms/constants.py on lines 391..400
    pyoracle_forms/constants.py on lines 647..656
    pyoracle_forms/constants.py on lines 659..668
    pyoracle_forms/constants.py on lines 671..680
    pyoracle_forms/constants.py on lines 732..741
    pyoracle_forms/constants.py on lines 744..753

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

    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 13 locations. Consider refactoring.
    Invalid

    class GraphicFontSpacing(enum.IntEnum):
        ultradense = 0
        extradense = 1
        dense = 2
        semidense = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 12 other locations - About 2 hrs to fix
    pyoracle_forms/constants.py on lines 67..76
    pyoracle_forms/constants.py on lines 121..130
    pyoracle_forms/constants.py on lines 133..142
    pyoracle_forms/constants.py on lines 145..154
    pyoracle_forms/constants.py on lines 324..333
    pyoracle_forms/constants.py on lines 342..351
    pyoracle_forms/constants.py on lines 354..363
    pyoracle_forms/constants.py on lines 391..400
    pyoracle_forms/constants.py on lines 647..656
    pyoracle_forms/constants.py on lines 659..668
    pyoracle_forms/constants.py on lines 671..680
    pyoracle_forms/constants.py on lines 732..741

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

    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 13 locations. Consider refactoring.
    Invalid

    class GraphicFontWeight(enum.IntEnum):
        ultralight = 0
        extralight = 1
        light = 2
        demilight = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 12 other locations - About 2 hrs to fix
    pyoracle_forms/constants.py on lines 67..76
    pyoracle_forms/constants.py on lines 121..130
    pyoracle_forms/constants.py on lines 133..142
    pyoracle_forms/constants.py on lines 145..154
    pyoracle_forms/constants.py on lines 324..333
    pyoracle_forms/constants.py on lines 342..351
    pyoracle_forms/constants.py on lines 354..363
    pyoracle_forms/constants.py on lines 391..400
    pyoracle_forms/constants.py on lines 647..656
    pyoracle_forms/constants.py on lines 659..668
    pyoracle_forms/constants.py on lines 671..680
    pyoracle_forms/constants.py on lines 744..753

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

    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 13 locations. Consider refactoring.
    Invalid

    class ImageFormat(enum.IntEnum):
        bmp = 0
        cals = 1
        gif = 2
        jfif = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 12 other locations - About 2 hrs to fix
    pyoracle_forms/constants.py on lines 121..130
    pyoracle_forms/constants.py on lines 133..142
    pyoracle_forms/constants.py on lines 145..154
    pyoracle_forms/constants.py on lines 324..333
    pyoracle_forms/constants.py on lines 342..351
    pyoracle_forms/constants.py on lines 354..363
    pyoracle_forms/constants.py on lines 391..400
    pyoracle_forms/constants.py on lines 647..656
    pyoracle_forms/constants.py on lines 659..668
    pyoracle_forms/constants.py on lines 671..680
    pyoracle_forms/constants.py on lines 732..741
    pyoracle_forms/constants.py on lines 744..753

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

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

    class DashStyle(enum.IntEnum):
        solid = 0
        dotted = 1
        dashed = 2
        dash_dot = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 1 other location - About 1 hr to fix
    pyoracle_forms/constants.py on lines 767..774

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

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

    class EventType(enum.IntEnum):
        database = 0
        user_defined = 1
        system_client_idle = 2
        system_db_idle = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 1 other location - About 1 hr to fix
    pyoracle_forms/constants.py on lines 490..497

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

    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 5 locations. Consider refactoring.
    Invalid

    class TabAttachmentEdge(enum.IntEnum):
        top = 0
        bottom = 1
        left = 2
        right = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 4 other locations - About 50 mins to fix
    pyoracle_forms/constants.py on lines 24..30
    pyoracle_forms/constants.py on lines 256..262
    pyoracle_forms/constants.py on lines 403..409
    pyoracle_forms/constants.py on lines 699..705

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

    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 5 locations. Consider refactoring.
    Invalid

    class CompressionQuality(enum.IntEnum):
        none = 0
        minimum = 1
        low = 2
        medium = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 4 other locations - About 50 mins to fix
    pyoracle_forms/constants.py on lines 24..30
    pyoracle_forms/constants.py on lines 403..409
    pyoracle_forms/constants.py on lines 632..638
    pyoracle_forms/constants.py on lines 699..705

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

    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 5 locations. Consider refactoring.
    Invalid

    class ArrowStyle(enum.IntEnum):
        none = 0
        start = 1
        end = 2
        both_ends = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 4 other locations - About 50 mins to fix
    pyoracle_forms/constants.py on lines 24..30
    pyoracle_forms/constants.py on lines 256..262
    pyoracle_forms/constants.py on lines 632..638
    pyoracle_forms/constants.py on lines 699..705

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

    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 5 locations. Consider refactoring.
    Invalid

    class ReportDestinationType(enum.IntEnum):
        preview = 0
        file = 1
        printer = 2
        mail = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 4 other locations - About 50 mins to fix
    pyoracle_forms/constants.py on lines 24..30
    pyoracle_forms/constants.py on lines 256..262
    pyoracle_forms/constants.py on lines 403..409
    pyoracle_forms/constants.py on lines 632..638

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

    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 5 locations. Consider refactoring.
    Invalid

    class Bevel(enum.IntEnum):
        raised = 0
        lowered = 1
        none = 2
        inset = 3
    Severity: Major
    Found in pyoracle_forms/constants.py and 4 other locations - About 50 mins to fix
    pyoracle_forms/constants.py on lines 256..262
    pyoracle_forms/constants.py on lines 403..409
    pyoracle_forms/constants.py on lines 632..638
    pyoracle_forms/constants.py on lines 699..705

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

    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

    There are no issues that match your filters.

    Category
    Status