christoph2/pyA2L

View on GitHub
pya2l/a2l_listener.py

Summary

Maintainability
F
1 mo
Test Coverage

A2LListener has 193 functions (exceeds 80 allowed). Consider refactoring.
Open

class A2LListener(BaseListener):
    """"""

    def exitAlignmentByte(self, ctx):
        alignmentBorder = ctx.alignmentBorder.value
Severity: Major
Found in pya2l/a2l_listener.py - About 2 days to fix

    Cyclomatic complexity is too high in function delist. (7)
    Open

    def delist(iterable, scalar=False):
        if len(iterable) == 0:
            if scalar:
                return None
            else:
    Severity: Minor
    Found in pya2l/a2l_listener.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Avoid too many return statements within this function.
    Open

                return [iterable[0]]
    Severity: Major
    Found in pya2l/a2l_listener.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  return iterable[0]
      Severity: Major
      Found in pya2l/a2l_listener.py - About 30 mins to fix

        TODO found
        Open

                # TODO: check length of following pairs.
        Severity: Minor
        Found in pya2l/a2l_listener.py by fixme

        TODO found
        Open

                # TODO: check length of following pairs.
        Severity: Minor
        Found in pya2l/a2l_listener.py by fixme

        TODO found
        Open

                numberValueTriples = ctx.numberValueTriples.value  # TODO: check length of following triples
        Severity: Minor
        Found in pya2l/a2l_listener.py by fixme

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

            def exitTypedefMeasurement(self, ctx):
                name = ctx.name.value
                longIdentifier = ctx.longIdentifier.value
                datatype = ctx.datatype.value
                conversion = ctx.conversion.value
        Severity: Major
        Found in pya2l/a2l_listener.py and 1 other location - About 1 day to fix
        pya2l/a2l_listener.py on lines 1006..1025

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

        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

            def exitTypedefCharacteristic(self, ctx):
                name = ctx.name.value
                longIdentifier = ctx.longIdentifier.value
                type_ = ctx.type_.text
                deposit = ctx.deposit_.value
        Severity: Major
        Found in pya2l/a2l_listener.py and 1 other location - About 1 day to fix
        pya2l/a2l_listener.py on lines 1027..1046

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

        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

            def exitAnnotation(self, ctx):
                v_annotationLabel = delist(self.getList(ctx.v_annotationLabel), True)
                v_annotationOrigin = delist(self.getList(ctx.v_annotationOrigin), True)
                v_annotationText = delist(self.getList(ctx.v_annotationText), True)
                ctx.value = model.Annotation(
        Severity: Major
        Found in pya2l/a2l_listener.py and 1 other location - About 5 hrs to fix
        pya2l/a2l_listener.py on lines 1087..1092

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

        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

            def exitBitOperation(self, ctx):
                v_leftShift = delist(self.getList(ctx.v_leftShift), True)
                v_rightShift = delist(self.getList(ctx.v_rightShift), True)
                v_signExtend = delist(self.getList(ctx.v_signExtend), True)
                ctx.value = model.BitOperation(left_shift=v_leftShift, right_shift=v_rightShift, sign_extend=v_signExtend)
        Severity: Major
        Found in pya2l/a2l_listener.py and 1 other location - About 5 hrs to fix
        pya2l/a2l_listener.py on lines 180..189

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

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

            def exitAxisRescale5(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                maxNumberOfRescalePairs = ctx.maxNumberOfRescalePairs.value
                indexIncr = ctx.indexIncr.value
        Severity: Major
        Found in pya2l/a2l_listener.py and 5 other locations - About 5 hrs to fix
        pya2l/a2l_listener.py on lines 1073..1080
        pya2l/a2l_listener.py on lines 1549..1562
        pya2l/a2l_listener.py on lines 1564..1577
        pya2l/a2l_listener.py on lines 1579..1592
        pya2l/a2l_listener.py on lines 1594..1607

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

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

            def exitAxisRescaleX(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                maxNumberOfRescalePairs = ctx.maxNumberOfRescalePairs.value
                indexIncr = ctx.indexIncr.value
        Severity: Major
        Found in pya2l/a2l_listener.py and 5 other locations - About 5 hrs to fix
        pya2l/a2l_listener.py on lines 1073..1080
        pya2l/a2l_listener.py on lines 1564..1577
        pya2l/a2l_listener.py on lines 1579..1592
        pya2l/a2l_listener.py on lines 1594..1607
        pya2l/a2l_listener.py on lines 1609..1622

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

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

            def exitAxisRescaleZ(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                maxNumberOfRescalePairs = ctx.maxNumberOfRescalePairs.value
                indexIncr = ctx.indexIncr.value
        Severity: Major
        Found in pya2l/a2l_listener.py and 5 other locations - About 5 hrs to fix
        pya2l/a2l_listener.py on lines 1073..1080
        pya2l/a2l_listener.py on lines 1549..1562
        pya2l/a2l_listener.py on lines 1564..1577
        pya2l/a2l_listener.py on lines 1594..1607
        pya2l/a2l_listener.py on lines 1609..1622

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

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

            def exitStructureComponent(self, ctx):
                name = ctx.name.value
                deposit = ctx.deposit_.value
                offset = ctx.offset.value
                link = ctx.link.value
        Severity: Major
        Found in pya2l/a2l_listener.py and 5 other locations - About 5 hrs to fix
        pya2l/a2l_listener.py on lines 1549..1562
        pya2l/a2l_listener.py on lines 1564..1577
        pya2l/a2l_listener.py on lines 1579..1592
        pya2l/a2l_listener.py on lines 1594..1607
        pya2l/a2l_listener.py on lines 1609..1622

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

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

            def exitAxisRescaleY(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                maxNumberOfRescalePairs = ctx.maxNumberOfRescalePairs.value
                indexIncr = ctx.indexIncr.value
        Severity: Major
        Found in pya2l/a2l_listener.py and 5 other locations - About 5 hrs to fix
        pya2l/a2l_listener.py on lines 1073..1080
        pya2l/a2l_listener.py on lines 1549..1562
        pya2l/a2l_listener.py on lines 1579..1592
        pya2l/a2l_listener.py on lines 1594..1607
        pya2l/a2l_listener.py on lines 1609..1622

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

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

            def exitAxisRescale4(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                maxNumberOfRescalePairs = ctx.maxNumberOfRescalePairs.value
                indexIncr = ctx.indexIncr.value
        Severity: Major
        Found in pya2l/a2l_listener.py and 5 other locations - About 5 hrs to fix
        pya2l/a2l_listener.py on lines 1073..1080
        pya2l/a2l_listener.py on lines 1549..1562
        pya2l/a2l_listener.py on lines 1564..1577
        pya2l/a2l_listener.py on lines 1579..1592
        pya2l/a2l_listener.py on lines 1609..1622

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

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

            def exitAxisPtsY(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                indexIncr = ctx.indexIncr.value
                addressing = ctx.addressing.value
        Severity: Major
        Found in pya2l/a2l_listener.py and 6 other locations - About 4 hrs to fix
        pya2l/a2l_listener.py on lines 1048..1054
        pya2l/a2l_listener.py on lines 1484..1495
        pya2l/a2l_listener.py on lines 1510..1521
        pya2l/a2l_listener.py on lines 1523..1534
        pya2l/a2l_listener.py on lines 1536..1547
        pya2l/a2l_listener.py on lines 1679..1690

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

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

            def exitInstance(self, ctx):
                name = ctx.name.value
                longIdentifier = ctx.longIdentifier.value
                typeName = ctx.typeName.value
                address = ctx.address.value
        Severity: Major
        Found in pya2l/a2l_listener.py and 6 other locations - About 4 hrs to fix
        pya2l/a2l_listener.py on lines 1484..1495
        pya2l/a2l_listener.py on lines 1497..1508
        pya2l/a2l_listener.py on lines 1510..1521
        pya2l/a2l_listener.py on lines 1523..1534
        pya2l/a2l_listener.py on lines 1536..1547
        pya2l/a2l_listener.py on lines 1679..1690

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

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

            def exitAxisPtsZ(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                indexIncr = ctx.indexIncr.value
                addressing = ctx.addressing.value
        Severity: Major
        Found in pya2l/a2l_listener.py and 6 other locations - About 4 hrs to fix
        pya2l/a2l_listener.py on lines 1048..1054
        pya2l/a2l_listener.py on lines 1484..1495
        pya2l/a2l_listener.py on lines 1497..1508
        pya2l/a2l_listener.py on lines 1523..1534
        pya2l/a2l_listener.py on lines 1536..1547
        pya2l/a2l_listener.py on lines 1679..1690

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

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

            def exitAxisPtsX(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                indexIncr = ctx.indexIncr.value
                addressing = ctx.addressing.value
        Severity: Major
        Found in pya2l/a2l_listener.py and 6 other locations - About 4 hrs to fix
        pya2l/a2l_listener.py on lines 1048..1054
        pya2l/a2l_listener.py on lines 1497..1508
        pya2l/a2l_listener.py on lines 1510..1521
        pya2l/a2l_listener.py on lines 1523..1534
        pya2l/a2l_listener.py on lines 1536..1547
        pya2l/a2l_listener.py on lines 1679..1690

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

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

            def exitAxisPts4(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                indexIncr = ctx.indexIncr.value
                addressing = ctx.addressing.value
        Severity: Major
        Found in pya2l/a2l_listener.py and 6 other locations - About 4 hrs to fix
        pya2l/a2l_listener.py on lines 1048..1054
        pya2l/a2l_listener.py on lines 1484..1495
        pya2l/a2l_listener.py on lines 1497..1508
        pya2l/a2l_listener.py on lines 1510..1521
        pya2l/a2l_listener.py on lines 1536..1547
        pya2l/a2l_listener.py on lines 1679..1690

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

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

            def exitFncValues(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                indexMode = ctx.indexMode.text
                addresstype = ctx.addresstype.value
        Severity: Major
        Found in pya2l/a2l_listener.py and 6 other locations - About 4 hrs to fix
        pya2l/a2l_listener.py on lines 1048..1054
        pya2l/a2l_listener.py on lines 1484..1495
        pya2l/a2l_listener.py on lines 1497..1508
        pya2l/a2l_listener.py on lines 1510..1521
        pya2l/a2l_listener.py on lines 1523..1534
        pya2l/a2l_listener.py on lines 1536..1547

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

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

            def exitAxisPts5(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                indexIncr = ctx.indexIncr.value
                addressing = ctx.addressing.value
        Severity: Major
        Found in pya2l/a2l_listener.py and 6 other locations - About 4 hrs to fix
        pya2l/a2l_listener.py on lines 1048..1054
        pya2l/a2l_listener.py on lines 1484..1495
        pya2l/a2l_listener.py on lines 1497..1508
        pya2l/a2l_listener.py on lines 1510..1521
        pya2l/a2l_listener.py on lines 1523..1534
        pya2l/a2l_listener.py on lines 1679..1690

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

        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

            def exitFixAxisPar(self, ctx):
                offset = ctx.offset.value
                shift = ctx.shift.value
                numberapo = ctx.numberapo.value
                ctx.value = model.FixAxisPar(offset=offset, shift=shift, numberapo=numberapo)
        Severity: Major
        Found in pya2l/a2l_listener.py and 1 other location - About 3 hrs to fix
        pya2l/a2l_listener.py on lines 630..635

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

        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

            def exitFixAxisParDist(self, ctx):
                offset = ctx.offset.value
                distance = ctx.distance.value
                numberapo = ctx.numberapo.value
                ctx.value = model.FixAxisParDist(offset=offset, distance=distance, numberapo=numberapo)
        Severity: Major
        Found in pya2l/a2l_listener.py and 1 other location - About 3 hrs to fix
        pya2l/a2l_listener.py on lines 623..628

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

        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

            def exitDependentCharacteristic(self, ctx):
                formula_ = ctx.formula_.value
                characteristic_ = self.getList(ctx.characteristic_)
                ctx.value = model.DependentCharacteristic(formula=formula_, characteristic_id=characteristic_)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 1 other location - About 3 hrs to fix
        pya2l/a2l_listener.py on lines 668..672

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

        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

            def exitVirtualCharacteristic(self, ctx):
                formula_ = ctx.formula_.value
                characteristic_ = self.getList(ctx.characteristic_)
                ctx.value = model.VirtualCharacteristic(formula=formula_, characteristic_id=characteristic_)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 1 other location - About 3 hrs to fix
        pya2l/a2l_listener.py on lines 652..656

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

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

            def exitRipAddrW(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.RipAddrW(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitSrcAddrZ(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.SrcAddrZ(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitNoAxisPts4(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.NoAxisPts4(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitNoRescaleY(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.NoRescaleY(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitSrcAddr4(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.SrcAddr4(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitNoRescale5(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.NoRescale5(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitNoAxisPts5(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.NoAxisPts5(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitOffsetZ(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.OffsetZ(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitOffset5(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.Offset5(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitDistOp5(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.DistOp5(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitNoRescaleX(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.NoRescaleX(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitReserved(self, ctx):
                position = ctx.position.value
                dataSize = ctx.dataSize_.value
                ctx.value = model.Reserved(position=position, dataSize=dataSize)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitRipAddrZ(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.RipAddrZ(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitShiftOpZ(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.ShiftOpZ(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitSystemConstant(self, ctx):
                name = ctx.name.value
                value_ = ctx.value_.value
                ctx.value = model.SystemConstant(name=name, value=value_)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitNoAxisPtsX(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.NoAxisPtsX(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitOffsetY(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.OffsetY(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitDistOpX(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.DistOpX(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitOffset4(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.Offset4(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitRipAddr5(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.RipAddr5(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitCoeffsLinear(self, ctx):
                a = ctx.a.value
                b = ctx.b.value
                ctx.value = model.CoeffsLinear(a=a, b=b)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitSrcAddr5(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.SrcAddr5(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitUnitConversion(self, ctx):
                gradient = ctx.gradient.value
                offset = ctx.offset.value
                ctx.value = model.UnitConversion(gradient=gradient, offset=offset)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892

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

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

            def exitDistOpY(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.DistOpY(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitDistOpZ(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.DistOpZ(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitRipAddrX(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.RipAddrX(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitSrcAddrX(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.SrcAddrX(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitSymbolLink(self, ctx):
                symbolName = ctx.symbolName.value
                offset = ctx.offset.value
                ctx.value = model.SymbolLink(symbolName=symbolName, offset=offset)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitNoAxisPtsY(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.NoAxisPtsY(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitNoAxisPtsZ(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.NoAxisPtsZ(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitNoRescaleZ(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.NoRescaleZ(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitOffsetX(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.OffsetX(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitMaxRefresh(self, ctx):
                scalingUnit = ctx.scalingUnit.value
                rate = ctx.rate.value
                ctx.value = model.MaxRefresh(scalingUnit=scalingUnit, rate=rate)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitDistOp4(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.DistOp4(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitRipAddr4(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.RipAddr4(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitShiftOpY(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.ShiftOpY(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitShiftOp4(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.ShiftOp4(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitNoRescale4(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.NoRescale4(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitA2mlVersion(self, ctx):
                versionNo = ctx.versionNo.value
                upgradeNo = ctx.upgradeNo.value
                ctx.value = model.A2mlVersion(versionNo=versionNo, upgradeNo=upgradeNo)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitIdentification(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.Identification(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitShiftOpX(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.ShiftOpX(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitExtendedLimits(self, ctx):
                lowerLimit = ctx.lowerLimit.value
                upperLimit = ctx.upperLimit.value
                ctx.value = model.ExtendedLimits(lowerLimit=lowerLimit, upperLimit=upperLimit)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitRipAddrY(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.RipAddrY(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitShiftOp5(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.ShiftOp5(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1870..1874
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

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

            def exitSrcAddrY(self, ctx):
                position = ctx.position.value
                datatype = ctx.datatype.value
                ctx.value = model.SrcAddrY(position=position, datatype=datatype)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 44 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 246..250
        pya2l/a2l_listener.py on lines 285..289
        pya2l/a2l_listener.py on lines 325..329
        pya2l/a2l_listener.py on lines 346..350
        pya2l/a2l_listener.py on lines 712..716
        pya2l/a2l_listener.py on lines 1340..1344
        pya2l/a2l_listener.py on lines 1624..1628
        pya2l/a2l_listener.py on lines 1630..1634
        pya2l/a2l_listener.py on lines 1636..1640
        pya2l/a2l_listener.py on lines 1642..1646
        pya2l/a2l_listener.py on lines 1648..1652
        pya2l/a2l_listener.py on lines 1692..1696
        pya2l/a2l_listener.py on lines 1698..1702
        pya2l/a2l_listener.py on lines 1704..1708
        pya2l/a2l_listener.py on lines 1710..1714
        pya2l/a2l_listener.py on lines 1716..1720
        pya2l/a2l_listener.py on lines 1722..1726
        pya2l/a2l_listener.py on lines 1732..1736
        pya2l/a2l_listener.py on lines 1738..1742
        pya2l/a2l_listener.py on lines 1744..1748
        pya2l/a2l_listener.py on lines 1750..1754
        pya2l/a2l_listener.py on lines 1756..1760
        pya2l/a2l_listener.py on lines 1762..1766
        pya2l/a2l_listener.py on lines 1768..1772
        pya2l/a2l_listener.py on lines 1774..1778
        pya2l/a2l_listener.py on lines 1780..1784
        pya2l/a2l_listener.py on lines 1786..1790
        pya2l/a2l_listener.py on lines 1792..1796
        pya2l/a2l_listener.py on lines 1798..1802
        pya2l/a2l_listener.py on lines 1804..1808
        pya2l/a2l_listener.py on lines 1810..1814
        pya2l/a2l_listener.py on lines 1816..1820
        pya2l/a2l_listener.py on lines 1822..1826
        pya2l/a2l_listener.py on lines 1828..1832
        pya2l/a2l_listener.py on lines 1834..1838
        pya2l/a2l_listener.py on lines 1840..1844
        pya2l/a2l_listener.py on lines 1846..1850
        pya2l/a2l_listener.py on lines 1852..1856
        pya2l/a2l_listener.py on lines 1858..1862
        pya2l/a2l_listener.py on lines 1864..1868
        pya2l/a2l_listener.py on lines 1876..1880
        pya2l/a2l_listener.py on lines 1882..1886
        pya2l/a2l_listener.py on lines 1888..1892
        pya2l/a2l_listener.py on lines 1934..1938

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

        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

                for inVal, outVal in pairs:
                    pair = model.CompuVtabPair(inVal=inVal, outVal=outVal)
                    self.db.session.add(pair)
                    ctx.value.pairs.append(pair)
        Severity: Major
        Found in pya2l/a2l_listener.py and 2 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 761..764
        pya2l/a2l_listener.py on lines 2023..2026

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

                for name, value in pairs:
                    pair = model.VarForbiddedCombPair(criterionName=name, criterionValue=value)
                    self.db.session.add(pair)
                    ctx.value.pairs.append(pair)
        Severity: Major
        Found in pya2l/a2l_listener.py and 2 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 761..764
        pya2l/a2l_listener.py on lines 792..795

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

                for inVal, outVal in pairs:
                    pair = model.CompuTabPair(inVal=inVal, outVal=outVal)
                    self.db.session.add(pair)
                    ctx.value.pairs.append(pair)
        Severity: Major
        Found in pya2l/a2l_listener.py and 2 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 792..795
        pya2l/a2l_listener.py on lines 2023..2026

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

            def exitVarAddress(self, ctx):
                address = self.getList(ctx.address)
                ctx.value = model.VarAddress(address=address)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 15 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 201..204
        pya2l/a2l_listener.py on lines 257..260
        pya2l/a2l_listener.py on lines 305..308
        pya2l/a2l_listener.py on lines 637..640
        pya2l/a2l_listener.py on lines 658..661
        pya2l/a2l_listener.py on lines 839..842
        pya2l/a2l_listener.py on lines 873..876
        pya2l/a2l_listener.py on lines 883..886
        pya2l/a2l_listener.py on lines 888..891
        pya2l/a2l_listener.py on lines 893..896
        pya2l/a2l_listener.py on lines 898..901
        pya2l/a2l_listener.py on lines 928..931
        pya2l/a2l_listener.py on lines 937..940
        pya2l/a2l_listener.py on lines 1127..1130
        pya2l/a2l_listener.py on lines 1949..1952

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

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

            def exitDefCharacteristic(self, ctx):
                identifier = self.getList(ctx.identifier)
                ctx.value = model.DefCharacteristic(identifier=identifier)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 15 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 201..204
        pya2l/a2l_listener.py on lines 257..260
        pya2l/a2l_listener.py on lines 305..308
        pya2l/a2l_listener.py on lines 637..640
        pya2l/a2l_listener.py on lines 658..661
        pya2l/a2l_listener.py on lines 839..842
        pya2l/a2l_listener.py on lines 883..886
        pya2l/a2l_listener.py on lines 888..891
        pya2l/a2l_listener.py on lines 893..896
        pya2l/a2l_listener.py on lines 898..901
        pya2l/a2l_listener.py on lines 928..931
        pya2l/a2l_listener.py on lines 937..940
        pya2l/a2l_listener.py on lines 1127..1130
        pya2l/a2l_listener.py on lines 1949..1952
        pya2l/a2l_listener.py on lines 1986..1989

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

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

            def exitAnnotationText(self, ctx):
                text = self.getList(ctx.text)
                ctx.value = model.AnnotationText(text=text)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 15 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 257..260
        pya2l/a2l_listener.py on lines 305..308
        pya2l/a2l_listener.py on lines 637..640
        pya2l/a2l_listener.py on lines 658..661
        pya2l/a2l_listener.py on lines 839..842
        pya2l/a2l_listener.py on lines 873..876
        pya2l/a2l_listener.py on lines 883..886
        pya2l/a2l_listener.py on lines 888..891
        pya2l/a2l_listener.py on lines 893..896
        pya2l/a2l_listener.py on lines 898..901
        pya2l/a2l_listener.py on lines 928..931
        pya2l/a2l_listener.py on lines 937..940
        pya2l/a2l_listener.py on lines 1127..1130
        pya2l/a2l_listener.py on lines 1949..1952
        pya2l/a2l_listener.py on lines 1986..1989

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

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

            def exitSubFunction(self, ctx):
                identifier = self.getList(ctx.identifier)
                ctx.value = model.SubFunction(identifier=identifier)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 15 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 201..204
        pya2l/a2l_listener.py on lines 257..260
        pya2l/a2l_listener.py on lines 305..308
        pya2l/a2l_listener.py on lines 637..640
        pya2l/a2l_listener.py on lines 658..661
        pya2l/a2l_listener.py on lines 839..842
        pya2l/a2l_listener.py on lines 873..876
        pya2l/a2l_listener.py on lines 883..886
        pya2l/a2l_listener.py on lines 888..891
        pya2l/a2l_listener.py on lines 893..896
        pya2l/a2l_listener.py on lines 928..931
        pya2l/a2l_listener.py on lines 937..940
        pya2l/a2l_listener.py on lines 1127..1130
        pya2l/a2l_listener.py on lines 1949..1952
        pya2l/a2l_listener.py on lines 1986..1989

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

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

            def exitLocMeasurement(self, ctx):
                identifier = self.getList(ctx.identifier)
                ctx.value = model.LocMeasurement(identifier=identifier)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 15 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 201..204
        pya2l/a2l_listener.py on lines 257..260
        pya2l/a2l_listener.py on lines 305..308
        pya2l/a2l_listener.py on lines 637..640
        pya2l/a2l_listener.py on lines 658..661
        pya2l/a2l_listener.py on lines 839..842
        pya2l/a2l_listener.py on lines 873..876
        pya2l/a2l_listener.py on lines 883..886
        pya2l/a2l_listener.py on lines 893..896
        pya2l/a2l_listener.py on lines 898..901
        pya2l/a2l_listener.py on lines 928..931
        pya2l/a2l_listener.py on lines 937..940
        pya2l/a2l_listener.py on lines 1127..1130
        pya2l/a2l_listener.py on lines 1949..1952
        pya2l/a2l_listener.py on lines 1986..1989

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

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

            def exitMapList(self, ctx):
                name = self.getList(ctx.name)
                ctx.value = model.MapList(name=name)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 15 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 201..204
        pya2l/a2l_listener.py on lines 257..260
        pya2l/a2l_listener.py on lines 305..308
        pya2l/a2l_listener.py on lines 637..640
        pya2l/a2l_listener.py on lines 839..842
        pya2l/a2l_listener.py on lines 873..876
        pya2l/a2l_listener.py on lines 883..886
        pya2l/a2l_listener.py on lines 888..891
        pya2l/a2l_listener.py on lines 893..896
        pya2l/a2l_listener.py on lines 898..901
        pya2l/a2l_listener.py on lines 928..931
        pya2l/a2l_listener.py on lines 937..940
        pya2l/a2l_listener.py on lines 1127..1130
        pya2l/a2l_listener.py on lines 1949..1952
        pya2l/a2l_listener.py on lines 1986..1989

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

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

            def exitOutMeasurement(self, ctx):
                identifier = self.getList(ctx.identifier)
                ctx.value = model.OutMeasurement(identifier=identifier)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 15 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 201..204
        pya2l/a2l_listener.py on lines 257..260
        pya2l/a2l_listener.py on lines 305..308
        pya2l/a2l_listener.py on lines 637..640
        pya2l/a2l_listener.py on lines 658..661
        pya2l/a2l_listener.py on lines 839..842
        pya2l/a2l_listener.py on lines 873..876
        pya2l/a2l_listener.py on lines 883..886
        pya2l/a2l_listener.py on lines 888..891
        pya2l/a2l_listener.py on lines 898..901
        pya2l/a2l_listener.py on lines 928..931
        pya2l/a2l_listener.py on lines 937..940
        pya2l/a2l_listener.py on lines 1127..1130
        pya2l/a2l_listener.py on lines 1949..1952
        pya2l/a2l_listener.py on lines 1986..1989

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

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

            def exitFixAxisParList(self, ctx):
                axisPts_Value = self.getList(ctx.axisPts_Value)
                ctx.value = model.FixAxisParList(axisPts_Value=axisPts_Value)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 15 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 201..204
        pya2l/a2l_listener.py on lines 257..260
        pya2l/a2l_listener.py on lines 305..308
        pya2l/a2l_listener.py on lines 658..661
        pya2l/a2l_listener.py on lines 839..842
        pya2l/a2l_listener.py on lines 873..876
        pya2l/a2l_listener.py on lines 883..886
        pya2l/a2l_listener.py on lines 888..891
        pya2l/a2l_listener.py on lines 893..896
        pya2l/a2l_listener.py on lines 898..901
        pya2l/a2l_listener.py on lines 928..931
        pya2l/a2l_listener.py on lines 937..940
        pya2l/a2l_listener.py on lines 1127..1130
        pya2l/a2l_listener.py on lines 1949..1952
        pya2l/a2l_listener.py on lines 1986..1989

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

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

            def exitFunctionList(self, ctx):
                name = self.getList(ctx.name)
                ctx.value = model.FunctionList(name=name)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 15 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 201..204
        pya2l/a2l_listener.py on lines 305..308
        pya2l/a2l_listener.py on lines 637..640
        pya2l/a2l_listener.py on lines 658..661
        pya2l/a2l_listener.py on lines 839..842
        pya2l/a2l_listener.py on lines 873..876
        pya2l/a2l_listener.py on lines 883..886
        pya2l/a2l_listener.py on lines 888..891
        pya2l/a2l_listener.py on lines 893..896
        pya2l/a2l_listener.py on lines 898..901
        pya2l/a2l_listener.py on lines 928..931
        pya2l/a2l_listener.py on lines 937..940
        pya2l/a2l_listener.py on lines 1127..1130
        pya2l/a2l_listener.py on lines 1949..1952
        pya2l/a2l_listener.py on lines 1986..1989

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

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

            def exitInMeasurement(self, ctx):
                identifier = self.getList(ctx.identifier)
                ctx.value = model.InMeasurement(identifier=identifier)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 15 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 201..204
        pya2l/a2l_listener.py on lines 257..260
        pya2l/a2l_listener.py on lines 305..308
        pya2l/a2l_listener.py on lines 637..640
        pya2l/a2l_listener.py on lines 658..661
        pya2l/a2l_listener.py on lines 839..842
        pya2l/a2l_listener.py on lines 873..876
        pya2l/a2l_listener.py on lines 888..891
        pya2l/a2l_listener.py on lines 893..896
        pya2l/a2l_listener.py on lines 898..901
        pya2l/a2l_listener.py on lines 928..931
        pya2l/a2l_listener.py on lines 937..940
        pya2l/a2l_listener.py on lines 1127..1130
        pya2l/a2l_listener.py on lines 1949..1952
        pya2l/a2l_listener.py on lines 1986..1989

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

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

            def exitRefMeasurement(self, ctx):
                identifier = self.getList(ctx.identifier)
                ctx.value = model.RefMeasurement(identifier=identifier)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 15 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 201..204
        pya2l/a2l_listener.py on lines 257..260
        pya2l/a2l_listener.py on lines 305..308
        pya2l/a2l_listener.py on lines 637..640
        pya2l/a2l_listener.py on lines 658..661
        pya2l/a2l_listener.py on lines 839..842
        pya2l/a2l_listener.py on lines 873..876
        pya2l/a2l_listener.py on lines 883..886
        pya2l/a2l_listener.py on lines 888..891
        pya2l/a2l_listener.py on lines 893..896
        pya2l/a2l_listener.py on lines 898..901
        pya2l/a2l_listener.py on lines 937..940
        pya2l/a2l_listener.py on lines 1127..1130
        pya2l/a2l_listener.py on lines 1949..1952
        pya2l/a2l_listener.py on lines 1986..1989

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

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

            def exitSubGroup(self, ctx):
                identifier = self.getList(ctx.identifier)
                ctx.value = model.SubGroup(identifier=identifier)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 15 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 201..204
        pya2l/a2l_listener.py on lines 257..260
        pya2l/a2l_listener.py on lines 305..308
        pya2l/a2l_listener.py on lines 637..640
        pya2l/a2l_listener.py on lines 658..661
        pya2l/a2l_listener.py on lines 839..842
        pya2l/a2l_listener.py on lines 873..876
        pya2l/a2l_listener.py on lines 883..886
        pya2l/a2l_listener.py on lines 888..891
        pya2l/a2l_listener.py on lines 893..896
        pya2l/a2l_listener.py on lines 898..901
        pya2l/a2l_listener.py on lines 928..931
        pya2l/a2l_listener.py on lines 1127..1130
        pya2l/a2l_listener.py on lines 1949..1952
        pya2l/a2l_listener.py on lines 1986..1989

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

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

            def exitRefGroup(self, ctx):
                identifier = self.getList(ctx.identifier)
                ctx.value = model.RefGroup(identifier=identifier)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 15 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 201..204
        pya2l/a2l_listener.py on lines 257..260
        pya2l/a2l_listener.py on lines 305..308
        pya2l/a2l_listener.py on lines 637..640
        pya2l/a2l_listener.py on lines 658..661
        pya2l/a2l_listener.py on lines 839..842
        pya2l/a2l_listener.py on lines 873..876
        pya2l/a2l_listener.py on lines 883..886
        pya2l/a2l_listener.py on lines 888..891
        pya2l/a2l_listener.py on lines 893..896
        pya2l/a2l_listener.py on lines 898..901
        pya2l/a2l_listener.py on lines 928..931
        pya2l/a2l_listener.py on lines 937..940
        pya2l/a2l_listener.py on lines 1127..1130
        pya2l/a2l_listener.py on lines 1986..1989

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

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

            def exitFrameMeasurement(self, ctx):
                identifier = self.getList(ctx.identifier)
                ctx.value = model.FrameMeasurement(identifier=identifier)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 15 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 201..204
        pya2l/a2l_listener.py on lines 257..260
        pya2l/a2l_listener.py on lines 305..308
        pya2l/a2l_listener.py on lines 637..640
        pya2l/a2l_listener.py on lines 658..661
        pya2l/a2l_listener.py on lines 873..876
        pya2l/a2l_listener.py on lines 883..886
        pya2l/a2l_listener.py on lines 888..891
        pya2l/a2l_listener.py on lines 893..896
        pya2l/a2l_listener.py on lines 898..901
        pya2l/a2l_listener.py on lines 928..931
        pya2l/a2l_listener.py on lines 937..940
        pya2l/a2l_listener.py on lines 1127..1130
        pya2l/a2l_listener.py on lines 1949..1952
        pya2l/a2l_listener.py on lines 1986..1989

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

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

            def exitRefCharacteristic(self, ctx):
                identifier = self.getList(ctx.identifier)
                ctx.value = model.RefCharacteristic(identifier=identifier)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 15 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 201..204
        pya2l/a2l_listener.py on lines 257..260
        pya2l/a2l_listener.py on lines 637..640
        pya2l/a2l_listener.py on lines 658..661
        pya2l/a2l_listener.py on lines 839..842
        pya2l/a2l_listener.py on lines 873..876
        pya2l/a2l_listener.py on lines 883..886
        pya2l/a2l_listener.py on lines 888..891
        pya2l/a2l_listener.py on lines 893..896
        pya2l/a2l_listener.py on lines 898..901
        pya2l/a2l_listener.py on lines 928..931
        pya2l/a2l_listener.py on lines 937..940
        pya2l/a2l_listener.py on lines 1127..1130
        pya2l/a2l_listener.py on lines 1949..1952
        pya2l/a2l_listener.py on lines 1986..1989

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

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

            def exitVirtual(self, ctx):
                measuringChannel = self.getList(ctx.measuringChannel)
                ctx.value = model.Virtual(measuringChannel=measuringChannel)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 15 other locations - About 2 hrs to fix
        pya2l/a2l_listener.py on lines 201..204
        pya2l/a2l_listener.py on lines 257..260
        pya2l/a2l_listener.py on lines 305..308
        pya2l/a2l_listener.py on lines 637..640
        pya2l/a2l_listener.py on lines 658..661
        pya2l/a2l_listener.py on lines 839..842
        pya2l/a2l_listener.py on lines 873..876
        pya2l/a2l_listener.py on lines 883..886
        pya2l/a2l_listener.py on lines 888..891
        pya2l/a2l_listener.py on lines 893..896
        pya2l/a2l_listener.py on lines 898..901
        pya2l/a2l_listener.py on lines 928..931
        pya2l/a2l_listener.py on lines 937..940
        pya2l/a2l_listener.py on lines 1949..1952
        pya2l/a2l_listener.py on lines 1986..1989

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

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

            def exitAlignmentFloat32Ieee(self, ctx):
                alignmentBorder = ctx.alignmentBorder.value
                ctx.value = model.AlignmentFloat32Ieee(alignmentBorder=alignmentBorder)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitNumber(self, ctx):
                number_ = ctx.number_.value
                ctx.value = model.Number(number=number_)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitPhoneNo(self, ctx):
                telnum = ctx.telnum.value
                ctx.value = model.PhoneNo(telnum=telnum)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitVarNaming(self, ctx):
                tag = ctx.tag.text
                ctx.value = model.VarNaming(tag=tag)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitDeposit(self, ctx):
                mode_ = ctx.mode_.text
                ctx.value = model.Deposit(mode=mode_)
        
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitRightShift(self, ctx):
                bitcount = ctx.bitcount.value
                ctx.value = model.RightShift(bitcount=bitcount)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitAlignmentLong(self, ctx):
                alignmentBorder = ctx.alignmentBorder.value
                ctx.value = model.AlignmentLong(alignmentBorder=alignmentBorder)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitPhysUnit(self, ctx):
                unit_ = ctx.unit_.value
                ctx.value = model.PhysUnit(unit=unit_)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitRefMemorySegment(self, ctx):
                name = ctx.name.value
                ctx.value = model.RefMemorySegment(name=name)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitVersion(self, ctx):
                versionIdentifier = ctx.versionIdentifier.value
                ctx.value = model.Version(versionIdentifier=versionIdentifier)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitFixNoAxisPtsZ(self, ctx):
                numberOfAxisPoints = ctx.numberOfAxisPoints.value
                ctx.value = model.FixNoAxisPtsZ(numberOfAxisPoints=numberOfAxisPoints)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitVarSeparator(self, ctx):
                separator = ctx.separator.value
                ctx.value = model.VarSeparator(separator=separator)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032

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

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

            def exitComparisonQuantity(self, ctx):
                name = ctx.name.value
                ctx.value = model.ComparisonQuantity(name=name)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitAddrEpk(self, ctx):
                address = ctx.address.value
                ctx.value = model.AddrEpk(address=address)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitCalibrationHandleText(self, ctx):
                text = ctx.text.value
                ctx.value = model.CalibrationHandleText(text=text)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitNoOfInterfaces(self, ctx):
                num = ctx.num.value
                ctx.value = model.NoOfInterfaces(num=num)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitRefUnit(self, ctx):
                unit_ = ctx.unit_.value
                ctx.value = model.RefUnit(unit=unit_)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitSupplier(self, ctx):
                manufacturer = ctx.manufacturer.value
                ctx.value = model.Supplier(manufacturer=manufacturer)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitEcu(self, ctx):
                controlUnit = ctx.controlUnit.value
                ctx.value = model.Ecu(controlUnit=controlUnit)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitFixNoAxisPtsX(self, ctx):
                numberOfAxisPoints = ctx.numberOfAxisPoints.value
                ctx.value = model.FixNoAxisPtsX(numberOfAxisPoints=numberOfAxisPoints)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitAlignmentByte(self, ctx):
                alignmentBorder = ctx.alignmentBorder.value
                ctx.value = model.AlignmentByte(alignmentBorder=alignmentBorder)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitDefaultValue(self, ctx):
                display_string = ctx.display_string.value
                ctx.value = model.DefaultValue(display_string=display_string)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitFunctionVersion(self, ctx):
                versionIdentifier = ctx.versionIdentifier.value
                ctx.value = model.FunctionVersion(versionIdentifier=versionIdentifier)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitErrorMask(self, ctx):
                mask = ctx.mask.value
                ctx.value = model.ErrorMask(mask=mask)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitUser(self, ctx):
                userName = ctx.userName.value
                ctx.value = model.User(userName=userName)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitFixNoAxisPts4(self, ctx):
                numberOfAxisPoints = ctx.numberOfAxisPoints.value
                ctx.value = model.FixNoAxisPts4(numberOfAxisPoints=numberOfAxisPoints)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitAlignmentWord(self, ctx):
                alignmentBorder = ctx.alignmentBorder.value
                ctx.value = model.AlignmentWord(alignmentBorder=alignmentBorder)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitEcuAddressExtension(self, ctx):
                extension = ctx.extension.value
                ctx.value = model.EcuAddressExtension(extension=extension)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitMonotony(self, ctx):
                monotony_ = ctx.monotony_.text
                ctx.value = model.Monotony(monotony=monotony_)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitStepSize(self, ctx):
                stepSize_ = ctx.stepSize_.value
                ctx.value = model.StepSize(stepSize=stepSize_)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitMaxGrad(self, ctx):
                maxGradient = ctx.maxGradient.value
                ctx.value = model.MaxGrad(maxGradient=maxGradient)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitCalibrationAccess(self, ctx):
                type_ = ctx.type_.text
                ctx.value = model.CalibrationAccess(type=type_)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitProjectNo(self, ctx):
                projectNumber = ctx.projectNumber.value
                ctx.value = model.ProjectNo(projectNumber=projectNumber)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitAxisPtsRef(self, ctx):
                axisPoints = ctx.axisPoints.value
                ctx.value = model.AxisPtsRef(axisPoints=axisPoints)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitStatusStringRef(self, ctx):
                conversionTable = ctx.conversionTable.value
                ctx.value = model.StatusStringRef(conversionTable=conversionTable)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitFixNoAxisPts5(self, ctx):
                numberOfAxisPoints = ctx.numberOfAxisPoints.value
                ctx.value = model.FixNoAxisPts5(numberOfAxisPoints=numberOfAxisPoints)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitAlignmentFloat64Ieee(self, ctx):
                alignmentBorder = ctx.alignmentBorder.value
                ctx.value = model.AlignmentFloat64Ieee(alignmentBorder=alignmentBorder)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitAlignmentInt64(self, ctx):
                alignmentBorder = ctx.alignmentBorder.value
                ctx.value = model.AlignmentInt64(alignmentBorder=alignmentBorder)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitCurveAxisRef(self, ctx):
                curveAxis = ctx.curveAxis.value
                ctx.value = model.CurveAxisRef(curveAxis=curveAxis)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitLeftShift(self, ctx):
                bitcount = ctx.bitcount.value
                ctx.value = model.LeftShift(bitcount=bitcount)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitAnnotationLabel(self, ctx):
                label = ctx.label.value
                ctx.value = model.AnnotationLabel(label=label)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitBitMask(self, ctx):
                mask = ctx.mask.value
                ctx.value = model.BitMask(mask=mask)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitCompuTabRef(self, ctx):
                conversionTable = ctx.conversionTable.value
                ctx.value = model.CompuTabRef(conversionTable=conversionTable)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitArraySize(self, ctx):
                number_ = ctx.number_.value
                ctx.value = model.ArraySize(number=number_)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitLayout(self, ctx):
                indexMode = ctx.indexMode.text
                ctx.value = model.Layout(indexMode=indexMode)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitCpuType(self, ctx):
                cPU = ctx.cPU.value
                ctx.value = model.CpuType(cPU=cPU)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitCustomerNo(self, ctx):
                number_ = ctx.number_.value
                ctx.value = model.CustomerNo(number=number_)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitEpk(self, ctx):
                identifier = ctx.identifier.value
                ctx.value = model.Epk(identifier=identifier)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitVarSelectionCharacteristic(self, ctx):
                name = ctx.name.value
                ctx.value = model.VarSelectionCharacteristic(name=name)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitDisplayIdentifier(self, ctx):
                display_name = ctx.display_name.value
                ctx.value = model.DisplayIdentifier(display_name=display_name)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitEcuAddress(self, ctx):
                address = ctx.address.value
                ctx.value = model.EcuAddress(address=address)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitFormulaInv(self, ctx):
                g_x = ctx.g_x.value
                ctx.value = model.FormulaInv(g_x=g_x)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitDefaultValueNumeric(self, ctx):
                display_value = ctx.display_value.value
                ctx.value = model.DefaultValueNumeric(display_value=display_value)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitVarMeasurement(self, ctx):
                name = ctx.name.value
                ctx.value = model.VarMeasurement(name=name)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitAlignmentFloat16Ieee(self, ctx):
                alignmentBorder = ctx.alignmentBorder.value
                ctx.value = model.AlignmentFloat16Ieee(alignmentBorder=alignmentBorder)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitDataSize(self, ctx):
                size = ctx.size.value
                ctx.value = model.DataSize(size=size)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitCustomer(self, ctx):
                customer_ = ctx.customer_.value
                ctx.value = model.Customer(customer=customer_)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitFormat_(self, ctx):
                formatString = ctx.formatString.value
                ctx.value = model.Format(formatString=formatString)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitSRecLayout(self, ctx):
                name = ctx.name.value
                ctx.value = model.SRecLayout(name=name)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitAnnotationOrigin(self, ctx):
                origin = ctx.origin.value
                ctx.value = model.AnnotationOrigin(origin=origin)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitByteOrder(self, ctx):
                byteOrder_ = ctx.byteOrder_.value
                ctx.value = model.ByteOrder(byteOrder=byteOrder_)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitEcuCalibrationOffset(self, ctx):
                offset = ctx.offset.value
                ctx.value = model.EcuCalibrationOffset(offset=offset)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1659..1662
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

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

            def exitFixNoAxisPtsY(self, ctx):
                numberOfAxisPoints = ctx.numberOfAxisPoints.value
                ctx.value = model.FixNoAxisPtsY(numberOfAxisPoints=numberOfAxisPoints)
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 62 other locations - About 1 hr to fix
        pya2l/a2l_listener.py on lines 145..148
        pya2l/a2l_listener.py on lines 150..153
        pya2l/a2l_listener.py on lines 155..158
        pya2l/a2l_listener.py on lines 160..163
        pya2l/a2l_listener.py on lines 165..168
        pya2l/a2l_listener.py on lines 170..173
        pya2l/a2l_listener.py on lines 175..178
        pya2l/a2l_listener.py on lines 191..194
        pya2l/a2l_listener.py on lines 196..199
        pya2l/a2l_listener.py on lines 206..209
        pya2l/a2l_listener.py on lines 211..214
        pya2l/a2l_listener.py on lines 216..219
        pya2l/a2l_listener.py on lines 221..224
        pya2l/a2l_listener.py on lines 226..230
        pya2l/a2l_listener.py on lines 236..239
        pya2l/a2l_listener.py on lines 241..244
        pya2l/a2l_listener.py on lines 252..255
        pya2l/a2l_listener.py on lines 291..294
        pya2l/a2l_listener.py on lines 296..299
        pya2l/a2l_listener.py on lines 310..313
        pya2l/a2l_listener.py on lines 315..318
        pya2l/a2l_listener.py on lines 320..323
        pya2l/a2l_listener.py on lines 331..334
        pya2l/a2l_listener.py on lines 367..370
        pya2l/a2l_listener.py on lines 613..616
        pya2l/a2l_listener.py on lines 618..621
        pya2l/a2l_listener.py on lines 642..645
        pya2l/a2l_listener.py on lines 647..650
        pya2l/a2l_listener.py on lines 663..666
        pya2l/a2l_listener.py on lines 718..721
        pya2l/a2l_listener.py on lines 729..732
        pya2l/a2l_listener.py on lines 734..737
        pya2l/a2l_listener.py on lines 767..770
        pya2l/a2l_listener.py on lines 878..881
        pya2l/a2l_listener.py on lines 1082..1085
        pya2l/a2l_listener.py on lines 1094..1097
        pya2l/a2l_listener.py on lines 1099..1102
        pya2l/a2l_listener.py on lines 1108..1111
        pya2l/a2l_listener.py on lines 1113..1116
        pya2l/a2l_listener.py on lines 1118..1121
        pya2l/a2l_listener.py on lines 1163..1166
        pya2l/a2l_listener.py on lines 1168..1171
        pya2l/a2l_listener.py on lines 1214..1217
        pya2l/a2l_listener.py on lines 1232..1235
        pya2l/a2l_listener.py on lines 1237..1240
        pya2l/a2l_listener.py on lines 1242..1245
        pya2l/a2l_listener.py on lines 1247..1250
        pya2l/a2l_listener.py on lines 1252..1255
        pya2l/a2l_listener.py on lines 1257..1260
        pya2l/a2l_listener.py on lines 1262..1265
        pya2l/a2l_listener.py on lines 1325..1328
        pya2l/a2l_listener.py on lines 1330..1333
        pya2l/a2l_listener.py on lines 1335..1338
        pya2l/a2l_listener.py on lines 1346..1349
        pya2l/a2l_listener.py on lines 1654..1657
        pya2l/a2l_listener.py on lines 1664..1667
        pya2l/a2l_listener.py on lines 1669..1672
        pya2l/a2l_listener.py on lines 1674..1677
        pya2l/a2l_listener.py on lines 2008..2011
        pya2l/a2l_listener.py on lines 2013..2016
        pya2l/a2l_listener.py on lines 2029..2032
        pya2l/a2l_listener.py on lines 2034..2037

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

        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

                ctx.value = model.CompuMethod(
        Severity: Major
        Found in pya2l/a2l_listener.py and 1 other location - About 1 hr to fix
        pya2l/a2l_listener.py on lines 858..858

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

        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

                ctx.value = model.Function(
        Severity: Major
        Found in pya2l/a2l_listener.py and 1 other location - About 1 hr to fix
        pya2l/a2l_listener.py on lines 687..687

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

        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

                ctx.value = model.Group(
        Severity: Major
        Found in pya2l/a2l_listener.py and 1 other location - About 1 hr to fix
        pya2l/a2l_listener.py on lines 1279..1279

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

        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

                ctx.value = model.MemoryLayout(
        Severity: Major
        Found in pya2l/a2l_listener.py and 1 other location - About 1 hr to fix
        pya2l/a2l_listener.py on lines 915..915

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

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

            def exitSignExtend(self, ctx):
                ctx.value = model.SignExtend()
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 4 other locations - About 35 mins to fix
        pya2l/a2l_listener.py on lines 424..426
        pya2l/a2l_listener.py on lines 933..935
        pya2l/a2l_listener.py on lines 1123..1125
        pya2l/a2l_listener.py on lines 1728..1730

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

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

            def exitRoot(self, ctx):
                ctx.value = model.Root()
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 4 other locations - About 35 mins to fix
        pya2l/a2l_listener.py on lines 424..426
        pya2l/a2l_listener.py on lines 1104..1106
        pya2l/a2l_listener.py on lines 1123..1125
        pya2l/a2l_listener.py on lines 1728..1730

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

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

            def exitReadWrite(self, ctx):
                ctx.value = model.ReadWrite()
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 4 other locations - About 35 mins to fix
        pya2l/a2l_listener.py on lines 424..426
        pya2l/a2l_listener.py on lines 933..935
        pya2l/a2l_listener.py on lines 1104..1106
        pya2l/a2l_listener.py on lines 1728..1730

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

        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

                ctx.value = model.Unit(
        Severity: Minor
        Found in pya2l/a2l_listener.py and 1 other location - About 35 mins to fix
        pya2l/a2l_listener.py on lines 1923..1923

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

        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

                ctx.value = model.SiExponents(
        Severity: Minor
        Found in pya2l/a2l_listener.py and 1 other location - About 35 mins to fix
        pya2l/a2l_listener.py on lines 1904..1904

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

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

            def exitA2ml(self, ctx):
                ctx.value = model.A2ml()
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 4 other locations - About 35 mins to fix
        pya2l/a2l_listener.py on lines 933..935
        pya2l/a2l_listener.py on lines 1104..1106
        pya2l/a2l_listener.py on lines 1123..1125
        pya2l/a2l_listener.py on lines 1728..1730

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

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

            def exitStaticRecordLayout(self, ctx):
                ctx.value = model.StaticRecordLayout()
                self.db.session.add(ctx.value)
        Severity: Major
        Found in pya2l/a2l_listener.py and 4 other locations - About 35 mins to fix
        pya2l/a2l_listener.py on lines 424..426
        pya2l/a2l_listener.py on lines 933..935
        pya2l/a2l_listener.py on lines 1104..1106
        pya2l/a2l_listener.py on lines 1123..1125

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

        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