OCA/l10n-italy

View on GitHub

Showing 820 of 1,161 total issues

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

    @api.model
    def create(self, vals):
        payment_order_ids = self._context.get('active_ids', [])
        vals.update({
            'payment_order_ids': [[6, 0, payment_order_ids]],
Severity: Major
Found in l10n_it_sepa_bonifici/wizard/export_sepa_cbi.py and 1 other location - About 2 hrs to fix
l10n_it_sepa_bonifici/wizard/export_sepa_cbi_estero.py on lines 71..77

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 58.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

    @api.model
    def create(self, vals):
        payment_order_ids = self._context.get('active_ids', [])
        vals.update({
            'payment_order_ids': [[6, 0, payment_order_ids]],
Severity: Major
Found in l10n_it_sepa_bonifici/wizard/export_sepa_cbi_estero.py and 1 other location - About 2 hrs to fix
l10n_it_sepa_bonifici/wizard/export_sepa_cbi.py on lines 53..59

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 58.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        in_invoice = self.invoice_model.create({
            'date_invoice': self.recent_date,
            'account_id': self.env.ref('account.a_pay').id,
            'journal_id': self.env.ref('account.expenses_journal').id,
            'partner_id': self.env.ref('base.res_partner_4').id,
Severity: Major
Found in account_vat_period_end_statement/tests/test_vat_statement.py and 1 other location - About 2 hrs to fix
account_vat_period_end_statement/tests/test_vat_statement.py on lines 83..88

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

    def action_confirmed(self, cr, uid, ids, context=None):
        for pt in self.browse(cr, uid, ids):
            wf_service = netsvc.LocalService("workflow")
            wf_service.trg_validate(uid, self._name,
                                    pt.id, 'confirmed', cr)
Severity: Major
Found in l10n_it_withholding_tax_payment/models/withholding_tax.py and 1 other location - About 2 hrs to fix
l10n_it_withholding_tax_payment/models/withholding_tax.py on lines 191..196

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

    def action_set_to_draft(self, cr, uid, ids, context=None):
        for pt in self.browse(cr, uid, ids):
            wf_service = netsvc.LocalService("workflow")
            wf_service.trg_validate(uid, self._name,
                                    pt.id, 'cancel', cr)
Severity: Major
Found in l10n_it_withholding_tax_payment/models/withholding_tax.py and 1 other location - About 2 hrs to fix
l10n_it_withholding_tax_payment/models/withholding_tax.py on lines 184..189

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 57.

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

        out_invoice = self.invoice_model.create({
            'date_invoice': self.recent_date,
            'account_id': self.env.ref('account.a_recv').id,
            'journal_id': self.env.ref('account.sales_journal').id,
            'partner_id': self.env.ref('base.res_partner_3').id,
Severity: Major
Found in account_vat_period_end_statement/tests/test_vat_statement.py and 1 other location - About 2 hrs to fix
account_vat_period_end_statement/tests/test_vat_statement.py on lines 100..105

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

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 tax.ref_base_code_id:
                if self.exist(
                    cr, uid, 'ref_base_code_id', tax.ref_base_code_id.id,
                    tax.id, context=context
                ):
Severity: Major
Found in l10n_it_account/models/account_tax.py and 3 other locations - About 2 hrs to fix
l10n_it_account/models/account_tax.py on lines 235..243
l10n_it_account/models/account_tax.py on lines 244..252
l10n_it_account/models/account_tax.py on lines 262..270

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

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

class ModalitaPagamentoType (pyxb.binding.datatypes.string, pyxb.binding.basis.enumeration_mixin):

    """An atomic simple type."""

    _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'ModalitaPagamentoType')
Severity: Major
Found in l10n_it_fatturapa/bindings/binding.py and 17 other locations - About 2 hrs to fix
l10n_it_fatturapa/bindings/binding.py on lines 121..127
l10n_it_fatturapa/bindings/binding.py on lines 138..144
l10n_it_fatturapa/bindings/binding.py on lines 179..185
l10n_it_fatturapa/bindings/binding.py on lines 196..202
l10n_it_fatturapa/bindings/binding.py on lines 212..218
l10n_it_fatturapa/bindings/binding.py on lines 249..255
l10n_it_fatturapa/bindings/binding.py on lines 282..288
l10n_it_fatturapa/bindings/binding.py on lines 318..324
l10n_it_fatturapa/bindings/binding.py on lines 335..341
l10n_it_fatturapa/bindings/binding.py on lines 368..374
l10n_it_fatturapa/bindings/binding.py on lines 454..460
l10n_it_fatturapa/bindings/binding.py on lines 470..476
l10n_it_fatturapa/bindings/binding.py on lines 490..496
l10n_it_fatturapa/bindings/binding.py on lines 570..576
l10n_it_fatturapa/bindings/binding.py on lines 585..591
l10n_it_fatturapa/bindings/binding.py on lines 600..606
l10n_it_fatturapa/bindings/binding.py on lines 888..894

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

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

class StatoLiquidazioneType (pyxb.binding.datatypes.string, pyxb.binding.basis.enumeration_mixin):

    """An atomic simple type."""

    _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'StatoLiquidazioneType')
Severity: Major
Found in l10n_it_fatturapa/bindings/binding.py and 17 other locations - About 2 hrs to fix
l10n_it_fatturapa/bindings/binding.py on lines 121..127
l10n_it_fatturapa/bindings/binding.py on lines 138..144
l10n_it_fatturapa/bindings/binding.py on lines 179..185
l10n_it_fatturapa/bindings/binding.py on lines 196..202
l10n_it_fatturapa/bindings/binding.py on lines 212..218
l10n_it_fatturapa/bindings/binding.py on lines 249..255
l10n_it_fatturapa/bindings/binding.py on lines 282..288
l10n_it_fatturapa/bindings/binding.py on lines 318..324
l10n_it_fatturapa/bindings/binding.py on lines 335..341
l10n_it_fatturapa/bindings/binding.py on lines 368..374
l10n_it_fatturapa/bindings/binding.py on lines 388..394
l10n_it_fatturapa/bindings/binding.py on lines 454..460
l10n_it_fatturapa/bindings/binding.py on lines 470..476
l10n_it_fatturapa/bindings/binding.py on lines 490..496
l10n_it_fatturapa/bindings/binding.py on lines 570..576
l10n_it_fatturapa/bindings/binding.py on lines 600..606
l10n_it_fatturapa/bindings/binding.py on lines 888..894

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

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 tax.base_code_id:
                if self.exist(
                    cr, uid, 'base_code_id', tax.base_code_id.id, tax.id,
                    context=context
                ):
Severity: Major
Found in l10n_it_account/models/account_tax.py and 3 other locations - About 2 hrs to fix
l10n_it_account/models/account_tax.py on lines 244..252
l10n_it_account/models/account_tax.py on lines 253..261
l10n_it_account/models/account_tax.py on lines 262..270

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

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

class TipoCassaType (pyxb.binding.datatypes.string, pyxb.binding.basis.enumeration_mixin):

    """An atomic simple type."""

    _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'TipoCassaType')
Severity: Major
Found in l10n_it_fatturapa/bindings/binding.py and 17 other locations - About 2 hrs to fix
l10n_it_fatturapa/bindings/binding.py on lines 121..127
l10n_it_fatturapa/bindings/binding.py on lines 138..144
l10n_it_fatturapa/bindings/binding.py on lines 179..185
l10n_it_fatturapa/bindings/binding.py on lines 196..202
l10n_it_fatturapa/bindings/binding.py on lines 249..255
l10n_it_fatturapa/bindings/binding.py on lines 282..288
l10n_it_fatturapa/bindings/binding.py on lines 318..324
l10n_it_fatturapa/bindings/binding.py on lines 335..341
l10n_it_fatturapa/bindings/binding.py on lines 368..374
l10n_it_fatturapa/bindings/binding.py on lines 388..394
l10n_it_fatturapa/bindings/binding.py on lines 454..460
l10n_it_fatturapa/bindings/binding.py on lines 470..476
l10n_it_fatturapa/bindings/binding.py on lines 490..496
l10n_it_fatturapa/bindings/binding.py on lines 570..576
l10n_it_fatturapa/bindings/binding.py on lines 585..591
l10n_it_fatturapa/bindings/binding.py on lines 600..606
l10n_it_fatturapa/bindings/binding.py on lines 888..894

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

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

class SoggettoEmittenteType (pyxb.binding.datatypes.string, pyxb.binding.basis.enumeration_mixin):

    """An atomic simple type."""

    _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'SoggettoEmittenteType')
Severity: Major
Found in l10n_it_fatturapa/bindings/binding.py and 17 other locations - About 2 hrs to fix
l10n_it_fatturapa/bindings/binding.py on lines 121..127
l10n_it_fatturapa/bindings/binding.py on lines 138..144
l10n_it_fatturapa/bindings/binding.py on lines 179..185
l10n_it_fatturapa/bindings/binding.py on lines 196..202
l10n_it_fatturapa/bindings/binding.py on lines 212..218
l10n_it_fatturapa/bindings/binding.py on lines 249..255
l10n_it_fatturapa/bindings/binding.py on lines 282..288
l10n_it_fatturapa/bindings/binding.py on lines 335..341
l10n_it_fatturapa/bindings/binding.py on lines 368..374
l10n_it_fatturapa/bindings/binding.py on lines 388..394
l10n_it_fatturapa/bindings/binding.py on lines 454..460
l10n_it_fatturapa/bindings/binding.py on lines 470..476
l10n_it_fatturapa/bindings/binding.py on lines 490..496
l10n_it_fatturapa/bindings/binding.py on lines 570..576
l10n_it_fatturapa/bindings/binding.py on lines 585..591
l10n_it_fatturapa/bindings/binding.py on lines 600..606
l10n_it_fatturapa/bindings/binding.py on lines 888..894

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

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

class EsigibilitaIVAType (pyxb.binding.datatypes.string, pyxb.binding.basis.enumeration_mixin):

    """An atomic simple type."""

    _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'EsigibilitaIVAType')
Severity: Major
Found in l10n_it_fatturapa/bindings/binding.py and 17 other locations - About 2 hrs to fix
l10n_it_fatturapa/bindings/binding.py on lines 121..127
l10n_it_fatturapa/bindings/binding.py on lines 138..144
l10n_it_fatturapa/bindings/binding.py on lines 179..185
l10n_it_fatturapa/bindings/binding.py on lines 196..202
l10n_it_fatturapa/bindings/binding.py on lines 212..218
l10n_it_fatturapa/bindings/binding.py on lines 249..255
l10n_it_fatturapa/bindings/binding.py on lines 282..288
l10n_it_fatturapa/bindings/binding.py on lines 318..324
l10n_it_fatturapa/bindings/binding.py on lines 335..341
l10n_it_fatturapa/bindings/binding.py on lines 368..374
l10n_it_fatturapa/bindings/binding.py on lines 388..394
l10n_it_fatturapa/bindings/binding.py on lines 454..460
l10n_it_fatturapa/bindings/binding.py on lines 490..496
l10n_it_fatturapa/bindings/binding.py on lines 570..576
l10n_it_fatturapa/bindings/binding.py on lines 585..591
l10n_it_fatturapa/bindings/binding.py on lines 600..606
l10n_it_fatturapa/bindings/binding.py on lines 888..894

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

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 'CONSEGNA: ' in subject:
            att_name = subject.replace('CONSEGNA: ', '')
            fatturapa_attachment_out = attachment_out_model \
                .search([('datas_fname', '=', att_name)])
            if len(fatturapa_attachment_out) == 1:
Severity: Major
Found in l10n_it_fatturapa_pec/models/mail_thread.py and 1 other location - About 2 hrs to fix
l10n_it_fatturapa_pec/models/mail_thread.py on lines 164..169

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

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

class NaturaType (pyxb.binding.datatypes.string, pyxb.binding.basis.enumeration_mixin):

    """An atomic simple type."""

    _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'NaturaType')
Severity: Major
Found in l10n_it_fatturapa/bindings/binding.py and 17 other locations - About 2 hrs to fix
l10n_it_fatturapa/bindings/binding.py on lines 121..127
l10n_it_fatturapa/bindings/binding.py on lines 138..144
l10n_it_fatturapa/bindings/binding.py on lines 179..185
l10n_it_fatturapa/bindings/binding.py on lines 196..202
l10n_it_fatturapa/bindings/binding.py on lines 212..218
l10n_it_fatturapa/bindings/binding.py on lines 249..255
l10n_it_fatturapa/bindings/binding.py on lines 282..288
l10n_it_fatturapa/bindings/binding.py on lines 318..324
l10n_it_fatturapa/bindings/binding.py on lines 335..341
l10n_it_fatturapa/bindings/binding.py on lines 368..374
l10n_it_fatturapa/bindings/binding.py on lines 388..394
l10n_it_fatturapa/bindings/binding.py on lines 454..460
l10n_it_fatturapa/bindings/binding.py on lines 470..476
l10n_it_fatturapa/bindings/binding.py on lines 570..576
l10n_it_fatturapa/bindings/binding.py on lines 585..591
l10n_it_fatturapa/bindings/binding.py on lines 600..606
l10n_it_fatturapa/bindings/binding.py on lines 888..894

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

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

class Art73Type (pyxb.binding.datatypes.string, pyxb.binding.basis.enumeration_mixin):

    """An atomic simple type."""

    _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Art73Type')
Severity: Major
Found in l10n_it_fatturapa/bindings/binding.py and 17 other locations - About 2 hrs to fix
l10n_it_fatturapa/bindings/binding.py on lines 121..127
l10n_it_fatturapa/bindings/binding.py on lines 138..144
l10n_it_fatturapa/bindings/binding.py on lines 179..185
l10n_it_fatturapa/bindings/binding.py on lines 212..218
l10n_it_fatturapa/bindings/binding.py on lines 249..255
l10n_it_fatturapa/bindings/binding.py on lines 282..288
l10n_it_fatturapa/bindings/binding.py on lines 318..324
l10n_it_fatturapa/bindings/binding.py on lines 335..341
l10n_it_fatturapa/bindings/binding.py on lines 368..374
l10n_it_fatturapa/bindings/binding.py on lines 388..394
l10n_it_fatturapa/bindings/binding.py on lines 454..460
l10n_it_fatturapa/bindings/binding.py on lines 470..476
l10n_it_fatturapa/bindings/binding.py on lines 490..496
l10n_it_fatturapa/bindings/binding.py on lines 570..576
l10n_it_fatturapa/bindings/binding.py on lines 585..591
l10n_it_fatturapa/bindings/binding.py on lines 600..606
l10n_it_fatturapa/bindings/binding.py on lines 888..894

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

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

class FormatoTrasmissioneType (pyxb.binding.datatypes.string, pyxb.binding.basis.enumeration_mixin):

    """An atomic simple type."""

    _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'FormatoTrasmissioneType')
Severity: Major
Found in l10n_it_fatturapa/bindings/binding.py and 17 other locations - About 2 hrs to fix
l10n_it_fatturapa/bindings/binding.py on lines 138..144
l10n_it_fatturapa/bindings/binding.py on lines 179..185
l10n_it_fatturapa/bindings/binding.py on lines 196..202
l10n_it_fatturapa/bindings/binding.py on lines 212..218
l10n_it_fatturapa/bindings/binding.py on lines 249..255
l10n_it_fatturapa/bindings/binding.py on lines 282..288
l10n_it_fatturapa/bindings/binding.py on lines 318..324
l10n_it_fatturapa/bindings/binding.py on lines 335..341
l10n_it_fatturapa/bindings/binding.py on lines 368..374
l10n_it_fatturapa/bindings/binding.py on lines 388..394
l10n_it_fatturapa/bindings/binding.py on lines 454..460
l10n_it_fatturapa/bindings/binding.py on lines 470..476
l10n_it_fatturapa/bindings/binding.py on lines 490..496
l10n_it_fatturapa/bindings/binding.py on lines 570..576
l10n_it_fatturapa/bindings/binding.py on lines 585..591
l10n_it_fatturapa/bindings/binding.py on lines 600..606
l10n_it_fatturapa/bindings/binding.py on lines 888..894

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

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

class SocioUnicoType (pyxb.binding.datatypes.string, pyxb.binding.basis.enumeration_mixin):

    """An atomic simple type."""

    _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'SocioUnicoType')
Severity: Major
Found in l10n_it_fatturapa/bindings/binding.py and 17 other locations - About 2 hrs to fix
l10n_it_fatturapa/bindings/binding.py on lines 121..127
l10n_it_fatturapa/bindings/binding.py on lines 138..144
l10n_it_fatturapa/bindings/binding.py on lines 179..185
l10n_it_fatturapa/bindings/binding.py on lines 196..202
l10n_it_fatturapa/bindings/binding.py on lines 212..218
l10n_it_fatturapa/bindings/binding.py on lines 249..255
l10n_it_fatturapa/bindings/binding.py on lines 282..288
l10n_it_fatturapa/bindings/binding.py on lines 318..324
l10n_it_fatturapa/bindings/binding.py on lines 335..341
l10n_it_fatturapa/bindings/binding.py on lines 368..374
l10n_it_fatturapa/bindings/binding.py on lines 388..394
l10n_it_fatturapa/bindings/binding.py on lines 454..460
l10n_it_fatturapa/bindings/binding.py on lines 470..476
l10n_it_fatturapa/bindings/binding.py on lines 490..496
l10n_it_fatturapa/bindings/binding.py on lines 585..591
l10n_it_fatturapa/bindings/binding.py on lines 600..606
l10n_it_fatturapa/bindings/binding.py on lines 888..894

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

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

class RegimeFiscaleType (pyxb.binding.datatypes.string, pyxb.binding.basis.enumeration_mixin):

    """An atomic simple type."""

    _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'RegimeFiscaleType')
Severity: Major
Found in l10n_it_fatturapa/bindings/binding.py and 17 other locations - About 2 hrs to fix
l10n_it_fatturapa/bindings/binding.py on lines 121..127
l10n_it_fatturapa/bindings/binding.py on lines 138..144
l10n_it_fatturapa/bindings/binding.py on lines 179..185
l10n_it_fatturapa/bindings/binding.py on lines 196..202
l10n_it_fatturapa/bindings/binding.py on lines 212..218
l10n_it_fatturapa/bindings/binding.py on lines 249..255
l10n_it_fatturapa/bindings/binding.py on lines 282..288
l10n_it_fatturapa/bindings/binding.py on lines 318..324
l10n_it_fatturapa/bindings/binding.py on lines 368..374
l10n_it_fatturapa/bindings/binding.py on lines 388..394
l10n_it_fatturapa/bindings/binding.py on lines 454..460
l10n_it_fatturapa/bindings/binding.py on lines 470..476
l10n_it_fatturapa/bindings/binding.py on lines 490..496
l10n_it_fatturapa/bindings/binding.py on lines 570..576
l10n_it_fatturapa/bindings/binding.py on lines 585..591
l10n_it_fatturapa/bindings/binding.py on lines 600..606
l10n_it_fatturapa/bindings/binding.py on lines 888..894

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

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

class TipoScontoMaggiorazioneType (pyxb.binding.datatypes.string, pyxb.binding.basis.enumeration_mixin):

    """An atomic simple type."""

    _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'TipoScontoMaggiorazioneType')
Severity: Major
Found in l10n_it_fatturapa/bindings/binding.py and 17 other locations - About 2 hrs to fix
l10n_it_fatturapa/bindings/binding.py on lines 121..127
l10n_it_fatturapa/bindings/binding.py on lines 138..144
l10n_it_fatturapa/bindings/binding.py on lines 196..202
l10n_it_fatturapa/bindings/binding.py on lines 212..218
l10n_it_fatturapa/bindings/binding.py on lines 249..255
l10n_it_fatturapa/bindings/binding.py on lines 282..288
l10n_it_fatturapa/bindings/binding.py on lines 318..324
l10n_it_fatturapa/bindings/binding.py on lines 335..341
l10n_it_fatturapa/bindings/binding.py on lines 368..374
l10n_it_fatturapa/bindings/binding.py on lines 388..394
l10n_it_fatturapa/bindings/binding.py on lines 454..460
l10n_it_fatturapa/bindings/binding.py on lines 470..476
l10n_it_fatturapa/bindings/binding.py on lines 490..496
l10n_it_fatturapa/bindings/binding.py on lines 570..576
l10n_it_fatturapa/bindings/binding.py on lines 585..591
l10n_it_fatturapa/bindings/binding.py on lines 600..606
l10n_it_fatturapa/bindings/binding.py on lines 888..894

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

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