AuthorizeNet/sdk-java

View on GitHub

Showing 231 of 231 total issues

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

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30 
Severity: Major
Found in src/main/java/net/authorize/api/contract/v1/PaymentType.java and 1 other location - About 3 hrs to fix
src/main/java/net/authorize/api/contract/v1/ProfileTransRefundType.java on lines 1..279

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

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

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30 
src/main/java/net/authorize/api/contract/v1/PaymentType.java on lines 1..258

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

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

File TransactionRequestType.java has 315 lines of code (exceeds 250 allowed). Consider refactoring.
Open

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30 

    ApiOperationBase has 26 methods (exceeds 20 allowed). Consider refactoring.
    Open

    public abstract class ApiOperationBase<Q extends ANetApiRequest, S extends ANetApiResponse> implements IApiOperation<Q, S> {
    
        protected static Logger logger = LogManager.getLogger(ApiOperationBase.class);
    
        private static Environment environment = null;
    Severity: Minor
    Found in src/main/java/net/authorize/api/controller/base/ApiOperationBase.java - About 3 hrs to fix

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

      //
      // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
      // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
      // Any modifications to this file will be lost upon recompilation of the source schema. 
      // Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30 
      src/main/java/net/authorize/api/contract/v1/CreditCardType.java on lines 1..204
      src/main/java/net/authorize/api/contract/v1/MerchantContactType.java on lines 1..208
      src/main/java/net/authorize/api/contract/v1/OtherTaxType.java on lines 1..216
      src/main/java/net/authorize/api/contract/v1/PayPalType.java on lines 1..238

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

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

      //
      // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
      // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
      // Any modifications to this file will be lost upon recompilation of the source schema. 
      // Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30 
      src/main/java/net/authorize/api/contract/v1/MerchantContactType.java on lines 1..208
      src/main/java/net/authorize/api/contract/v1/OtherTaxType.java on lines 1..216
      src/main/java/net/authorize/api/contract/v1/PayPalType.java on lines 1..238
      src/main/java/net/authorize/api/contract/v1/ProfileTransactionType.java on lines 1..202

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

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

      //
      // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
      // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
      // Any modifications to this file will be lost upon recompilation of the source schema. 
      // Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30 
      Severity: Major
      Found in src/main/java/net/authorize/api/contract/v1/PayPalType.java and 4 other locations - About 2 hrs to fix
      src/main/java/net/authorize/api/contract/v1/CreditCardType.java on lines 1..204
      src/main/java/net/authorize/api/contract/v1/MerchantContactType.java on lines 1..208
      src/main/java/net/authorize/api/contract/v1/OtherTaxType.java on lines 1..216
      src/main/java/net/authorize/api/contract/v1/ProfileTransactionType.java on lines 1..202

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

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

      //
      // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
      // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
      // Any modifications to this file will be lost upon recompilation of the source schema. 
      // Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30 
      src/main/java/net/authorize/api/contract/v1/CreditCardType.java on lines 1..204
      src/main/java/net/authorize/api/contract/v1/OtherTaxType.java on lines 1..216
      src/main/java/net/authorize/api/contract/v1/PayPalType.java on lines 1..238
      src/main/java/net/authorize/api/contract/v1/ProfileTransactionType.java on lines 1..202

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

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

      //
      // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
      // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
      // Any modifications to this file will be lost upon recompilation of the source schema. 
      // Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30 
      src/main/java/net/authorize/api/contract/v1/CreditCardType.java on lines 1..204
      src/main/java/net/authorize/api/contract/v1/MerchantContactType.java on lines 1..208
      src/main/java/net/authorize/api/contract/v1/PayPalType.java on lines 1..238
      src/main/java/net/authorize/api/contract/v1/ProfileTransactionType.java on lines 1..202

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

      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

      GetMerchantDetailsResponse has 24 methods (exceeds 20 allowed). Consider refactoring.
      Open

      @XmlAccessorType(XmlAccessType.FIELD)
      @XmlType(name = "", propOrder = {
          "isTestMode",
          "processors",
          "merchantName",

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

        //
        // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
        // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
        // Any modifications to this file will be lost upon recompilation of the source schema. 
        // Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30 
        src/main/java/net/authorize/api/contract/v1/TransactionTypeEnum.java on lines 1..79

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

        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

        //
        // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
        // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
        // Any modifications to this file will be lost upon recompilation of the source schema. 
        // Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30 
        src/main/java/net/authorize/api/contract/v1/ARBGetSubscriptionListOrderFieldEnum.java on lines 1..79

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

        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

        SubMerchantType has 22 methods (exceeds 20 allowed). Consider refactoring.
        Open

        @XmlAccessorType(XmlAccessType.FIELD)
        @XmlType(name = "subMerchantType", propOrder = {
            "identifier",
            "doingBusinessAs",
            "paymentServiceProviderName",
        Severity: Minor
        Found in src/main/java/net/authorize/api/contract/v1/SubMerchantType.java - About 2 hrs to fix

          ProfileTransOrderType has 22 methods (exceeds 20 allowed). Consider refactoring.
          Open

          @XmlAccessorType(XmlAccessType.FIELD)
          @XmlType(name = "profileTransOrderType", propOrder = {
              "customerProfileId",
              "customerPaymentProfileId",
              "customerShippingAddressId",

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

            //
            // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
            // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
            // Any modifications to this file will be lost upon recompilation of the source schema. 
            // Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30 
            src/main/java/net/authorize/api/contract/v1/GetCustomerPaymentProfileRequest.java on lines 1..154

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 147.

            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

            //
            // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
            // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
            // Any modifications to this file will be lost upon recompilation of the source schema. 
            // Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30 
            src/main/java/net/authorize/api/contract/v1/GetTransactionListForCustomerRequest.java on lines 1..154

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 147.

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

                @SuppressWarnings("unchecked")
                /**
                 * Makes a http call, using the proxy if requested, and returns apiresponse
                 * with error code set appropriately
                 * @return ANetApiResponse  successful or failed response 
            Severity: Major
            Found in src/main/java/net/authorize/util/HttpCallTask.java - About 2 hrs to fix

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

              //
              // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
              // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
              // Any modifications to this file will be lost upon recompilation of the source schema. 
              // Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30 
              src/main/java/net/authorize/api/contract/v1/ProfileTransVoidType.java on lines 1..150

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

              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

              //
              // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
              // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
              // Any modifications to this file will be lost upon recompilation of the source schema. 
              // Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30 
              src/main/java/net/authorize/api/contract/v1/ProfileTransPriorAuthCaptureType.java on lines 1..152

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

              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

              //
              // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
              // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
              // Any modifications to this file will be lost upon recompilation of the source schema. 
              // Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30 
              src/main/java/net/authorize/api/contract/v1/UpdateCustomerPaymentProfileRequest.java on lines 1..130

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

              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