OCA/l10n-italy

View on GitHub

Showing 820 of 1,161 total issues

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

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

Transforms = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'Transforms'), TransformsType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 108, 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 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

DigestMethod = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'DigestMethod'), DigestMethodType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 127, 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 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

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

X509Data = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'X509Data'), X509DataType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 183, 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 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

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

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

Reference = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'Reference'), ReferenceType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 96, 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 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

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

SignatureProperties = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'SignatureProperties'), SignaturePropertiesType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 261, 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 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

SignatureValue = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'SignatureValue'), SignatureValueType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 54, 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 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
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

Transform = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'Transform'), TransformType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 115, 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 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 2 locations. Consider refactoring.
Open

    def check_fatture_emesse_body(self):
        for line in self.fatture_emesse_ids:
            invoices_limit = len(line.fatture_emesse_body_ids)
            if invoices_limit > 1000:
                return False
Severity: Major
Found in l10n_it_invoices_data_communication/models/communication.py and 1 other location - About 1 hr to fix
l10n_it_invoices_data_communication/models/communication.py on lines 751..756

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

    def check_fatture_ricevute_body(self):
        for line in self.fatture_ricevute_ids:
            invoices_limit = len(line.fatture_ricevute_body_ids)
            if invoices_limit > 1000:
                return False
Severity: Major
Found in l10n_it_invoices_data_communication/models/communication.py and 1 other location - About 1 hr to fix
l10n_it_invoices_data_communication/models/communication.py on lines 739..744

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

            accumulatore = accumulatore + \
                self._Record40(
                    value[5], value[6], value[7], value[8], value[11])
Severity: Major
Found in l10n_it_ricevute_bancarie/wizard/wizard_riba_file_export.py and 1 other location - About 1 hr to fix
l10n_it_ricevute_bancarie/wizard/wizard_riba_file_export.py on lines 180..182

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

SPKIData = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'SPKIData'), SPKIDataType, location=pyxb.utils.utility.Location('http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd', 229, 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 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 2 locations. Consider refactoring.
Open

        arrotondamenti_attivi_account_id = self.env['account.account'].\
            search([('user_type', '=', self.env.ref(
Severity: Major
Found in l10n_it_fatturapa_in/tests/fatturapa_common.py and 1 other location - About 1 hr to fix
l10n_it_fatturapa_in/tests/fatturapa_common.py on lines 209..210

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

class AccountPaymentTerm(models.Model):
    # _position = ['2.4.2.2']
    _inherit = 'account.payment.term'

    fatturapa_pt_id = fields.Many2one(
Severity: Major
Found in l10n_it_fiscal_payment_term/models/account.py and 1 other location - About 1 hr to fix
l10n_it_fiscal_document_type/models/res_partner.py on lines 6..11

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