AuthorizeNet/sdk-dotnet

View on GitHub

Showing 545 of 545 total issues

Similar blocks of code found in 9 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 8 other locations - About 1 hr to fix
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 934..946
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 1232..1244
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 1247..1259
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2131..2143
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2636..2648
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2677..2689
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3175..3187
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3570..3582

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

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 9 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 8 other locations - About 1 hr to fix
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 624..636
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 934..946
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 1232..1244
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 1247..1259
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2131..2143
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2636..2648
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2677..2689
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 3175..3187

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

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 4 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 3 other locations - About 1 hr to fix
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 575..587
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 639..651
Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 667..679

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

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 MockupdateHeldTransactionTest has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        [Test]
        public void MockupdateHeldTransactionTest()
        {
            //define all mocked objects as final
            var mockController = GetMockController<updateHeldTransactionRequest, updateHeldTransactionResponse>();

    Method MockcreateTransactionTest has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            [Test]
            public void MockcreateTransactionTest()
            {
                //define all mocked objects as final
                var mockController = GetMockController<createTransactionRequest, createTransactionResponse>();

      Method MockgetCustomerPaymentProfileTest has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              [Test]
              public void MockgetCustomerPaymentProfileTest()
              {
                  //define all mocked objects as final
                  var mockController = GetMockController<getCustomerPaymentProfileRequest, getCustomerPaymentProfileResponse>();

        Method ARBGetSubscriptionListCheckPagination has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                [Test]
                public void ARBGetSubscriptionListCheckPagination()
                {
        
                    var arbGetSubscriptionListResponse = GetSubscriptionListResponse(1, 1);
        Severity: Minor
        Found in AuthorizeNETtest/Api/Controllers/Test/ArbSubscriptionTest.cs - About 1 hr to fix

          Method MockgetBatchStatisticsTest has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  [Test]
                  public void MockgetBatchStatisticsTest()
                  {
                      //define all mocked objects as final
                      var mockController = GetMockController<getBatchStatisticsRequest, getBatchStatisticsResponse>();

            Method MockgetCustomerShippingAddressTest has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    [Test]
                    public void MockgetCustomerShippingAddressTest()
                    {
                        //define all mocked objects as final
                        var mockController = GetMockController<getCustomerShippingAddressRequest, getCustomerShippingAddressResponse>();

              Method MockgetTransactionDetailsTest has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      [Test]
                      public void MockgetTransactionDetailsTest()
                      {
                          //define all mocked objects as final
                          var mockController = GetMockController<getTransactionDetailsRequest, getTransactionDetailsResponse>();

                Method MockgetCustomerProfileTest has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        [Test]
                        public void MockgetCustomerProfileTest()
                        {
                            //define all mocked objects as final
                            var mockController = GetMockController<getCustomerProfileRequest, getCustomerProfileResponse>();

                  Similar blocks of code found in 8 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 7 other locations - About 1 hr to fix
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 375..384
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 1761..1770
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 3564..3573
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 303..312
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 1428..1437
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2089..2098
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2889..2898

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

                  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 8 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 7 other locations - About 1 hr to fix
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 375..384
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 1761..1770
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 2539..2548
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 3564..3573
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 303..312
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 1428..1437
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2889..2898

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

                  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 8 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 7 other locations - About 1 hr to fix
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 375..384
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 1761..1770
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 2539..2548
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 303..312
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 1428..1437
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2089..2098
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2889..2898

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

                  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 138..147

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

                  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 111..120

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

                  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 8 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 7 other locations - About 1 hr to fix
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 375..384
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 1761..1770
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 2539..2548
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 3564..3573
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 303..312
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2089..2098
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2889..2898

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

                  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 8 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 7 other locations - About 1 hr to fix
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 1761..1770
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 2539..2548
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 3564..3573
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 303..312
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 1428..1437
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2089..2098
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2889..2898

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

                  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 8 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 7 other locations - About 1 hr to fix
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 375..384
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 2539..2548
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 3564..3573
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 303..312
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 1428..1437
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2089..2098
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2889..2898

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

                  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 8 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 7 other locations - About 1 hr to fix
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 375..384
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 1761..1770
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 2539..2548
                  Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 3564..3573
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 303..312
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 1428..1437
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2089..2098

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

                  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