AuthorizeNet/sdk-dotnet

View on GitHub

Showing 471 of 545 total issues

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

    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
Severity: Major
Found in Authorize.NET/Utility/AnetApiSchema.generated.cs and 25 other locations - About 1 hr to fix
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4605..4615
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4618..4628
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4683..4693
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4728..4738
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5059..5069
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5112..5122
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5447..5457
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5476..5486
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5489..5499
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5515..5525
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5730..5740
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6338..6348
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6615..6625
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3723..3733
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3736..3746
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3792..3802
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3837..3847
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4168..4178
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4221..4231
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4556..4566
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4585..4595
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4598..4608
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4624..4634
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5438..5448
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5715..5725

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

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

    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
Severity: Major
Found in Authorize.NET/Utility/AnetApiSchema.generated.cs and 21 other locations - About 1 hr to fix
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4741..4751
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4764..4774
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5158..5168
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5204..5214
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5336..5346
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5415..5425
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5502..5512
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5630..5640
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5696..5706
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6373..6383
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6573..6583
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3850..3860
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3873..3883
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4313..4323
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4445..4455
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4524..4534
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4611..4621
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4739..4749
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4805..4815
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5473..5483
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5673..5683

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

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

    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
Severity: Major
Found in Authorize.NET/Utility/AnetApiSchema.generated.cs and 25 other locations - About 1 hr to fix
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4605..4615
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4618..4628
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4683..4693
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4728..4738
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5059..5069
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5112..5122
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5447..5457
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5476..5486
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5489..5499
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5515..5525
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5730..5740
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6338..6348
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6615..6625
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3723..3733
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3736..3746
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3792..3802
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3837..3847
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4168..4178
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4221..4231
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4556..4566
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4585..4595
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4624..4634
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4839..4849
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5438..5448
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5715..5725

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

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

    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
Severity: Major
Found in Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs and 21 other locations - About 1 hr to fix
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4741..4751
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4764..4774
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5158..5168
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5336..5346
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5415..5425
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5502..5512
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5630..5640
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5696..5706
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6373..6383
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6573..6583
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3850..3860
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3873..3883
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4267..4277
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4313..4323
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4445..4455
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4524..4534
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4611..4621
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4739..4749
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4805..4815
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5473..5483
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5673..5683

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

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

    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
Severity: Major
Found in Authorize.NET/Utility/AnetApiSchema.generated.cs and 21 other locations - About 1 hr to fix
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4741..4751
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4764..4774
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5158..5168
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5204..5214
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5336..5346
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5415..5425
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5502..5512
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5630..5640
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5696..5706
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6373..6383
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6573..6583
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3850..3860
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3873..3883
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4267..4277
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4313..4323
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4524..4534
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4611..4621
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4739..4749
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4805..4815
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5473..5483
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5673..5683

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

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

    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
Severity: Major
Found in Authorize.NET/Utility/AnetApiSchema.generated.cs and 21 other locations - About 1 hr to fix
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4741..4751
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4764..4774
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5158..5168
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5204..5214
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5336..5346
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5415..5425
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5502..5512
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5630..5640
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5696..5706
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6373..6383
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6573..6583
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3850..3860
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4267..4277
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4313..4323
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4445..4455
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4524..4534
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4611..4621
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4739..4749
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4805..4815
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5473..5483
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5673..5683

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

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

    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
Severity: Major
Found in Authorize.NET/Utility/AnetApiSchema.generated.cs and 21 other locations - About 1 hr to fix
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4741..4751
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4764..4774
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5158..5168
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5204..5214
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5336..5346
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5415..5425
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5502..5512
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5630..5640
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5696..5706
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6373..6383
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6573..6583
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3850..3860
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3873..3883
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4267..4277
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4313..4323
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4445..4455
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4524..4534
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4611..4621
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4739..4749
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5473..5483
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5673..5683

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

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

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

    [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressExType))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
Severity: Major
Found in Authorize.NET/Utility/AnetApiSchema.generated.cs and 1 other location - About 1 hr to fix
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 319..335

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

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

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

    [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressExType))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
Severity: Major
Found in Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs and 1 other location - About 1 hr to fix
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 256..272

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

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

Identical blocks of code found in 3 locations. Consider refactoring.
Open

            if (0 == transId)
            {
                ValidateFailure<createTransactionRequest, createTransactionResponse, createTransactionController>(createController, createResponse);
                Assert.IsNotNull(createResponse.transactionResponse.errors);
                foreach (var error in createResponse.transactionResponse.errors)
AuthorizeNETtest/Api/Controllers/SampleTest/CreateTransactionSampleTest.cs on lines 79..92
AuthorizeNETtest/Api/Controllers/Test/CreateTransactionTest.cs on lines 84..97

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

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

Identical blocks of code found in 3 locations. Consider refactoring.
Open

            if (0 == transId)
            {
                ValidateFailure<createTransactionRequest, createTransactionResponse, createTransactionController>(createController, createResponse);
                Assert.IsNotNull(createResponse.transactionResponse.errors);
                foreach (var error in createResponse.transactionResponse.errors)
AuthorizeNETtest/Api/Controllers/SampleTest/CreateTransactionSampleTest.cs on lines 79..92
AuthorizeNETtest/Api/Controllers/SampleTest/CreateTransactionSampleTest.cs on lines 141..154

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

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

Identical blocks of code found in 3 locations. Consider refactoring.
Open

            if (0 == transId)
            {
                ValidateFailure<createTransactionRequest, createTransactionResponse, createTransactionController>(createController, createResponse);
                Assert.IsNotNull(createResponse.transactionResponse.errors);
                foreach (var error in createResponse.transactionResponse.errors)
AuthorizeNETtest/Api/Controllers/SampleTest/CreateTransactionSampleTest.cs on lines 141..154
AuthorizeNETtest/Api/Controllers/Test/CreateTransactionTest.cs on lines 84..97

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

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

    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
Severity: Major
Found in Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs and 35 other locations - About 1 hr to fix
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4653..4660
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4663..4670
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4673..4680
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4754..4761
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5125..5132
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5194..5201
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5217..5224
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5243..5250
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5269..5276
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5349..5356
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5405..5412
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5743..5750
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5753..5760
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5783..5790
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5822..5829
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6461..6468
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6586..6593
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3762..3769
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3772..3779
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3782..3789
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3863..3870
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4234..4241
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4303..4310
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4326..4333
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4352..4359
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4378..4385
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4458..4465
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4514..4521
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4852..4859
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4862..4869
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4892..4899
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4902..4909
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4931..4938
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5561..5568
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5686..5693

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

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

    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
Severity: Major
Found in Authorize.NET/Utility/AnetApiSchema.generated.cs and 35 other locations - About 1 hr to fix
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4653..4660
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4663..4670
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4673..4680
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4754..4761
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5125..5132
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5194..5201
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5217..5224
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5243..5250
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5269..5276
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5349..5356
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5405..5412
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5743..5750
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5753..5760
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5783..5790
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5793..5800
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5822..5829
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6461..6468
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6586..6593
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3762..3769
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3772..3779
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3782..3789
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3863..3870
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4234..4241
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4303..4310
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4326..4333
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4352..4359
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4378..4385
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4514..4521
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4852..4859
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4862..4869
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4892..4899
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4902..4909
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4931..4938
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5561..5568
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5686..5693

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

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

    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
Severity: Major
Found in Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs and 35 other locations - About 1 hr to fix
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4653..4660
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4663..4670
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4673..4680
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4754..4761
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5125..5132
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5194..5201
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5217..5224
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5243..5250
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5349..5356
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5405..5412
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5743..5750
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5753..5760
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5783..5790
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5793..5800
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5822..5829
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6461..6468
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6586..6593
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3762..3769
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3772..3779
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3782..3789
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3863..3870
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4234..4241
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4303..4310
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4326..4333
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4352..4359
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4378..4385
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4458..4465
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4514..4521
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4852..4859
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4862..4869
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4892..4899
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4902..4909
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4931..4938
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5561..5568
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5686..5693

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

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

    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
Severity: Major
Found in Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs and 35 other locations - About 1 hr to fix
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4653..4660
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4663..4670
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4673..4680
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4754..4761
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5125..5132
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5194..5201
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5217..5224
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5243..5250
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5269..5276
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5349..5356
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5743..5750
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5753..5760
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5783..5790
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5793..5800
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5822..5829
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6461..6468
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6586..6593
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3762..3769
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3772..3779
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3782..3789
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3863..3870
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4234..4241
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4303..4310
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4326..4333
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4352..4359
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4378..4385
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4458..4465
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4514..4521
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4852..4859
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4862..4869
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4892..4899
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4902..4909
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4931..4938
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5561..5568
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5686..5693

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

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

    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
Severity: Major
Found in Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs and 35 other locations - About 1 hr to fix
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4653..4660
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4663..4670
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4673..4680
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4754..4761
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5125..5132
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5194..5201
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5217..5224
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5243..5250
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5269..5276
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5349..5356
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5405..5412
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5743..5750
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5783..5790
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5793..5800
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5822..5829
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6461..6468
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6586..6593
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3762..3769
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3772..3779
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3782..3789
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3863..3870
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4234..4241
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4303..4310
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4326..4333
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4352..4359
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4378..4385
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4458..4465
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4514..4521
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4852..4859
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4862..4869
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4892..4899
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4902..4909
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4931..4938
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5561..5568
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5686..5693

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

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

    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
Severity: Major
Found in Authorize.NET/Utility/AnetApiSchema.generated.cs and 35 other locations - About 1 hr to fix
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4653..4660
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4663..4670
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4673..4680
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4754..4761
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5125..5132
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5194..5201
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5217..5224
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5243..5250
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5269..5276
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5349..5356
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5405..5412
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5743..5750
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5753..5760
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5783..5790
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5793..5800
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5822..5829
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6461..6468
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6586..6593
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3762..3769
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3772..3779
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3782..3789
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3863..3870
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4234..4241
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4303..4310
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4326..4333
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4352..4359
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4378..4385
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4458..4465
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4514..4521
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4852..4859
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4862..4869
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4892..4899
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4902..4909
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5561..5568
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5686..5693

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

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

    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
Severity: Major
Found in Authorize.NET/Utility/AnetApiSchema.generated.cs and 35 other locations - About 1 hr to fix
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4653..4660
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4663..4670
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4673..4680
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4754..4761
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5125..5132
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5194..5201
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5217..5224
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5243..5250
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5269..5276
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5349..5356
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5405..5412
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5743..5750
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5753..5760
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5783..5790
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5793..5800
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5822..5829
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6461..6468
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6586..6593
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3762..3769
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3772..3779
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3782..3789
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4234..4241
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4303..4310
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4326..4333
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4352..4359
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4378..4385
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4458..4465
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4514..4521
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4852..4859
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4862..4869
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4892..4899
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4902..4909
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4931..4938
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5561..5568
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5686..5693

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

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

    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
Severity: Major
Found in Authorize.NET/Utility/AnetApiSchema.generated.cs and 35 other locations - About 1 hr to fix
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4653..4660
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4663..4670
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4673..4680
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4754..4761
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5125..5132
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5194..5201
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5217..5224
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5243..5250
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5269..5276
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5349..5356
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5405..5412
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5743..5750
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5753..5760
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5783..5790
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5793..5800
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5822..5829
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6461..6468
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6586..6593
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3762..3769
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3772..3779
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3782..3789
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3863..3870
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4234..4241
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4326..4333
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4352..4359
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4378..4385
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4458..4465
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4514..4521
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4852..4859
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4862..4869
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4892..4899
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4902..4909
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4931..4938
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5561..5568
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5686..5693

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

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