AuthorizeNet/sdk-dotnet

View on GitHub

Showing 545 of 545 total issues

Similar blocks of code found in 22 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 21 other locations - About 1 hr to fix
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4720..4730
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4743..4753
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5137..5147
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5183..5193
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5315..5325
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5394..5404
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5481..5491
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5609..5619
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5675..5685
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6352..6362
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6552..6562
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3829..3839
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3852..3862
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4246..4256
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4292..4302
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4424..4434
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4590..4600
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4718..4728
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4784..4794
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5452..5462
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5652..5662

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/Api/Contracts/V1/AnetApiSchema.generated.cs and 25 other locations - About 1 hr to fix
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4584..4594
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4597..4607
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4662..4672
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4707..4717
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5038..5048
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5091..5101
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5426..5436
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5455..5465
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5468..5478
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5494..5504
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5709..5719
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6317..6327
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3702..3712
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3715..3725
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3771..3781
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3816..3826
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4147..4157
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4200..4210
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4535..4545
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4564..4574
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4577..4587
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4603..4613
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4818..4828
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5417..5427
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5694..5704

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 4720..4730
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 4743..4753
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5183..5193
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5315..5325
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5394..5404
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5481..5491
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5609..5619
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 5675..5685
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6352..6362
Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 6552..6562
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3829..3839
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3852..3862
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4246..4256
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4292..4302
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4424..4434
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4503..4513
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4590..4600
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4718..4728
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 4784..4794
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5452..5462
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 5652..5662

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

    [System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressExType))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [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 312..328

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

Similar 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 249..265

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

Method ExecuteTestRequest has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        private static TS ExecuteTestRequest<TQ, TS, TT>(bool successExpected, TQ request, AuthorizeNet.Environment execEnvironment = null) 
            where TQ : ANetApiRequest
            where TS : ANetApiResponse
            where TT : ApiOperationBase<TQ, TS> 
        {
Severity: Minor
Found in AuthorizeNETtest/Api/Controllers/Test/ApiCoreTestBase.cs - About 1 hr to fix

    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

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

    Method MockARBGetSubscriptionListTest has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            [Test]
            public void MockARBGetSubscriptionListTest()
            {
                //define all mocked objects as final
                var mockController = GetMockController<ARBGetSubscriptionListRequest, ARBGetSubscriptionListResponse>();

      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 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 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 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 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 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", "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 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 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 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 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 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 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 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 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 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

      Severity
      Category
      Status
      Source
      Language