activemerchant/active_merchant

View on GitHub

Showing 1,463 of 1,463 total issues

Avoid too many return statements within this method.
Open

        return response_code if response_code
Severity: Major
Found in lib/active_merchant/billing/gateways/payu_latam.rb - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

              return base + 'payments/refund'
    Severity: Major
    Found in lib/active_merchant/billing/gateways/deepstack.rb - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                return base + 'vault/token'
      Severity: Major
      Found in lib/active_merchant/billing/gateways/deepstack.rb - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                  return base + 'noaction'
        Severity: Major
        Found in lib/active_merchant/billing/gateways/deepstack.rb - About 30 mins to fix

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

                def add_user_defined_fields(xml, options)
                  xml.tag! 'UDField1', options[:ud_field_1] if options[:ud_field_1]
                  xml.tag! 'UDField2', options[:ud_field_2] if options[:ud_field_2]
                  xml.tag! 'UDField3', options[:ud_field_3] if options[:ud_field_3]
          Severity: Minor
          Found in lib/active_merchant/billing/gateways/jetpay_v2.rb and 3 other locations - About 30 mins to fix
          lib/active_merchant/billing/gateways/firstdata_e4.rb on lines 315..318
          lib/active_merchant/billing/gateways/firstdata_e4_v27.rb on lines 294..297
          lib/active_merchant/billing/gateways/jetpay.rb on lines 385..388

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

          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

                def add_3ds_fields(post, options)
                  post[:ThreeDSMessageId] = options[:three_ds_message_id] if options[:three_ds_message_id]
                  post[:ThreeDS_PARes] = options[:three_ds_pares] if options[:three_ds_pares]
                  post[:ThreeDS_CRes] = options[:three_ds_cres] if options[:three_ds_cres]
          Severity: Minor
          Found in lib/active_merchant/billing/gateways/borgun.rb and 2 other locations - About 30 mins to fix
          lib/active_merchant/billing/gateways/first_pay/first_pay_xml.rb on lines 78..81
          lib/active_merchant/billing/gateways/moneris.rb on lines 247..250

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

          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

                def add_invoice(post, options)
                  post[:ORDER_ID]    = options[:order_id]
                  post[:INVOICE_ID]  = options[:invoice]
                  post[:invoice_num] = options[:order_id]
                  post[:MEMO]        = options[:description]
          Severity: Minor
          Found in lib/active_merchant/billing/gateways/blue_pay.rb and 2 other locations - About 30 mins to fix
          lib/active_merchant/billing/gateways/be2bill.rb on lines 59..64
          lib/active_merchant/billing/gateways/verifi.rb on lines 160..165

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

          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

                def add_invoice_data(post, options)
                  post[:orderid]            = options[:order_id]
                  post[:ponumber]           = options[:invoice]
                  post[:orderdescription]   = options[:description]
                  post[:tax]                = options[:tax]
          Severity: Minor
          Found in lib/active_merchant/billing/gateways/verifi.rb and 2 other locations - About 30 mins to fix
          lib/active_merchant/billing/gateways/be2bill.rb on lines 59..64
          lib/active_merchant/billing/gateways/blue_pay.rb on lines 402..407

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

          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

                def add_customer_data(xml, options)
                  xml.tag! 'Customer_Ref', options[:customer] if options[:customer]
                  xml.tag! 'Client_IP', options[:ip] if options[:ip]
                  xml.tag! 'Client_Email', options[:email] if options[:email]
          Severity: Minor
          Found in lib/active_merchant/billing/gateways/firstdata_e4.rb and 3 other locations - About 30 mins to fix
          lib/active_merchant/billing/gateways/firstdata_e4_v27.rb on lines 294..297
          lib/active_merchant/billing/gateways/jetpay.rb on lines 385..388
          lib/active_merchant/billing/gateways/jetpay_v2.rb on lines 422..425

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

          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

                def add_check(post, check)
                  post[:C_first_name]   = check.first_name
                  post[:C_last_name]    = check.last_name
                  post[:C_rte]          = check.routing_number
                  post[:C_acct]         = check.account_number
          Severity: Minor
          Found in lib/active_merchant/billing/gateways/sage.rb and 1 other location - About 30 mins to fix
          lib/active_merchant/billing/gateways/cashnet.rb on lines 104..110

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

          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

                  Response.new(
                    successful?(response),
                    message_from(response),
                    response,
                    test: test?,
          Severity: Minor
          Found in lib/active_merchant/billing/gateways/firstdata_e4_v27.rb and 1 other location - About 30 mins to fix
          lib/active_merchant/billing/gateways/firstdata_e4.rb on lines 357..366

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

          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

                def add_customer_data(post, options)
                  post[:CLIENTREFERRER]  = options[:referrer]
                  post[:CLIENTUSERAGENT] = options[:user_agent]
                  post[:CLIENTIP]        = options[:ip]
                  post[:CLIENTEMAIL]     = options[:email]
          Severity: Minor
          Found in lib/active_merchant/billing/gateways/be2bill.rb and 2 other locations - About 30 mins to fix
          lib/active_merchant/billing/gateways/blue_pay.rb on lines 402..407
          lib/active_merchant/billing/gateways/verifi.rb on lines 160..165

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

          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

                def add_creditcard(post, creditcard)
                  post[:cardno]          = creditcard.number
                  post[:cid]             = creditcard.verification_value
                  post[:expdate]         = expdate(creditcard)
                  post[:card_name_g]     = creditcard.name
          Severity: Minor
          Found in lib/active_merchant/billing/gateways/cashnet.rb and 1 other location - About 30 mins to fix
          lib/active_merchant/billing/gateways/sage.rb on lines 130..136

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

          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

                  Response.new(
                    successful?(response),
                    message_from(response),
                    response,
                    test: test?,
          Severity: Minor
          Found in lib/active_merchant/billing/gateways/firstdata_e4.rb and 1 other location - About 30 mins to fix
          lib/active_merchant/billing/gateways/firstdata_e4_v27.rb on lines 383..392

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

          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

                    if node.elements.empty?
                      parsed[node.name.to_sym] = node.text
                    else
                      node.elements.each do |childnode|
                        name = "#{node.name}_#{childnode.name}"
          Severity: Minor
          Found in lib/active_merchant/billing/gateways/litle.rb and 1 other location - About 30 mins to fix
          lib/active_merchant/billing/gateways/bpoint.rb on lines 223..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 32.

          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

                CURRENCY_CODES = {
                  'AUD' => '036',
                  'CAD' => '124',
                  'CZK' => '203',
                  'DKK' => '208',
          Severity: Minor
          Found in lib/active_merchant/billing/gateways/paybox_direct.rb and 1 other location - About 30 mins to fix
          lib/active_merchant/billing/gateways/litle.rb on lines 261..276

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

          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

                def add_cof(post, options)
                  post[:issuer_id] = options[:issuer_id] if options[:issuer_id]
                  post[:payment_indicator] = options[:payment_indicator] if options[:payment_indicator]
                  post[:payment_information] = options[:payment_information] if options[:payment_information]
          Severity: Minor
          Found in lib/active_merchant/billing/gateways/moneris.rb and 2 other locations - About 30 mins to fix
          lib/active_merchant/billing/gateways/borgun.rb on lines 101..104
          lib/active_merchant/billing/gateways/first_pay/first_pay_xml.rb on lines 78..81

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

          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

                def add_customer_data(post, options)
                  post[:owner_email] = options[:email] if options[:email]
                  post[:remote_ip_address] = options[:ip] if options[:ip]
                  post[:processor_id] = options[:processor_id] if options[:processor_id]
          lib/active_merchant/billing/gateways/borgun.rb on lines 101..104
          lib/active_merchant/billing/gateways/moneris.rb on lines 247..250

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

          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

                        if node.elements.empty?
                          h[node.name.to_sym] = node.text
                        else
                          node.elements.each do |childnode|
                            name = "#{node.name}_#{childnode.name}"
          Severity: Minor
          Found in lib/active_merchant/billing/gateways/bpoint.rb and 1 other location - About 30 mins to fix
          lib/active_merchant/billing/gateways/litle.rb on lines 531..536

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

          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

                def add_user_defined_fields(xml, options)
                  xml.tag! 'UDField1', options[:ud_field_1] if options[:ud_field_1]
                  xml.tag! 'UDField2', options[:ud_field_2] if options[:ud_field_2]
                  xml.tag! 'UDField3', options[:ud_field_3] if options[:ud_field_3]
          Severity: Minor
          Found in lib/active_merchant/billing/gateways/jetpay.rb and 3 other locations - About 30 mins to fix
          lib/active_merchant/billing/gateways/firstdata_e4.rb on lines 315..318
          lib/active_merchant/billing/gateways/firstdata_e4_v27.rb on lines 294..297
          lib/active_merchant/billing/gateways/jetpay_v2.rb on lines 422..425

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

          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