AuthorizeNet/sdk-dotnet

View on GitHub

Showing 545 of 545 total issues

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

    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [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 4632..4639
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4642..4649
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4652..4659
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4733..4740
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5104..5111
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5173..5180
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5196..5203
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5222..5229
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5248..5255
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5328..5335
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5384..5391
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5722..5729
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5732..5739
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5762..5769
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5772..5779
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5801..5808
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6440..6447
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6565..6572
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3741..3748
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3751..3758
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3761..3768
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3842..3849
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4213..4220
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4282..4289
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4305..4312
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4331..4338
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4357..4364
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4437..4444
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4493..4500
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4831..4838
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4841..4848
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4871..4878
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4910..4917
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5540..5547
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5665..5672

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 4632..4639
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4642..4649
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4652..4659
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4733..4740
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5104..5111
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5173..5180
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5196..5203
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5248..5255
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5328..5335
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5384..5391
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5722..5729
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5732..5739
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5762..5769
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5772..5779
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5801..5808
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6440..6447
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6565..6572
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3741..3748
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3751..3758
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3761..3768
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3842..3849
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4213..4220
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4282..4289
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4305..4312
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4331..4338
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4357..4364
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4437..4444
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4493..4500
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4831..4838
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4841..4848
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4871..4878
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4881..4888
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4910..4917
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5540..5547
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5665..5672

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 4632..4639
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4642..4649
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4652..4659
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4733..4740
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5104..5111
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5173..5180
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5196..5203
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5222..5229
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5328..5335
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5384..5391
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5722..5729
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5732..5739
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5762..5769
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5772..5779
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5801..5808
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6440..6447
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6565..6572
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3741..3748
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3751..3758
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3761..3768
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3842..3849
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4213..4220
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4282..4289
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4305..4312
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4331..4338
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4357..4364
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4437..4444
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4493..4500
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4831..4838
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4841..4848
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4871..4878
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4881..4888
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4910..4917
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5540..5547
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5665..5672

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 4632..4639
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4642..4649
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4652..4659
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4733..4740
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5104..5111
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5173..5180
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5196..5203
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5222..5229
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5248..5255
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5328..5335
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5722..5729
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5732..5739
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5762..5769
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5772..5779
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5801..5808
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6440..6447
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6565..6572
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3741..3748
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3751..3758
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3761..3768
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3842..3849
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4213..4220
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4282..4289
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4305..4312
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4331..4338
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4357..4364
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4437..4444
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4493..4500
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4831..4838
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4841..4848
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4871..4878
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4881..4888
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4910..4917
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5540..5547
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5665..5672

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 4632..4639
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4642..4649
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4652..4659
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4733..4740
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5104..5111
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5173..5180
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5196..5203
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5222..5229
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5248..5255
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5328..5335
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5384..5391
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5722..5729
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5762..5769
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5772..5779
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5801..5808
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6440..6447
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6565..6572
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3741..3748
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3751..3758
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3761..3768
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3842..3849
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4213..4220
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4282..4289
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4305..4312
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4331..4338
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4357..4364
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4437..4444
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4493..4500
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4831..4838
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4841..4848
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4871..4878
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4881..4888
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4910..4917
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5540..5547
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5665..5672

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", "2.0.50727.3038")]
    [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 4632..4639
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4642..4649
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4652..4659
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4733..4740
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5104..5111
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5173..5180
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5196..5203
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5222..5229
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5248..5255
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5328..5335
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5384..5391
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5722..5729
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5732..5739
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5762..5769
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5772..5779
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5801..5808
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6440..6447
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6565..6572
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3741..3748
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3751..3758
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3761..3768
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3842..3849
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4213..4220
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4282..4289
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4305..4312
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4331..4338
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4357..4364
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4437..4444
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4493..4500
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4831..4838
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4841..4848
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4871..4878
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4881..4888
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4910..4917
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5665..5672

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

    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
Severity: Major
Found in Authorize.NET/Utility/AnetApiSchema.generated.cs and 1 other location - About 1 hr to fix
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2577..2601

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

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

    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
Severity: Major
Found in Authorize.NET/Utility/AnetApiSchema.generated.cs and 1 other location - About 1 hr to fix
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3238..3262

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

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

Method MockcreateFingerPrintTest has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        [Test]
        public void MockcreateFingerPrintTest()
        {
            var fingerPrintSupportInformation = new fingerPrintSupportInformationType
            {

    Method ARBGetSubscriptionSampleTest has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            [Test]
            public void ARBGetSubscriptionSampleTest()
            {
                LogHelper.info(Logger, "Sample GetSubscriptionList");
    
    

      Similar blocks of code found in 2 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(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
      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 3309..3319

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

      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

          [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
          [System.SerializableAttribute()]
          [System.Diagnostics.DebuggerStepThroughAttribute()]
          [System.ComponentModel.DesignerCategoryAttribute("code")]
          [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
      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 4092..4102

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

      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

          [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
          [System.SerializableAttribute()]
          [System.Diagnostics.DebuggerStepThroughAttribute()]
          [System.ComponentModel.DesignerCategoryAttribute("code")]
          [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
      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 2976..2989

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

      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

      namespace AuthorizeNet.Api.Controllers.MockTest
      {
          //using System;
          //using System.Collections.Generic;
          //using AuthorizeNet.Api.Contracts.V1;
      AuthorizeNETtest/Api/Controllers/MockTest/createProfileControllerTest.cs on lines 1..75

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

      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

      Method batchStatisticType has a Cognitive Complexity of 27 (exceeds 20 allowed). Consider refactoring.
      Open

              public static void batchStatisticType(batchStatisticType argument)
              {
                  if (null != argument)
                  {
                      if (0 <= argument.returnedItemAmount) { argument.returnedItemAmountSpecified = true; }
      Severity: Minor
      Found in Authorize.NET/Api/Contracts/V1/RequestFactoryWithSpecified.cs - About 1 hr to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

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

          [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
          [System.SerializableAttribute()]
          [System.Diagnostics.DebuggerStepThroughAttribute()]
          [System.ComponentModel.DesignerCategoryAttribute("code")]
          [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
      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 3660..3673

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

      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

      namespace AuthorizeNet.Api.Controllers.MockTest
      {
          //using System;
          //using System.Collections.Generic;
          //using AuthorizeNet.Api.Contracts.V1;
      AuthorizeNETtest/Api/Controllers/MockTest/transactionControllerTest.cs on lines 1..75

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

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

          [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
          [System.SerializableAttribute()]
          [System.Diagnostics.DebuggerStepThroughAttribute()]
          [System.ComponentModel.DesignerCategoryAttribute("code")]
          [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
      Severity: Major
      Found in Authorize.NET/Utility/AnetApiSchema.generated.cs and 2 other locations - About 1 hr to fix
      Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 154..175
      Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3449..3470

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

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

          [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
          [System.SerializableAttribute()]
          [System.Diagnostics.DebuggerStepThroughAttribute()]
          [System.ComponentModel.DesignerCategoryAttribute("code")]
          [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
      Severity: Major
      Found in Authorize.NET/Utility/AnetApiSchema.generated.cs and 2 other locations - About 1 hr to fix
      Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 154..175
      Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3546..3567

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

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

          [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
          [System.SerializableAttribute()]
          [System.Diagnostics.DebuggerStepThroughAttribute()]
          [System.ComponentModel.DesignerCategoryAttribute("code")]
          [System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
      Severity: Major
      Found in Authorize.NET/Utility/AnetApiSchema.generated.cs and 2 other locations - About 1 hr to fix
      Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3449..3470
      Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3546..3567

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

      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