AuthorizeNet/sdk-dotnet

View on GitHub

Showing 545 of 545 total issues

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

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

        public static T Create<T>(string xml) //where T: object //MarshalByRefObject
        {
            var entity = default(T);
            //make sure we have not null and not-empty string to de-serialize
            if ( null != xml && 0 != xml.Trim().Length)
Severity: Minor
Found in Authorize.NET/Util/XmlUtility.cs - About 1 hr to fix

    Method MockcreateCustomerProfileFromTransactionTest has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            [Test]
            public void MockcreateCustomerProfileFromTransactionTest()
            {
                //define all mocked objects as final
                var mockController = GetMockController<createCustomerProfileFromTransactionRequest, createCustomerProfileResponse>();

      Method MockcreateCustomerProfileTest has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              [Test]
              public void MockcreateCustomerProfileTest()
              {
                  //define all mocked objects as final
                  var mockController = GetMockController<createCustomerProfileRequest, createCustomerProfileResponse>();

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

                    var CustomerAddress = new customerAddressType
                    {
                        firstName = GetRandomString("FName"),
                        lastName = GetRandomString("LName"),
                        company = GetRandomString("Company"),
        AuthorizeNETtest/Api/Controllers/Test/ApiCoreTestBase.cs on lines 216..228

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

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

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

                    CustomerAddressOne = new customerAddressType
                        {
                            firstName = GetRandomString("FName"),
                            lastName = GetRandomString("LName"),
                            company = GetRandomString("Company"),
        Severity: Major
        Found in AuthorizeNETtest/Api/Controllers/Test/ApiCoreTestBase.cs and 1 other location - About 1 hr to fix
        AuthorizeNETtest/Api/Controllers/MockTest/getCustomerPaymentProfileListControllerTest.cs on lines 71..83

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

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

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

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

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

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

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

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

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

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

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

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

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

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

        namespace AuthorizeNet.Api.Controllers
        {
            using System;
            using AuthorizeNet.Api.Contracts.V1;
            using AuthorizeNet.Api.Controllers.Bases;
        Authorize.NET/Api/Controllers/ARBUpdateSubscriptionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createCustomerPaymentProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createCustomerProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createTransactionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/decryptPaymentDataController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getHostedPaymentPageController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getMerchantDetailsController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getSettledBatchListController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getTransactionListForCustomerController.cs on lines 1..30
        Authorize.NET/Api/Controllers/isAliveController.cs on lines 1..28
        Authorize.NET/Api/Controllers/logoutController.cs on lines 1..30
        Authorize.NET/Api/Controllers/mobileDeviceRegistrationController.cs on lines 1..30
        Authorize.NET/Api/Controllers/securePaymentContainerController.cs on lines 1..30
        Authorize.NET/Api/Controllers/transactionResponseEmvController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateCustomerPaymentProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateCustomerProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateHeldTransactionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateMerchantDetailsController.cs on lines 1..30

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

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

        namespace AuthorizeNet.Api.Controllers
        {
            using System;
            using AuthorizeNet.Api.Contracts.V1;
            using AuthorizeNet.Api.Controllers.Bases;
        Authorize.NET/Api/Controllers/ARBUpdateSubscriptionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/authenticateTestController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createCustomerPaymentProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createCustomerProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createTransactionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/decryptPaymentDataController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getMerchantDetailsController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getSettledBatchListController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getTransactionListForCustomerController.cs on lines 1..30
        Authorize.NET/Api/Controllers/isAliveController.cs on lines 1..28
        Authorize.NET/Api/Controllers/logoutController.cs on lines 1..30
        Authorize.NET/Api/Controllers/mobileDeviceRegistrationController.cs on lines 1..30
        Authorize.NET/Api/Controllers/securePaymentContainerController.cs on lines 1..30
        Authorize.NET/Api/Controllers/transactionResponseEmvController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateCustomerPaymentProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateCustomerProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateHeldTransactionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateMerchantDetailsController.cs on lines 1..30

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

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

        namespace AuthorizeNet.Api.Controllers
        {
            using System;
            using AuthorizeNet.Api.Contracts.V1;
            using AuthorizeNet.Api.Controllers.Bases;
        Authorize.NET/Api/Controllers/ARBUpdateSubscriptionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/authenticateTestController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createCustomerPaymentProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createTransactionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/decryptPaymentDataController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getHostedPaymentPageController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getMerchantDetailsController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getSettledBatchListController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getTransactionListForCustomerController.cs on lines 1..30
        Authorize.NET/Api/Controllers/isAliveController.cs on lines 1..28
        Authorize.NET/Api/Controllers/logoutController.cs on lines 1..30
        Authorize.NET/Api/Controllers/mobileDeviceRegistrationController.cs on lines 1..30
        Authorize.NET/Api/Controllers/securePaymentContainerController.cs on lines 1..30
        Authorize.NET/Api/Controllers/transactionResponseEmvController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateCustomerPaymentProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateCustomerProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateHeldTransactionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateMerchantDetailsController.cs on lines 1..30

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

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

        namespace AuthorizeNet.Api.Controllers
        {
            using System;
            using AuthorizeNet.Api.Contracts.V1;
            using AuthorizeNet.Api.Controllers.Bases;
        Authorize.NET/Api/Controllers/ARBUpdateSubscriptionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/authenticateTestController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createCustomerPaymentProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createCustomerProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/decryptPaymentDataController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getHostedPaymentPageController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getMerchantDetailsController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getSettledBatchListController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getTransactionListForCustomerController.cs on lines 1..30
        Authorize.NET/Api/Controllers/isAliveController.cs on lines 1..28
        Authorize.NET/Api/Controllers/logoutController.cs on lines 1..30
        Authorize.NET/Api/Controllers/mobileDeviceRegistrationController.cs on lines 1..30
        Authorize.NET/Api/Controllers/securePaymentContainerController.cs on lines 1..30
        Authorize.NET/Api/Controllers/transactionResponseEmvController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateCustomerPaymentProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateCustomerProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateHeldTransactionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateMerchantDetailsController.cs on lines 1..30

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

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

        namespace AuthorizeNet.Api.Controllers
        {
            using System;
            using AuthorizeNet.Api.Contracts.V1;
            using AuthorizeNet.Api.Controllers.Bases;
        Authorize.NET/Api/Controllers/ARBUpdateSubscriptionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/authenticateTestController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createCustomerPaymentProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createCustomerProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createTransactionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/decryptPaymentDataController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getHostedPaymentPageController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getMerchantDetailsController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getTransactionListForCustomerController.cs on lines 1..30
        Authorize.NET/Api/Controllers/isAliveController.cs on lines 1..28
        Authorize.NET/Api/Controllers/logoutController.cs on lines 1..30
        Authorize.NET/Api/Controllers/mobileDeviceRegistrationController.cs on lines 1..30
        Authorize.NET/Api/Controllers/securePaymentContainerController.cs on lines 1..30
        Authorize.NET/Api/Controllers/transactionResponseEmvController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateCustomerPaymentProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateCustomerProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateHeldTransactionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateMerchantDetailsController.cs on lines 1..30

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

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

        namespace AuthorizeNet.Api.Controllers
        {
            using System;
            using AuthorizeNet.Api.Contracts.V1;
            using AuthorizeNet.Api.Controllers.Bases;
        Authorize.NET/Api/Controllers/ARBUpdateSubscriptionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/authenticateTestController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createCustomerProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createTransactionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/decryptPaymentDataController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getHostedPaymentPageController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getMerchantDetailsController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getSettledBatchListController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getTransactionListForCustomerController.cs on lines 1..30
        Authorize.NET/Api/Controllers/isAliveController.cs on lines 1..28
        Authorize.NET/Api/Controllers/logoutController.cs on lines 1..30
        Authorize.NET/Api/Controllers/mobileDeviceRegistrationController.cs on lines 1..30
        Authorize.NET/Api/Controllers/securePaymentContainerController.cs on lines 1..30
        Authorize.NET/Api/Controllers/transactionResponseEmvController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateCustomerPaymentProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateCustomerProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateHeldTransactionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateMerchantDetailsController.cs on lines 1..30

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

        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/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 2245..2251
        Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs on lines 2551..2557
        Authorize.NET/Utility/AnetApiSchema.generated.cs on lines 2101..2107

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

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

        namespace AuthorizeNet.Api.Controllers
        {
            using System;
            using AuthorizeNet.Api.Contracts.V1;
            using AuthorizeNet.Api.Controllers.Bases;
        Authorize.NET/Api/Controllers/ARBUpdateSubscriptionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/authenticateTestController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createCustomerPaymentProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createCustomerProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createTransactionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getHostedPaymentPageController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getMerchantDetailsController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getSettledBatchListController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getTransactionListForCustomerController.cs on lines 1..30
        Authorize.NET/Api/Controllers/isAliveController.cs on lines 1..28
        Authorize.NET/Api/Controllers/logoutController.cs on lines 1..30
        Authorize.NET/Api/Controllers/mobileDeviceRegistrationController.cs on lines 1..30
        Authorize.NET/Api/Controllers/securePaymentContainerController.cs on lines 1..30
        Authorize.NET/Api/Controllers/transactionResponseEmvController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateCustomerPaymentProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateCustomerProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateHeldTransactionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateMerchantDetailsController.cs on lines 1..30

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

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

        namespace AuthorizeNet.Api.Controllers
        {
            using System;
            using AuthorizeNet.Api.Contracts.V1;
            using AuthorizeNet.Api.Controllers.Bases;
        Severity: Major
        Found in Authorize.NET/Api/Controllers/logoutController.cs and 18 other locations - About 1 hr to fix
        Authorize.NET/Api/Controllers/ARBUpdateSubscriptionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/authenticateTestController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createCustomerPaymentProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createCustomerProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createTransactionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/decryptPaymentDataController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getHostedPaymentPageController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getMerchantDetailsController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getSettledBatchListController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getTransactionListForCustomerController.cs on lines 1..30
        Authorize.NET/Api/Controllers/isAliveController.cs on lines 1..28
        Authorize.NET/Api/Controllers/mobileDeviceRegistrationController.cs on lines 1..30
        Authorize.NET/Api/Controllers/securePaymentContainerController.cs on lines 1..30
        Authorize.NET/Api/Controllers/transactionResponseEmvController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateCustomerPaymentProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateCustomerProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateHeldTransactionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateMerchantDetailsController.cs on lines 1..30

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

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

        namespace AuthorizeNet.Api.Controllers
        {
            using System;
            using AuthorizeNet.Api.Contracts.V1;
            using AuthorizeNet.Api.Controllers.Bases;
        Authorize.NET/Api/Controllers/ARBUpdateSubscriptionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/authenticateTestController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createCustomerPaymentProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createCustomerProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createTransactionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/decryptPaymentDataController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getHostedPaymentPageController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getMerchantDetailsController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getSettledBatchListController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getTransactionListForCustomerController.cs on lines 1..30
        Authorize.NET/Api/Controllers/isAliveController.cs on lines 1..28
        Authorize.NET/Api/Controllers/logoutController.cs on lines 1..30
        Authorize.NET/Api/Controllers/mobileDeviceRegistrationController.cs on lines 1..30
        Authorize.NET/Api/Controllers/securePaymentContainerController.cs on lines 1..30
        Authorize.NET/Api/Controllers/transactionResponseEmvController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateCustomerPaymentProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateCustomerProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateMerchantDetailsController.cs on lines 1..30

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

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

        namespace AuthorizeNet.Api.Controllers
        {
            using System;
            using AuthorizeNet.Api.Contracts.V1;
            using AuthorizeNet.Api.Controllers.Bases;
        Authorize.NET/Api/Controllers/ARBUpdateSubscriptionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/authenticateTestController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createCustomerPaymentProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createCustomerProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/createTransactionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/decryptPaymentDataController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getHostedPaymentPageController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getMerchantDetailsController.cs on lines 1..30
        Authorize.NET/Api/Controllers/getSettledBatchListController.cs on lines 1..30
        Authorize.NET/Api/Controllers/isAliveController.cs on lines 1..28
        Authorize.NET/Api/Controllers/logoutController.cs on lines 1..30
        Authorize.NET/Api/Controllers/mobileDeviceRegistrationController.cs on lines 1..30
        Authorize.NET/Api/Controllers/securePaymentContainerController.cs on lines 1..30
        Authorize.NET/Api/Controllers/transactionResponseEmvController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateCustomerPaymentProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateCustomerProfileController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateHeldTransactionController.cs on lines 1..30
        Authorize.NET/Api/Controllers/updateMerchantDetailsController.cs on lines 1..30

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

        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