OCA/l10n-italy

View on GitHub

Showing 1,161 of 1,161 total issues

Function _compute_lines has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
Open

    def _compute_lines(self, cr, uid, ids, name, args, context=None):
        result = {}
        for statement in self.browse(cr, uid, ids, context=context):
            src = []
            lines = []
Severity: Minor
Found in account_vat_period_end_statement/models/account.py - About 1 hr 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 product_id_change has 10 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def product_id_change(self, product, uom_id, qty=0, name='',
Severity: Major
Found in l10n_it_withholding_tax/models/account.py - About 1 hr to fix

    Function recompute_voucher_lines has 10 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def recompute_voucher_lines(self, cr, uid, ids, partner_id, journal_id,
    Severity: Major
    Found in l10n_it_withholding_tax/models/voucher.py - About 1 hr to fix

      Function generate_party_agent has 10 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def generate_party_agent(self, parent_node, party_type, party_type_label,
      Severity: Major
      Found in l10n_it_sepa_bonifici/wizard/export_sepa_cbi_estero.py - About 1 hr to fix

        Function generate_party_agent has 10 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def generate_party_agent(
        Severity: Major
        Found in l10n_it_sepa_bonifici/wizard/export_sepa_cbi.py - About 1 hr to fix

          Function unreconcile_riba_lines has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
          Open

              def unreconcile_riba_lines(self, riba_lines):
                  for riba_line in riba_lines:
                      # allowed transitions:
                      # paid_to_cancel and unsolved_to_cancel. See workflow
                      if riba_line.state in ['paid', 'unsolved']:
          Severity: Minor
          Found in l10n_it_ricevute_bancarie/models/account/account.py - About 1 hr 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 _compute_lines has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
          Open

              def _compute_lines(self):
                  for line in self:
                      src = []
                      lines = []
                      if line.acceptance_move_id and not line.state == 'unsolved':
          Severity: Minor
          Found in l10n_it_ricevute_bancarie/models/riba.py - About 1 hr 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 riba_cancel has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
          Open

              def riba_cancel(self):
                  for riba_list in self:
                      for line in riba_list.line_ids:
                          line.state = 'cancel'
                          if line.acceptance_move_id:
          Severity: Minor
          Found in l10n_it_ricevute_bancarie/models/riba.py - About 1 hr 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 22 locations. Consider refactoring.
          Open

          DigestValue = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'DigestValue'), DigestValueType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 135, 0))
          Severity: Major
          Found in l10n_it_fatturapa/bindings/_ds.py and 21 other locations - About 1 hr to fix
          l10n_it_fatturapa/bindings/_ds.py on lines 1103..1103
          l10n_it_fatturapa/bindings/_ds.py on lines 1106..1106
          l10n_it_fatturapa/bindings/_ds.py on lines 1109..1109
          l10n_it_fatturapa/bindings/_ds.py on lines 1112..1112
          l10n_it_fatturapa/bindings/_ds.py on lines 1115..1115
          l10n_it_fatturapa/bindings/_ds.py on lines 1118..1118
          l10n_it_fatturapa/bindings/_ds.py on lines 1121..1121
          l10n_it_fatturapa/bindings/_ds.py on lines 1124..1124
          l10n_it_fatturapa/bindings/_ds.py on lines 1127..1127
          l10n_it_fatturapa/bindings/_ds.py on lines 1133..1133
          l10n_it_fatturapa/bindings/_ds.py on lines 1136..1136
          l10n_it_fatturapa/bindings/_ds.py on lines 1139..1139
          l10n_it_fatturapa/bindings/_ds.py on lines 1142..1142
          l10n_it_fatturapa/bindings/_ds.py on lines 1145..1145
          l10n_it_fatturapa/bindings/_ds.py on lines 1148..1148
          l10n_it_fatturapa/bindings/_ds.py on lines 1151..1151
          l10n_it_fatturapa/bindings/_ds.py on lines 1154..1154
          l10n_it_fatturapa/bindings/_ds.py on lines 1157..1157
          l10n_it_fatturapa/bindings/_ds.py on lines 1160..1160
          l10n_it_fatturapa/bindings/_ds.py on lines 1163..1163
          l10n_it_fatturapa/bindings/_ds.py on lines 1166..1166

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

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

          RSAKeyValue = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'RSAKeyValue'), RSAKeyValueType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 306, 0))
          Severity: Major
          Found in l10n_it_fatturapa/bindings/_ds.py and 21 other locations - About 1 hr to fix
          l10n_it_fatturapa/bindings/_ds.py on lines 1103..1103
          l10n_it_fatturapa/bindings/_ds.py on lines 1106..1106
          l10n_it_fatturapa/bindings/_ds.py on lines 1109..1109
          l10n_it_fatturapa/bindings/_ds.py on lines 1112..1112
          l10n_it_fatturapa/bindings/_ds.py on lines 1115..1115
          l10n_it_fatturapa/bindings/_ds.py on lines 1118..1118
          l10n_it_fatturapa/bindings/_ds.py on lines 1121..1121
          l10n_it_fatturapa/bindings/_ds.py on lines 1124..1124
          l10n_it_fatturapa/bindings/_ds.py on lines 1127..1127
          l10n_it_fatturapa/bindings/_ds.py on lines 1130..1130
          l10n_it_fatturapa/bindings/_ds.py on lines 1133..1133
          l10n_it_fatturapa/bindings/_ds.py on lines 1136..1136
          l10n_it_fatturapa/bindings/_ds.py on lines 1139..1139
          l10n_it_fatturapa/bindings/_ds.py on lines 1142..1142
          l10n_it_fatturapa/bindings/_ds.py on lines 1145..1145
          l10n_it_fatturapa/bindings/_ds.py on lines 1148..1148
          l10n_it_fatturapa/bindings/_ds.py on lines 1151..1151
          l10n_it_fatturapa/bindings/_ds.py on lines 1154..1154
          l10n_it_fatturapa/bindings/_ds.py on lines 1157..1157
          l10n_it_fatturapa/bindings/_ds.py on lines 1160..1160
          l10n_it_fatturapa/bindings/_ds.py on lines 1163..1163

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

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

          SignedInfo = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'SignedInfo'), SignedInfoType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 65, 0))
          Severity: Major
          Found in l10n_it_fatturapa/bindings/_ds.py and 21 other locations - About 1 hr to fix
          l10n_it_fatturapa/bindings/_ds.py on lines 1103..1103
          l10n_it_fatturapa/bindings/_ds.py on lines 1106..1106
          l10n_it_fatturapa/bindings/_ds.py on lines 1112..1112
          l10n_it_fatturapa/bindings/_ds.py on lines 1115..1115
          l10n_it_fatturapa/bindings/_ds.py on lines 1118..1118
          l10n_it_fatturapa/bindings/_ds.py on lines 1121..1121
          l10n_it_fatturapa/bindings/_ds.py on lines 1124..1124
          l10n_it_fatturapa/bindings/_ds.py on lines 1127..1127
          l10n_it_fatturapa/bindings/_ds.py on lines 1130..1130
          l10n_it_fatturapa/bindings/_ds.py on lines 1133..1133
          l10n_it_fatturapa/bindings/_ds.py on lines 1136..1136
          l10n_it_fatturapa/bindings/_ds.py on lines 1139..1139
          l10n_it_fatturapa/bindings/_ds.py on lines 1142..1142
          l10n_it_fatturapa/bindings/_ds.py on lines 1145..1145
          l10n_it_fatturapa/bindings/_ds.py on lines 1148..1148
          l10n_it_fatturapa/bindings/_ds.py on lines 1151..1151
          l10n_it_fatturapa/bindings/_ds.py on lines 1154..1154
          l10n_it_fatturapa/bindings/_ds.py on lines 1157..1157
          l10n_it_fatturapa/bindings/_ds.py on lines 1160..1160
          l10n_it_fatturapa/bindings/_ds.py on lines 1163..1163
          l10n_it_fatturapa/bindings/_ds.py on lines 1166..1166

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

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

          SignatureProperty = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'SignatureProperty'), SignaturePropertyType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 269, 3))
          Severity: Major
          Found in l10n_it_fatturapa/bindings/_ds.py and 21 other locations - About 1 hr to fix
          l10n_it_fatturapa/bindings/_ds.py on lines 1103..1103
          l10n_it_fatturapa/bindings/_ds.py on lines 1106..1106
          l10n_it_fatturapa/bindings/_ds.py on lines 1109..1109
          l10n_it_fatturapa/bindings/_ds.py on lines 1112..1112
          l10n_it_fatturapa/bindings/_ds.py on lines 1115..1115
          l10n_it_fatturapa/bindings/_ds.py on lines 1118..1118
          l10n_it_fatturapa/bindings/_ds.py on lines 1121..1121
          l10n_it_fatturapa/bindings/_ds.py on lines 1124..1124
          l10n_it_fatturapa/bindings/_ds.py on lines 1127..1127
          l10n_it_fatturapa/bindings/_ds.py on lines 1130..1130
          l10n_it_fatturapa/bindings/_ds.py on lines 1133..1133
          l10n_it_fatturapa/bindings/_ds.py on lines 1136..1136
          l10n_it_fatturapa/bindings/_ds.py on lines 1139..1139
          l10n_it_fatturapa/bindings/_ds.py on lines 1142..1142
          l10n_it_fatturapa/bindings/_ds.py on lines 1145..1145
          l10n_it_fatturapa/bindings/_ds.py on lines 1148..1148
          l10n_it_fatturapa/bindings/_ds.py on lines 1151..1151
          l10n_it_fatturapa/bindings/_ds.py on lines 1154..1154
          l10n_it_fatturapa/bindings/_ds.py on lines 1157..1157
          l10n_it_fatturapa/bindings/_ds.py on lines 1163..1163
          l10n_it_fatturapa/bindings/_ds.py on lines 1166..1166

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

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

          DSAKeyValue = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'DSAKeyValue'), DSAKeyValueType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 289, 0))
          Severity: Major
          Found in l10n_it_fatturapa/bindings/_ds.py and 21 other locations - About 1 hr to fix
          l10n_it_fatturapa/bindings/_ds.py on lines 1103..1103
          l10n_it_fatturapa/bindings/_ds.py on lines 1106..1106
          l10n_it_fatturapa/bindings/_ds.py on lines 1109..1109
          l10n_it_fatturapa/bindings/_ds.py on lines 1112..1112
          l10n_it_fatturapa/bindings/_ds.py on lines 1115..1115
          l10n_it_fatturapa/bindings/_ds.py on lines 1118..1118
          l10n_it_fatturapa/bindings/_ds.py on lines 1121..1121
          l10n_it_fatturapa/bindings/_ds.py on lines 1124..1124
          l10n_it_fatturapa/bindings/_ds.py on lines 1127..1127
          l10n_it_fatturapa/bindings/_ds.py on lines 1130..1130
          l10n_it_fatturapa/bindings/_ds.py on lines 1133..1133
          l10n_it_fatturapa/bindings/_ds.py on lines 1136..1136
          l10n_it_fatturapa/bindings/_ds.py on lines 1139..1139
          l10n_it_fatturapa/bindings/_ds.py on lines 1142..1142
          l10n_it_fatturapa/bindings/_ds.py on lines 1145..1145
          l10n_it_fatturapa/bindings/_ds.py on lines 1148..1148
          l10n_it_fatturapa/bindings/_ds.py on lines 1151..1151
          l10n_it_fatturapa/bindings/_ds.py on lines 1154..1154
          l10n_it_fatturapa/bindings/_ds.py on lines 1157..1157
          l10n_it_fatturapa/bindings/_ds.py on lines 1160..1160
          l10n_it_fatturapa/bindings/_ds.py on lines 1166..1166

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

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

          RetrievalMethod = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'RetrievalMethod'), RetrievalMethodType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 172, 2))
          Severity: Major
          Found in l10n_it_fatturapa/bindings/_ds.py and 21 other locations - About 1 hr to fix
          l10n_it_fatturapa/bindings/_ds.py on lines 1103..1103
          l10n_it_fatturapa/bindings/_ds.py on lines 1106..1106
          l10n_it_fatturapa/bindings/_ds.py on lines 1109..1109
          l10n_it_fatturapa/bindings/_ds.py on lines 1112..1112
          l10n_it_fatturapa/bindings/_ds.py on lines 1115..1115
          l10n_it_fatturapa/bindings/_ds.py on lines 1118..1118
          l10n_it_fatturapa/bindings/_ds.py on lines 1121..1121
          l10n_it_fatturapa/bindings/_ds.py on lines 1124..1124
          l10n_it_fatturapa/bindings/_ds.py on lines 1127..1127
          l10n_it_fatturapa/bindings/_ds.py on lines 1130..1130
          l10n_it_fatturapa/bindings/_ds.py on lines 1133..1133
          l10n_it_fatturapa/bindings/_ds.py on lines 1136..1136
          l10n_it_fatturapa/bindings/_ds.py on lines 1142..1142
          l10n_it_fatturapa/bindings/_ds.py on lines 1145..1145
          l10n_it_fatturapa/bindings/_ds.py on lines 1148..1148
          l10n_it_fatturapa/bindings/_ds.py on lines 1151..1151
          l10n_it_fatturapa/bindings/_ds.py on lines 1154..1154
          l10n_it_fatturapa/bindings/_ds.py on lines 1157..1157
          l10n_it_fatturapa/bindings/_ds.py on lines 1160..1160
          l10n_it_fatturapa/bindings/_ds.py on lines 1163..1163
          l10n_it_fatturapa/bindings/_ds.py on lines 1166..1166

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

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

          KeyValue = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'KeyValue'), KeyValueType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 163, 2))
          Severity: Major
          Found in l10n_it_fatturapa/bindings/_ds.py and 21 other locations - About 1 hr to fix
          l10n_it_fatturapa/bindings/_ds.py on lines 1103..1103
          l10n_it_fatturapa/bindings/_ds.py on lines 1106..1106
          l10n_it_fatturapa/bindings/_ds.py on lines 1109..1109
          l10n_it_fatturapa/bindings/_ds.py on lines 1112..1112
          l10n_it_fatturapa/bindings/_ds.py on lines 1115..1115
          l10n_it_fatturapa/bindings/_ds.py on lines 1118..1118
          l10n_it_fatturapa/bindings/_ds.py on lines 1121..1121
          l10n_it_fatturapa/bindings/_ds.py on lines 1124..1124
          l10n_it_fatturapa/bindings/_ds.py on lines 1127..1127
          l10n_it_fatturapa/bindings/_ds.py on lines 1130..1130
          l10n_it_fatturapa/bindings/_ds.py on lines 1133..1133
          l10n_it_fatturapa/bindings/_ds.py on lines 1139..1139
          l10n_it_fatturapa/bindings/_ds.py on lines 1142..1142
          l10n_it_fatturapa/bindings/_ds.py on lines 1145..1145
          l10n_it_fatturapa/bindings/_ds.py on lines 1148..1148
          l10n_it_fatturapa/bindings/_ds.py on lines 1151..1151
          l10n_it_fatturapa/bindings/_ds.py on lines 1154..1154
          l10n_it_fatturapa/bindings/_ds.py on lines 1157..1157
          l10n_it_fatturapa/bindings/_ds.py on lines 1160..1160
          l10n_it_fatturapa/bindings/_ds.py on lines 1163..1163
          l10n_it_fatturapa/bindings/_ds.py on lines 1166..1166

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

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

          PGPData = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'PGPData'), PGPDataType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 208, 0))
          Severity: Major
          Found in l10n_it_fatturapa/bindings/_ds.py and 21 other locations - About 1 hr to fix
          l10n_it_fatturapa/bindings/_ds.py on lines 1103..1103
          l10n_it_fatturapa/bindings/_ds.py on lines 1106..1106
          l10n_it_fatturapa/bindings/_ds.py on lines 1109..1109
          l10n_it_fatturapa/bindings/_ds.py on lines 1112..1112
          l10n_it_fatturapa/bindings/_ds.py on lines 1115..1115
          l10n_it_fatturapa/bindings/_ds.py on lines 1118..1118
          l10n_it_fatturapa/bindings/_ds.py on lines 1121..1121
          l10n_it_fatturapa/bindings/_ds.py on lines 1124..1124
          l10n_it_fatturapa/bindings/_ds.py on lines 1127..1127
          l10n_it_fatturapa/bindings/_ds.py on lines 1130..1130
          l10n_it_fatturapa/bindings/_ds.py on lines 1133..1133
          l10n_it_fatturapa/bindings/_ds.py on lines 1136..1136
          l10n_it_fatturapa/bindings/_ds.py on lines 1139..1139
          l10n_it_fatturapa/bindings/_ds.py on lines 1142..1142
          l10n_it_fatturapa/bindings/_ds.py on lines 1148..1148
          l10n_it_fatturapa/bindings/_ds.py on lines 1151..1151
          l10n_it_fatturapa/bindings/_ds.py on lines 1154..1154
          l10n_it_fatturapa/bindings/_ds.py on lines 1157..1157
          l10n_it_fatturapa/bindings/_ds.py on lines 1160..1160
          l10n_it_fatturapa/bindings/_ds.py on lines 1163..1163
          l10n_it_fatturapa/bindings/_ds.py on lines 1166..1166

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

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

          KeyInfo = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'KeyInfo'), KeyInfoType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 144, 0))
          Severity: Major
          Found in l10n_it_fatturapa/bindings/_ds.py and 21 other locations - About 1 hr to fix
          l10n_it_fatturapa/bindings/_ds.py on lines 1103..1103
          l10n_it_fatturapa/bindings/_ds.py on lines 1106..1106
          l10n_it_fatturapa/bindings/_ds.py on lines 1109..1109
          l10n_it_fatturapa/bindings/_ds.py on lines 1112..1112
          l10n_it_fatturapa/bindings/_ds.py on lines 1115..1115
          l10n_it_fatturapa/bindings/_ds.py on lines 1118..1118
          l10n_it_fatturapa/bindings/_ds.py on lines 1121..1121
          l10n_it_fatturapa/bindings/_ds.py on lines 1124..1124
          l10n_it_fatturapa/bindings/_ds.py on lines 1127..1127
          l10n_it_fatturapa/bindings/_ds.py on lines 1130..1130
          l10n_it_fatturapa/bindings/_ds.py on lines 1136..1136
          l10n_it_fatturapa/bindings/_ds.py on lines 1139..1139
          l10n_it_fatturapa/bindings/_ds.py on lines 1142..1142
          l10n_it_fatturapa/bindings/_ds.py on lines 1145..1145
          l10n_it_fatturapa/bindings/_ds.py on lines 1148..1148
          l10n_it_fatturapa/bindings/_ds.py on lines 1151..1151
          l10n_it_fatturapa/bindings/_ds.py on lines 1154..1154
          l10n_it_fatturapa/bindings/_ds.py on lines 1157..1157
          l10n_it_fatturapa/bindings/_ds.py on lines 1160..1160
          l10n_it_fatturapa/bindings/_ds.py on lines 1163..1163
          l10n_it_fatturapa/bindings/_ds.py on lines 1166..1166

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

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

          CanonicalizationMethod = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'CanonicalizationMethod'), CanonicalizationMethodType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 75, 2))
          Severity: Major
          Found in l10n_it_fatturapa/bindings/_ds.py and 21 other locations - About 1 hr to fix
          l10n_it_fatturapa/bindings/_ds.py on lines 1103..1103
          l10n_it_fatturapa/bindings/_ds.py on lines 1106..1106
          l10n_it_fatturapa/bindings/_ds.py on lines 1109..1109
          l10n_it_fatturapa/bindings/_ds.py on lines 1115..1115
          l10n_it_fatturapa/bindings/_ds.py on lines 1118..1118
          l10n_it_fatturapa/bindings/_ds.py on lines 1121..1121
          l10n_it_fatturapa/bindings/_ds.py on lines 1124..1124
          l10n_it_fatturapa/bindings/_ds.py on lines 1127..1127
          l10n_it_fatturapa/bindings/_ds.py on lines 1130..1130
          l10n_it_fatturapa/bindings/_ds.py on lines 1133..1133
          l10n_it_fatturapa/bindings/_ds.py on lines 1136..1136
          l10n_it_fatturapa/bindings/_ds.py on lines 1139..1139
          l10n_it_fatturapa/bindings/_ds.py on lines 1142..1142
          l10n_it_fatturapa/bindings/_ds.py on lines 1145..1145
          l10n_it_fatturapa/bindings/_ds.py on lines 1148..1148
          l10n_it_fatturapa/bindings/_ds.py on lines 1151..1151
          l10n_it_fatturapa/bindings/_ds.py on lines 1154..1154
          l10n_it_fatturapa/bindings/_ds.py on lines 1157..1157
          l10n_it_fatturapa/bindings/_ds.py on lines 1160..1160
          l10n_it_fatturapa/bindings/_ds.py on lines 1163..1163
          l10n_it_fatturapa/bindings/_ds.py on lines 1166..1166

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

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

          SignatureMethod = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'SignatureMethod'), SignatureMethodType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 84, 2))
          Severity: Major
          Found in l10n_it_fatturapa/bindings/_ds.py and 21 other locations - About 1 hr to fix
          l10n_it_fatturapa/bindings/_ds.py on lines 1103..1103
          l10n_it_fatturapa/bindings/_ds.py on lines 1106..1106
          l10n_it_fatturapa/bindings/_ds.py on lines 1109..1109
          l10n_it_fatturapa/bindings/_ds.py on lines 1112..1112
          l10n_it_fatturapa/bindings/_ds.py on lines 1118..1118
          l10n_it_fatturapa/bindings/_ds.py on lines 1121..1121
          l10n_it_fatturapa/bindings/_ds.py on lines 1124..1124
          l10n_it_fatturapa/bindings/_ds.py on lines 1127..1127
          l10n_it_fatturapa/bindings/_ds.py on lines 1130..1130
          l10n_it_fatturapa/bindings/_ds.py on lines 1133..1133
          l10n_it_fatturapa/bindings/_ds.py on lines 1136..1136
          l10n_it_fatturapa/bindings/_ds.py on lines 1139..1139
          l10n_it_fatturapa/bindings/_ds.py on lines 1142..1142
          l10n_it_fatturapa/bindings/_ds.py on lines 1145..1145
          l10n_it_fatturapa/bindings/_ds.py on lines 1148..1148
          l10n_it_fatturapa/bindings/_ds.py on lines 1151..1151
          l10n_it_fatturapa/bindings/_ds.py on lines 1154..1154
          l10n_it_fatturapa/bindings/_ds.py on lines 1157..1157
          l10n_it_fatturapa/bindings/_ds.py on lines 1160..1160
          l10n_it_fatturapa/bindings/_ds.py on lines 1163..1163
          l10n_it_fatturapa/bindings/_ds.py on lines 1166..1166

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

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

          Object = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'Object'), ObjectType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 243, 0))
          Severity: Major
          Found in l10n_it_fatturapa/bindings/_ds.py and 21 other locations - About 1 hr to fix
          l10n_it_fatturapa/bindings/_ds.py on lines 1103..1103
          l10n_it_fatturapa/bindings/_ds.py on lines 1106..1106
          l10n_it_fatturapa/bindings/_ds.py on lines 1109..1109
          l10n_it_fatturapa/bindings/_ds.py on lines 1112..1112
          l10n_it_fatturapa/bindings/_ds.py on lines 1115..1115
          l10n_it_fatturapa/bindings/_ds.py on lines 1118..1118
          l10n_it_fatturapa/bindings/_ds.py on lines 1121..1121
          l10n_it_fatturapa/bindings/_ds.py on lines 1124..1124
          l10n_it_fatturapa/bindings/_ds.py on lines 1127..1127
          l10n_it_fatturapa/bindings/_ds.py on lines 1130..1130
          l10n_it_fatturapa/bindings/_ds.py on lines 1133..1133
          l10n_it_fatturapa/bindings/_ds.py on lines 1136..1136
          l10n_it_fatturapa/bindings/_ds.py on lines 1139..1139
          l10n_it_fatturapa/bindings/_ds.py on lines 1142..1142
          l10n_it_fatturapa/bindings/_ds.py on lines 1145..1145
          l10n_it_fatturapa/bindings/_ds.py on lines 1148..1148
          l10n_it_fatturapa/bindings/_ds.py on lines 1154..1154
          l10n_it_fatturapa/bindings/_ds.py on lines 1157..1157
          l10n_it_fatturapa/bindings/_ds.py on lines 1160..1160
          l10n_it_fatturapa/bindings/_ds.py on lines 1163..1163
          l10n_it_fatturapa/bindings/_ds.py on lines 1166..1166

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

          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