christoph2/pyA2L

View on GitHub

Showing 171 of 238 total issues

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

Severity
Category
Status
Source
Language