OCA/l10n-italy

View on GitHub

Showing 1,161 of 1,161 total issues

Function exportFatturaPA has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
Open

    def exportFatturaPA(self):
        invoice_obj = self.env['account.invoice']
        invoices_by_partner = self.group_invoices_by_partner()
        attachments = self.env['fatturapa.attachment.out']
        for partner_id in invoices_by_partner:
Severity: Minor
Found in l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py - About 2 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

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

        if partner.country_id:
            vals['cedente_sede_Nazione'] = partner.country_id.code
        elif partner_vat:
            vals['cedente_sede_Nazione'] = partner_vat[:2]
        else:
Severity: Major
Found in l10n_it_invoices_data_communication/models/communication.py and 3 other locations - About 2 hrs to fix
l10n_it_invoices_data_communication/models/communication.py on lines 277..282
l10n_it_invoices_data_communication/models/communication.py on lines 352..357
l10n_it_invoices_data_communication/models/communication.py on lines 373..378

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

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

        if partner.country_id:
            vals['cedente_IdFiscaleIVA_IdPaese'] = partner.country_id.code
        elif partner_vat:
            vals['cedente_IdFiscaleIVA_IdPaese'] = partner_vat[:2]
        else:
Severity: Major
Found in l10n_it_invoices_data_communication/models/communication.py and 3 other locations - About 2 hrs to fix
l10n_it_invoices_data_communication/models/communication.py on lines 298..303
l10n_it_invoices_data_communication/models/communication.py on lines 352..357
l10n_it_invoices_data_communication/models/communication.py on lines 373..378

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

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

        if partner.country_id:
            vals['cessionario_IdFiscaleIVA_IdPaese'] = partner.country_id.code
        elif partner_vat:
            vals['cessionario_IdFiscaleIVA_IdPaese'] = partner_vat[:2]
        else:
Severity: Major
Found in l10n_it_invoices_data_communication/models/communication.py and 3 other locations - About 2 hrs to fix
l10n_it_invoices_data_communication/models/communication.py on lines 277..282
l10n_it_invoices_data_communication/models/communication.py on lines 298..303
l10n_it_invoices_data_communication/models/communication.py on lines 373..378

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

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

        if partner.country_id:
            vals['cessionario_sede_Nazione'] = partner.country_id.code
        elif partner_vat:
            vals['cessionario_sede_Nazione'] = partner_vat[:2]
        else:
Severity: Major
Found in l10n_it_invoices_data_communication/models/communication.py and 3 other locations - About 2 hrs to fix
l10n_it_invoices_data_communication/models/communication.py on lines 277..282
l10n_it_invoices_data_communication/models/communication.py on lines 298..303
l10n_it_invoices_data_communication/models/communication.py on lines 352..357

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

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

    @api.multi
    def action_set_to_draft(self):
        for pt in self:
            wf_service = netsvc.LocalService("workflow")
            wf_service.trg_validate(self.env.uid, self._name, pt.id, 'cancel',
Severity: Major
Found in l10n_it_withholding_tax/models/withholding_tax.py and 1 other location - About 2 hrs to fix
l10n_it_withholding_tax/models/withholding_tax.py on lines 320..326

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

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

    @api.multi
    def action_paid(self):
        for pt in self:
            wf_service = netsvc.LocalService("workflow")
            wf_service.trg_validate(self.env.uid, self._name, pt.id, 'paid',
Severity: Major
Found in l10n_it_withholding_tax/models/withholding_tax.py and 1 other location - About 2 hrs to fix
l10n_it_withholding_tax/models/withholding_tax.py on lines 328..334

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

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

Function _BuildAutomaton has 60 lines of code (exceeds 25 allowed). Consider refactoring.
Open

def _BuildAutomaton ():
    # Remove this helper function from the namespace after it is invoked
    global _BuildAutomaton
    del _BuildAutomaton
    import pyxb.utils.fac as fac
Severity: Major
Found in l10n_it_fatturapa/bindings/binding.py - About 2 hrs to fix

    Consider simplifying this complex logical expression.
    Open

            if Delivery:
                delivery_id = self.getCarrirerPartner(Delivery)
                delivery_dict = {
                    'carrier_id': delivery_id,
                    'transport_vehicle': Delivery.MezzoTrasporto or '',
    Severity: Critical
    Found in l10n_it_fatturapa_in/wizard/wizard_import_fatturapa.py - About 2 hrs to fix

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

      DatiTrasportoType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(None, 'DataOraConsegna'), pyxb.binding.datatypes.dateTime, scope=DatiTrasportoType, 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', 509, 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 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

      DatiVeicoliType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(None, 'Data'), pyxb.binding.datatypes.date, scope=DatiVeicoliType, 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', 767, 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 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

      DettaglioLineeType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(None, 'DataFinePeriodo'), pyxb.binding.datatypes.date, scope=DettaglioLineeType, 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', 992, 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 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 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

      KeyInfoType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'MgmtData'), pyxb.binding.datatypes.string, scope=KeyInfoType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 161, 2)))
      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 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 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, 'DataScadenzaPagamento'), 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', 807, 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 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

      X509IssuerSerialType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'X509IssuerName'), pyxb.binding.datatypes.string, scope=X509IssuerSerialType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 199, 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 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

      FatturaPrincipaleType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(None, 'DataFatturaPrincipale'), pyxb.binding.datatypes.date, scope=FatturaPrincipaleType, 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', 525, 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 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

      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

      DettaglioPagamentoType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(None, 'DataLimitePagamentoAnticipato'), 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', 820, 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 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

      TransformType._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'XPath'), pyxb.binding.datatypes.string, scope=TransformType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 120, 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 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 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

      Severity
      Category
      Status
      Source
      Language