OCA/l10n-italy

View on GitHub

Showing 1,161 of 1,161 total issues

File wizard_riba_file_export.py has 301 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# -*- coding: utf-8 -*-
#
#
#    Copyright (C) 2011-2012 Associazione OpenERP Italia
#    (<http://www.odoo-italia.org>).
Severity: Minor
Found in l10n_it_ricevute_bancarie/wizard/wizard_riba_file_export.py - About 3 hrs to fix

    Function _BuildAutomaton_9 has 80 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

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

      File export_sepa_cbi_estero.py has 300 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      # -*- coding: utf-8 -*-
      ##############################################################################
      #
      #    SEPA Direct Debit module for Odoo
      #    Copyright (C) 2013-2015 Akretion (http://www.akretion.com)
      Severity: Minor
      Found in l10n_it_sepa_bonifici/wizard/export_sepa_cbi_estero.py - About 3 hrs to fix

        Function _BuildAutomaton_11 has 78 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

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

          Function split_communication has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
          Open

              def split_communication(self):
                  self.ensure_one()
                  if self.dati_trasmissione == 'DTE':
                      if not self.check_fatture_emesse_partners():
                          fatture_emesse = self.mapped(
          Severity: Minor
          Found in l10n_it_invoices_data_communication/models/communication.py - About 3 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

          Function create_opening_move has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
          Open

              def create_opening_move(self, cr, uid, operation, fyc, context):
                  """
                  Create an opening move (based on the closing one)
                  """
                  pool = self.pool
          Severity: Minor
          Found in account_fiscal_year_closing/wizard/wizard_run.py - About 3 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

          Function get_tax_by_tax_code has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
          Open

              def get_tax_by_tax_code(self):
                  """
                  Get account.tax linked to current tax code.
                  If the account.tax has a parent, the parent account.tax is returned.
                  """
          Severity: Minor
          Found in l10n_it_account/models/account_tax.py - About 3 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

          Function recompute_withholding_tax_voucher_line has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
          Open

              def recompute_withholding_tax_voucher_line(
                      self, cr, uid, voucher_line_id, context=None):
                  """
                  Split amount voucher line second WT lines invoice
                  """
          Severity: Minor
          Found in l10n_it_withholding_tax/models/voucher.py - About 3 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 2 locations. Consider refactoring.
          Open

                  wt_vals = {
                      'name': 'INPS',
                      'code': 'INPS',
                      'account_receivable_id': self.wt_account_receivable.id,
                      'account_payable_id': self.wt_account_payable.id,
          Severity: Major
          Found in l10n_it_fatturapa_out_wt/tests/test_fatturapa_wt.py and 1 other location - About 3 hrs to fix
          l10n_it_fatturapa_out_wt/tests/test_fatturapa_wt.py on lines 49..61

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

          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

                  wt_vals = {
                      'name': 'Enasarco',
                      'code': 'Enasarco',
                      'account_receivable_id': self.wt_account_receivable.id,
                      'account_payable_id': self.wt_account_payable.id,
          Severity: Major
          Found in l10n_it_fatturapa_out_wt/tests/test_fatturapa_wt.py and 1 other location - About 3 hrs to fix
          l10n_it_fatturapa_out_wt/tests/test_fatturapa_wt.py on lines 65..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 63.

          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

          AccountVatPeriodEndStatement has 26 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class AccountVatPeriodEndStatement(orm.Model):
          
              def _compute_authority_vat_amount(
                  self, cr, uid, ids, field_name, arg, context
              ):
          Severity: Minor
          Found in account_vat_period_end_statement/models/account.py - About 3 hrs to fix

            Consider simplifying this complex logical expression.
            Open

                        if not ct.notes:
                            nc = ct.national_code
                        elif (ct.notes == 'ORA' and
                                (not dtcostvar or not ct.var_date or
                                    dtcostvar < ct.var_date)):
            Severity: Critical
            Found in l10n_it_fiscalcode/wizard/compute_fc.py - About 3 hrs to fix

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

                  symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_lax, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/2000/09/xmldsig#')), pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 130, 4))
              Severity: Major
              Found in l10n_it_fatturapa/bindings/_ds.py and 9 other locations - About 3 hrs to fix
              l10n_it_fatturapa/bindings/_ds.py on lines 1325..1325
              l10n_it_fatturapa/bindings/_ds.py on lines 1428..1428
              l10n_it_fatturapa/bindings/_ds.py on lines 1530..1530
              l10n_it_fatturapa/bindings/_ds.py on lines 1704..1704
              l10n_it_fatturapa/bindings/_ds.py on lines 1785..1785
              l10n_it_fatturapa/bindings/_ds.py on lines 1939..1939
              l10n_it_fatturapa/bindings/_ds.py on lines 1948..1948
              l10n_it_fatturapa/bindings/_ds.py on lines 1999..1999
              l10n_it_fatturapa/bindings/_ds.py on lines 2102..2102

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 62.

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

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

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

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

              Refactorings

              Further Reading

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

                  symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_lax, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/2000/09/xmldsig#')), pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 118, 6))
              Severity: Major
              Found in l10n_it_fatturapa/bindings/_ds.py and 9 other locations - About 3 hrs to fix
              l10n_it_fatturapa/bindings/_ds.py on lines 1325..1325
              l10n_it_fatturapa/bindings/_ds.py on lines 1466..1466
              l10n_it_fatturapa/bindings/_ds.py on lines 1530..1530
              l10n_it_fatturapa/bindings/_ds.py on lines 1704..1704
              l10n_it_fatturapa/bindings/_ds.py on lines 1785..1785
              l10n_it_fatturapa/bindings/_ds.py on lines 1939..1939
              l10n_it_fatturapa/bindings/_ds.py on lines 1948..1948
              l10n_it_fatturapa/bindings/_ds.py on lines 1999..1999
              l10n_it_fatturapa/bindings/_ds.py on lines 2102..2102

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 62.

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

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

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

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

              Refactorings

              Further Reading

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

                  symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_lax, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/2000/09/xmldsig#')), pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 192, 6))
              Severity: Major
              Found in l10n_it_fatturapa/bindings/_ds.py and 9 other locations - About 3 hrs to fix
              l10n_it_fatturapa/bindings/_ds.py on lines 1325..1325
              l10n_it_fatturapa/bindings/_ds.py on lines 1428..1428
              l10n_it_fatturapa/bindings/_ds.py on lines 1466..1466
              l10n_it_fatturapa/bindings/_ds.py on lines 1530..1530
              l10n_it_fatturapa/bindings/_ds.py on lines 1704..1704
              l10n_it_fatturapa/bindings/_ds.py on lines 1939..1939
              l10n_it_fatturapa/bindings/_ds.py on lines 1948..1948
              l10n_it_fatturapa/bindings/_ds.py on lines 1999..1999
              l10n_it_fatturapa/bindings/_ds.py on lines 2102..2102

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 62.

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

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

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

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

              Refactorings

              Further Reading

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

                  symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_lax, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/2000/09/xmldsig#')), pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 168, 5))
              Severity: Major
              Found in l10n_it_fatturapa/bindings/_ds.py and 9 other locations - About 3 hrs to fix
              l10n_it_fatturapa/bindings/_ds.py on lines 1325..1325
              l10n_it_fatturapa/bindings/_ds.py on lines 1428..1428
              l10n_it_fatturapa/bindings/_ds.py on lines 1466..1466
              l10n_it_fatturapa/bindings/_ds.py on lines 1530..1530
              l10n_it_fatturapa/bindings/_ds.py on lines 1785..1785
              l10n_it_fatturapa/bindings/_ds.py on lines 1939..1939
              l10n_it_fatturapa/bindings/_ds.py on lines 1948..1948
              l10n_it_fatturapa/bindings/_ds.py on lines 1999..1999
              l10n_it_fatturapa/bindings/_ds.py on lines 2102..2102

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 62.

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

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

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

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

              Refactorings

              Further Reading

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

                  symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_lax, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/2000/09/xmldsig#')), pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 233, 4))
              Severity: Major
              Found in l10n_it_fatturapa/bindings/_ds.py and 9 other locations - About 3 hrs to fix
              l10n_it_fatturapa/bindings/_ds.py on lines 1325..1325
              l10n_it_fatturapa/bindings/_ds.py on lines 1428..1428
              l10n_it_fatturapa/bindings/_ds.py on lines 1466..1466
              l10n_it_fatturapa/bindings/_ds.py on lines 1530..1530
              l10n_it_fatturapa/bindings/_ds.py on lines 1704..1704
              l10n_it_fatturapa/bindings/_ds.py on lines 1785..1785
              l10n_it_fatturapa/bindings/_ds.py on lines 1939..1939
              l10n_it_fatturapa/bindings/_ds.py on lines 1948..1948
              l10n_it_fatturapa/bindings/_ds.py on lines 2102..2102

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 62.

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

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

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

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

              Refactorings

              Further Reading

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

                  symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_lax, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/2000/09/xmldsig#')), pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 272, 7))
              Severity: Major
              Found in l10n_it_fatturapa/bindings/_ds.py and 9 other locations - About 3 hrs to fix
              l10n_it_fatturapa/bindings/_ds.py on lines 1325..1325
              l10n_it_fatturapa/bindings/_ds.py on lines 1428..1428
              l10n_it_fatturapa/bindings/_ds.py on lines 1466..1466
              l10n_it_fatturapa/bindings/_ds.py on lines 1530..1530
              l10n_it_fatturapa/bindings/_ds.py on lines 1704..1704
              l10n_it_fatturapa/bindings/_ds.py on lines 1785..1785
              l10n_it_fatturapa/bindings/_ds.py on lines 1939..1939
              l10n_it_fatturapa/bindings/_ds.py on lines 1948..1948
              l10n_it_fatturapa/bindings/_ds.py on lines 1999..1999

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 62.

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

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

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

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

              Refactorings

              Further Reading

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

                  symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_strict, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/2000/09/xmldsig#')), pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 88, 6))
              Severity: Major
              Found in l10n_it_fatturapa/bindings/_ds.py and 9 other locations - About 3 hrs to fix
              l10n_it_fatturapa/bindings/_ds.py on lines 1428..1428
              l10n_it_fatturapa/bindings/_ds.py on lines 1466..1466
              l10n_it_fatturapa/bindings/_ds.py on lines 1530..1530
              l10n_it_fatturapa/bindings/_ds.py on lines 1704..1704
              l10n_it_fatturapa/bindings/_ds.py on lines 1785..1785
              l10n_it_fatturapa/bindings/_ds.py on lines 1939..1939
              l10n_it_fatturapa/bindings/_ds.py on lines 1948..1948
              l10n_it_fatturapa/bindings/_ds.py on lines 1999..1999
              l10n_it_fatturapa/bindings/_ds.py on lines 2102..2102

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 62.

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

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

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

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

              Refactorings

              Further Reading

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

                  symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_lax, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/2000/09/xmldsig#')), pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 154, 4))
              Severity: Major
              Found in l10n_it_fatturapa/bindings/_ds.py and 9 other locations - About 3 hrs to fix
              l10n_it_fatturapa/bindings/_ds.py on lines 1325..1325
              l10n_it_fatturapa/bindings/_ds.py on lines 1428..1428
              l10n_it_fatturapa/bindings/_ds.py on lines 1466..1466
              l10n_it_fatturapa/bindings/_ds.py on lines 1704..1704
              l10n_it_fatturapa/bindings/_ds.py on lines 1785..1785
              l10n_it_fatturapa/bindings/_ds.py on lines 1939..1939
              l10n_it_fatturapa/bindings/_ds.py on lines 1948..1948
              l10n_it_fatturapa/bindings/_ds.py on lines 1999..1999
              l10n_it_fatturapa/bindings/_ds.py on lines 2102..2102

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 62.

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

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

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

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

              Refactorings

              Further Reading

              Severity
              Category
              Status
              Source
              Language