OCA/l10n-italy

View on GitHub

Showing 820 of 1,161 total issues

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

DettaglioPagamentoType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(None, 'DataDecorrenzaPenale'), pyxb.binding.datatypes.date, scope=DettaglioPagamentoType, location=pyxb.utils.utility.Location('https://www.fatturapa.gov.it/export/fatturazione/sdi/fatturapa/v1.3/Schema_del_file_xml_FatturaPA_versione_1.2.1.xsd', 822, 6)))
Severity: Major
Found in l10n_it_fatturapa/bindings/binding.py and 27 other locations - About 2 hrs to fix
l10n_it_fatturapa/bindings/_ds.py on lines 1414..1414
l10n_it_fatturapa/bindings/_ds.py on lines 1479..1479
l10n_it_fatturapa/bindings/_ds.py on lines 1481..1481
l10n_it_fatturapa/bindings/_ds.py on lines 1748..1748
l10n_it_fatturapa/bindings/_ds.py on lines 1750..1750
l10n_it_fatturapa/bindings/_ds.py on lines 1752..1752
l10n_it_fatturapa/bindings/_ds.py on lines 1754..1754
l10n_it_fatturapa/bindings/_ds.py on lines 1878..1878
l10n_it_fatturapa/bindings/_ds.py on lines 1880..1880
l10n_it_fatturapa/bindings/_ds.py on lines 1910..1910
l10n_it_fatturapa/bindings/_ds.py on lines 1912..1912
l10n_it_fatturapa/bindings/_ds.py on lines 1981..1981
l10n_it_fatturapa/bindings/binding.py on lines 4673..4673
l10n_it_fatturapa/bindings/binding.py on lines 4802..4802
l10n_it_fatturapa/bindings/binding.py on lines 4863..4863
l10n_it_fatturapa/bindings/binding.py on lines 4865..4865
l10n_it_fatturapa/bindings/binding.py on lines 4871..4871
l10n_it_fatturapa/bindings/binding.py on lines 5272..5272
l10n_it_fatturapa/bindings/binding.py on lines 5418..5418
l10n_it_fatturapa/bindings/binding.py on lines 6088..6088
l10n_it_fatturapa/bindings/binding.py on lines 6158..6158
l10n_it_fatturapa/bindings/binding.py on lines 6162..6162
l10n_it_fatturapa/bindings/binding.py on lines 6188..6188
l10n_it_fatturapa/bindings/binding.py on lines 6771..6771
l10n_it_fatturapa/bindings/binding.py on lines 6861..6861
l10n_it_fatturapa/bindings/binding.py on lines 6863..6863
l10n_it_fatturapa/bindings/binding.py on lines 7147..7147

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

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

X509DataType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'X509SubjectName'), pyxb.binding.datatypes.string, scope=X509DataType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 189, 6)))
Severity: Major
Found in l10n_it_fatturapa/bindings/_ds.py and 27 other locations - About 2 hrs to fix
l10n_it_fatturapa/bindings/_ds.py on lines 1414..1414
l10n_it_fatturapa/bindings/_ds.py on lines 1479..1479
l10n_it_fatturapa/bindings/_ds.py on lines 1481..1481
l10n_it_fatturapa/bindings/_ds.py on lines 1748..1748
l10n_it_fatturapa/bindings/_ds.py on lines 1752..1752
l10n_it_fatturapa/bindings/_ds.py on lines 1754..1754
l10n_it_fatturapa/bindings/_ds.py on lines 1878..1878
l10n_it_fatturapa/bindings/_ds.py on lines 1880..1880
l10n_it_fatturapa/bindings/_ds.py on lines 1910..1910
l10n_it_fatturapa/bindings/_ds.py on lines 1912..1912
l10n_it_fatturapa/bindings/_ds.py on lines 1981..1981
l10n_it_fatturapa/bindings/binding.py on lines 4673..4673
l10n_it_fatturapa/bindings/binding.py on lines 4802..4802
l10n_it_fatturapa/bindings/binding.py on lines 4863..4863
l10n_it_fatturapa/bindings/binding.py on lines 4865..4865
l10n_it_fatturapa/bindings/binding.py on lines 4871..4871
l10n_it_fatturapa/bindings/binding.py on lines 5272..5272
l10n_it_fatturapa/bindings/binding.py on lines 5418..5418
l10n_it_fatturapa/bindings/binding.py on lines 6088..6088
l10n_it_fatturapa/bindings/binding.py on lines 6158..6158
l10n_it_fatturapa/bindings/binding.py on lines 6162..6162
l10n_it_fatturapa/bindings/binding.py on lines 6188..6188
l10n_it_fatturapa/bindings/binding.py on lines 6192..6192
l10n_it_fatturapa/bindings/binding.py on lines 6771..6771
l10n_it_fatturapa/bindings/binding.py on lines 6861..6861
l10n_it_fatturapa/bindings/binding.py on lines 6863..6863
l10n_it_fatturapa/bindings/binding.py on lines 7147..7147

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

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

X509DataType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'X509Certificate'), pyxb.binding.datatypes.base64Binary, scope=X509DataType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 190, 6)))
Severity: Major
Found in l10n_it_fatturapa/bindings/_ds.py and 27 other locations - About 2 hrs to fix
l10n_it_fatturapa/bindings/_ds.py on lines 1414..1414
l10n_it_fatturapa/bindings/_ds.py on lines 1479..1479
l10n_it_fatturapa/bindings/_ds.py on lines 1481..1481
l10n_it_fatturapa/bindings/_ds.py on lines 1748..1748
l10n_it_fatturapa/bindings/_ds.py on lines 1750..1750
l10n_it_fatturapa/bindings/_ds.py on lines 1754..1754
l10n_it_fatturapa/bindings/_ds.py on lines 1878..1878
l10n_it_fatturapa/bindings/_ds.py on lines 1880..1880
l10n_it_fatturapa/bindings/_ds.py on lines 1910..1910
l10n_it_fatturapa/bindings/_ds.py on lines 1912..1912
l10n_it_fatturapa/bindings/_ds.py on lines 1981..1981
l10n_it_fatturapa/bindings/binding.py on lines 4673..4673
l10n_it_fatturapa/bindings/binding.py on lines 4802..4802
l10n_it_fatturapa/bindings/binding.py on lines 4863..4863
l10n_it_fatturapa/bindings/binding.py on lines 4865..4865
l10n_it_fatturapa/bindings/binding.py on lines 4871..4871
l10n_it_fatturapa/bindings/binding.py on lines 5272..5272
l10n_it_fatturapa/bindings/binding.py on lines 5418..5418
l10n_it_fatturapa/bindings/binding.py on lines 6088..6088
l10n_it_fatturapa/bindings/binding.py on lines 6158..6158
l10n_it_fatturapa/bindings/binding.py on lines 6162..6162
l10n_it_fatturapa/bindings/binding.py on lines 6188..6188
l10n_it_fatturapa/bindings/binding.py on lines 6192..6192
l10n_it_fatturapa/bindings/binding.py on lines 6771..6771
l10n_it_fatturapa/bindings/binding.py on lines 6861..6861
l10n_it_fatturapa/bindings/binding.py on lines 6863..6863
l10n_it_fatturapa/bindings/binding.py on lines 7147..7147

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

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

SPKIDataType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'SPKISexp'), pyxb.binding.datatypes.base64Binary, scope=SPKIDataType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 232, 4)))
Severity: Major
Found in l10n_it_fatturapa/bindings/_ds.py and 27 other locations - About 2 hrs to fix
l10n_it_fatturapa/bindings/_ds.py on lines 1414..1414
l10n_it_fatturapa/bindings/_ds.py on lines 1479..1479
l10n_it_fatturapa/bindings/_ds.py on lines 1481..1481
l10n_it_fatturapa/bindings/_ds.py on lines 1748..1748
l10n_it_fatturapa/bindings/_ds.py on lines 1750..1750
l10n_it_fatturapa/bindings/_ds.py on lines 1752..1752
l10n_it_fatturapa/bindings/_ds.py on lines 1754..1754
l10n_it_fatturapa/bindings/_ds.py on lines 1878..1878
l10n_it_fatturapa/bindings/_ds.py on lines 1880..1880
l10n_it_fatturapa/bindings/_ds.py on lines 1910..1910
l10n_it_fatturapa/bindings/_ds.py on lines 1912..1912
l10n_it_fatturapa/bindings/binding.py on lines 4673..4673
l10n_it_fatturapa/bindings/binding.py on lines 4802..4802
l10n_it_fatturapa/bindings/binding.py on lines 4863..4863
l10n_it_fatturapa/bindings/binding.py on lines 4865..4865
l10n_it_fatturapa/bindings/binding.py on lines 4871..4871
l10n_it_fatturapa/bindings/binding.py on lines 5272..5272
l10n_it_fatturapa/bindings/binding.py on lines 5418..5418
l10n_it_fatturapa/bindings/binding.py on lines 6088..6088
l10n_it_fatturapa/bindings/binding.py on lines 6158..6158
l10n_it_fatturapa/bindings/binding.py on lines 6162..6162
l10n_it_fatturapa/bindings/binding.py on lines 6188..6188
l10n_it_fatturapa/bindings/binding.py on lines 6192..6192
l10n_it_fatturapa/bindings/binding.py on lines 6771..6771
l10n_it_fatturapa/bindings/binding.py on lines 6861..6861
l10n_it_fatturapa/bindings/binding.py on lines 6863..6863
l10n_it_fatturapa/bindings/binding.py on lines 7147..7147

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

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

PGPDataType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'PGPKeyID'), pyxb.binding.datatypes.base64Binary, scope=PGPDataType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 212, 6)))
Severity: Major
Found in l10n_it_fatturapa/bindings/_ds.py and 27 other locations - About 2 hrs to fix
l10n_it_fatturapa/bindings/_ds.py on lines 1414..1414
l10n_it_fatturapa/bindings/_ds.py on lines 1479..1479
l10n_it_fatturapa/bindings/_ds.py on lines 1481..1481
l10n_it_fatturapa/bindings/_ds.py on lines 1748..1748
l10n_it_fatturapa/bindings/_ds.py on lines 1750..1750
l10n_it_fatturapa/bindings/_ds.py on lines 1752..1752
l10n_it_fatturapa/bindings/_ds.py on lines 1754..1754
l10n_it_fatturapa/bindings/_ds.py on lines 1878..1878
l10n_it_fatturapa/bindings/_ds.py on lines 1880..1880
l10n_it_fatturapa/bindings/_ds.py on lines 1912..1912
l10n_it_fatturapa/bindings/_ds.py on lines 1981..1981
l10n_it_fatturapa/bindings/binding.py on lines 4673..4673
l10n_it_fatturapa/bindings/binding.py on lines 4802..4802
l10n_it_fatturapa/bindings/binding.py on lines 4863..4863
l10n_it_fatturapa/bindings/binding.py on lines 4865..4865
l10n_it_fatturapa/bindings/binding.py on lines 4871..4871
l10n_it_fatturapa/bindings/binding.py on lines 5272..5272
l10n_it_fatturapa/bindings/binding.py on lines 5418..5418
l10n_it_fatturapa/bindings/binding.py on lines 6088..6088
l10n_it_fatturapa/bindings/binding.py on lines 6158..6158
l10n_it_fatturapa/bindings/binding.py on lines 6162..6162
l10n_it_fatturapa/bindings/binding.py on lines 6188..6188
l10n_it_fatturapa/bindings/binding.py on lines 6192..6192
l10n_it_fatturapa/bindings/binding.py on lines 6771..6771
l10n_it_fatturapa/bindings/binding.py on lines 6861..6861
l10n_it_fatturapa/bindings/binding.py on lines 6863..6863
l10n_it_fatturapa/bindings/binding.py on lines 7147..7147

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

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

DettaglioPagamentoType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(None, 'DataRiferimentoTerminiPagamento'), pyxb.binding.datatypes.date, scope=DettaglioPagamentoType, location=pyxb.utils.utility.Location('https://www.fatturapa.gov.it/export/fatturazione/sdi/fatturapa/v1.3/Schema_del_file_xml_FatturaPA_versione_1.2.1.xsd', 805, 6)))
Severity: Major
Found in l10n_it_fatturapa/bindings/binding.py and 27 other locations - About 2 hrs to fix
l10n_it_fatturapa/bindings/_ds.py on lines 1414..1414
l10n_it_fatturapa/bindings/_ds.py on lines 1479..1479
l10n_it_fatturapa/bindings/_ds.py on lines 1481..1481
l10n_it_fatturapa/bindings/_ds.py on lines 1748..1748
l10n_it_fatturapa/bindings/_ds.py on lines 1750..1750
l10n_it_fatturapa/bindings/_ds.py on lines 1752..1752
l10n_it_fatturapa/bindings/_ds.py on lines 1754..1754
l10n_it_fatturapa/bindings/_ds.py on lines 1878..1878
l10n_it_fatturapa/bindings/_ds.py on lines 1880..1880
l10n_it_fatturapa/bindings/_ds.py on lines 1910..1910
l10n_it_fatturapa/bindings/_ds.py on lines 1912..1912
l10n_it_fatturapa/bindings/_ds.py on lines 1981..1981
l10n_it_fatturapa/bindings/binding.py on lines 4673..4673
l10n_it_fatturapa/bindings/binding.py on lines 4802..4802
l10n_it_fatturapa/bindings/binding.py on lines 4863..4863
l10n_it_fatturapa/bindings/binding.py on lines 4865..4865
l10n_it_fatturapa/bindings/binding.py on lines 4871..4871
l10n_it_fatturapa/bindings/binding.py on lines 5272..5272
l10n_it_fatturapa/bindings/binding.py on lines 5418..5418
l10n_it_fatturapa/bindings/binding.py on lines 6088..6088
l10n_it_fatturapa/bindings/binding.py on lines 6162..6162
l10n_it_fatturapa/bindings/binding.py on lines 6188..6188
l10n_it_fatturapa/bindings/binding.py on lines 6192..6192
l10n_it_fatturapa/bindings/binding.py on lines 6771..6771
l10n_it_fatturapa/bindings/binding.py on lines 6861..6861
l10n_it_fatturapa/bindings/binding.py on lines 6863..6863
l10n_it_fatturapa/bindings/binding.py on lines 7147..7147

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

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

        if (
            DatiAnagrafici.Anagrafica.Cognome and
            partner.lastname != DatiAnagrafici.Anagrafica.Cognome
        ):
            self.log_inconsistency(
Severity: Major
Found in l10n_it_fatturapa_in/wizard/wizard_import_fatturapa.py and 2 other locations - About 2 hrs to fix
l10n_it_fatturapa_in/wizard/wizard_import_fatturapa.py on lines 88..95
l10n_it_fatturapa_in/wizard/wizard_import_fatturapa.py on lines 96..103

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

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

        if (
            DatiAnagrafici.Anagrafica.Nome and
            partner.firstname != DatiAnagrafici.Anagrafica.Nome
        ):
            self.log_inconsistency(_(
Severity: Major
Found in l10n_it_fatturapa_in/wizard/wizard_import_fatturapa.py and 2 other locations - About 2 hrs to fix
l10n_it_fatturapa_in/wizard/wizard_import_fatturapa.py on lines 88..95
l10n_it_fatturapa_in/wizard/wizard_import_fatturapa.py on lines 104..113

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

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

        if (
            DatiAnagrafici.Anagrafica.Denominazione and
            partner.name != DatiAnagrafici.Anagrafica.Denominazione
        ):
            self.log_inconsistency(_(
Severity: Major
Found in l10n_it_fatturapa_in/wizard/wizard_import_fatturapa.py and 2 other locations - About 2 hrs to fix
l10n_it_fatturapa_in/wizard/wizard_import_fatturapa.py on lines 96..103
l10n_it_fatturapa_in/wizard/wizard_import_fatturapa.py on lines 104..113

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

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

            if invoices_partner.cedente_sede_Cap and \
                    not re.match(
                        '[0-9]{5}', invoices_partner.cedente_sede_Cap):
                errors.append(_(
                    u'ZIP %s of seller %s is not 5 characters'
Severity: Major
Found in l10n_it_invoices_data_communication/models/communication.py and 1 other location - About 2 hrs to fix
l10n_it_invoices_data_communication/models/communication.py on lines 956..963

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

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

            if invoices_partner.cessionario_sede_Cap and \
                    not re.match(
                        '[0-9]{5}', invoices_partner.cessionario_sede_Cap):
                errors.append(_(
                    u'ZIP %s of assignee %s is not 5 numeric characters'
Severity: Major
Found in l10n_it_invoices_data_communication/models/communication.py and 1 other location - About 2 hrs to fix
l10n_it_invoices_data_communication/models/communication.py on lines 1164..1171

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

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

            if invoice.reference == '123':
                self.assertTrue(len(invoice.invoice_line) == 2)
                for line in invoice.invoice_line:
                    self.assertFalse(line.product_id)
Severity: Major
Found in l10n_it_fatturapa_in/tests/test_import_fatturapa_xml.py and 1 other location - About 2 hrs to fix
l10n_it_fatturapa_in/tests/test_import_fatturapa_xml.py on lines 311..314

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

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

            if invoice.reference == '456':
                self.assertTrue(len(invoice.invoice_line) == 1)
                for line in invoice.invoice_line:
                    self.assertFalse(line.product_id)
Severity: Major
Found in l10n_it_fatturapa_in/tests/test_import_fatturapa_xml.py and 1 other location - About 2 hrs to fix
l10n_it_fatturapa_in/tests/test_import_fatturapa_xml.py on lines 307..310

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

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

class StockPickingCarriageCondition(models.Model):

    _name = "stock.picking.carriage_condition"
    _description = "Carriage Condition"

Severity: Major
Found in l10n_it_ddt/models/stock_picking_package_preparation.py and 3 other locations - About 2 hrs to fix
l10n_it_ddt/models/stock_picking_package_preparation.py on lines 26..33
l10n_it_ddt/models/stock_picking_package_preparation.py on lines 36..43
l10n_it_ddt/models/stock_picking_package_preparation.py on lines 46..53

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

class StockPickingTransportationReason(models.Model):

    _name = 'stock.picking.transportation_reason'
    _description = 'Reason for Transportation'

Severity: Major
Found in l10n_it_ddt/models/stock_picking_package_preparation.py and 3 other locations - About 2 hrs to fix
l10n_it_ddt/models/stock_picking_package_preparation.py on lines 16..23
l10n_it_ddt/models/stock_picking_package_preparation.py on lines 26..33
l10n_it_ddt/models/stock_picking_package_preparation.py on lines 46..53

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

class StockPickingTransportationMethod(models.Model):

    _name = 'stock.picking.transportation_method'
    _description = 'Method of Transportation'

Severity: Major
Found in l10n_it_ddt/models/stock_picking_package_preparation.py and 3 other locations - About 2 hrs to fix
l10n_it_ddt/models/stock_picking_package_preparation.py on lines 16..23
l10n_it_ddt/models/stock_picking_package_preparation.py on lines 26..33
l10n_it_ddt/models/stock_picking_package_preparation.py on lines 36..43

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

class StockPickingGoodsDescription(models.Model):

    _name = 'stock.picking.goods_description'
    _description = "Description of Goods"

Severity: Major
Found in l10n_it_ddt/models/stock_picking_package_preparation.py and 3 other locations - About 2 hrs to fix
l10n_it_ddt/models/stock_picking_package_preparation.py on lines 16..23
l10n_it_ddt/models/stock_picking_package_preparation.py on lines 36..43
l10n_it_ddt/models/stock_picking_package_preparation.py on lines 46..53

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

        if partner.vat:
            fatturapa.FatturaElettronicaHeader. \
                TerzoIntermediarioOSoggettoEmittente. \
                DatiAnagrafici.IdFiscaleIVA = IdFiscaleType(
                    IdPaese=partner.vat[0:2].upper(),
Severity: Major
Found in l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py and 2 other locations - About 2 hrs to fix
l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py on lines 377..380
l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py on lines 413..416

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

        if partner.vat:
            fatturapa.FatturaElettronicaHeader.CessionarioCommittente. \
                DatiAnagrafici.IdFiscaleIVA = IdFiscaleType(
                    IdPaese=partner.vat[0:2].upper(), IdCodice=partner.vat[2:])
Severity: Major
Found in l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py and 2 other locations - About 2 hrs to fix
l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py on lines 413..416
l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py on lines 440..445

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

        if partner.vat:
            fatturapa.FatturaElettronicaHeader.RappresentanteFiscale. \
                DatiAnagrafici.IdFiscaleIVA = IdFiscaleType(
                    IdPaese=partner.vat[0:2].upper(), IdCodice=partner.vat[2:])
Severity: Major
Found in l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py and 2 other locations - About 2 hrs to fix
l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py on lines 377..380
l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py on lines 440..445

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

Severity
Category
Status
Source
Language