AuthorizeNet/sdk-dotnet

View on GitHub

Showing 545 of 545 total issues

Method transactionDetailsType has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public static void transactionDetailsType(transactionDetailsType argument)
        {
            if (null != argument)
            {
                subscriptionPaymentType(argument.subscription);
Severity: Minor
Found in Authorize.NET/Api/Contracts/V1/RequestFactoryWithSpecified.cs - About 1 hr to fix

    Method SampleCodeCreateTransactionWithVisaCheckOut has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            [Test]
            [Ignore("To run this test, use dataKey, dataValue, callId details and Merchant ApiLoginIdKey and TransactionKey to configure this test below.")]
            public void SampleCodeCreateTransactionWithVisaCheckOut()
            {
                // The test setup.

      Method CreateTransactionInvalidRequestSchemaValidationTest has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              [Test]
              public void CreateTransactionInvalidRequestSchemaValidationTest()
              {
                  ApiOperationBase<ANetApiRequest, ANetApiResponse>.MerchantAuthentication = CustomMerchantAuthenticationType;
                  ApiOperationBase<ANetApiRequest, ANetApiResponse>.RunEnvironment = TestEnvironment;
      Severity: Minor
      Found in AuthorizeNETtest/Api/Controllers/Test/CreateTransactionTest.cs - About 1 hr to fix

        Method Create has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                public WebRequest Create(Uri uri)
                {
                    SerializationInfo si = new SerializationInfo(typeof(HttpWebRequest), new System.Runtime.Serialization.FormatterConverter());
                    StreamingContext sc = new StreamingContext();
                    WebHeaderCollection headers = new WebHeaderCollection();
        Severity: Minor
        Found in AuthorizeNETtest/WebRequestLocal.cs - About 1 hr to fix

          Method SampleCodeCreateTransactionWithApplePay has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  [Test]
                  [Ignore("To run this test, use your ApplePay ApiLoginIdKey and TransactionKey to configure this test below.")]
                  public void SampleCodeCreateTransactionWithApplePay()
                  {
                      // The test setup.

            Method GetTransactionId has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    private long GetTransactionId()
                    {
                        //Creates a credit card transaction and returns the transactions ID.
            
                        //Common code to set for all requests

              Method MockmobileDeviceLoginTest has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      [Test]
                      public void MockmobileDeviceLoginTest()
                      {
                          //define all mocked objects as final
                          var mockController = GetMockController<mobileDeviceLoginRequest, mobileDeviceLoginResponse>();

                Method TestSubscription has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        [Test]
                        public void TestSubscription() {
                            var rnd = new AnetRandom(DateTime.Now.Millisecond);
                            ApiOperationBase<ANetApiRequest, ANetApiResponse>.MerchantAuthentication = CustomMerchantAuthenticationType;
                            ApiOperationBase<ANetApiRequest, ANetApiResponse>.RunEnvironment = TestEnvironment;
                Severity: Minor
                Found in AuthorizeNETtest/Api/Controllers/Test/ArbSubscriptionTest.cs - About 1 hr to fix

                  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 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 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 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 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(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
                  Severity: Major
                  Found in Authorize.NET/Utility/AnetApiSchema.generated.cs and 1 other location - About 1 hr to fix
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2565..2574

                  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 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 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 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 427..439
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 575..587
                  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

                  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 427..439
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 575..587
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 639..651

                  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 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(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
                  Severity: Major
                  Found in Authorize.NET/Utility/AnetApiSchema.generated.cs and 1 other location - About 1 hr to fix
                  Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2553..2562

                  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 427..439
                  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

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

                  Severity
                  Category
                  Status
                  Source
                  Language