killbill/killbill-client-ruby

View on GitHub

Showing 146 of 200 total issues

Method create_initial_transaction has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

      def create_initial_transaction(path, query_map, payment_method_id, user, reason, comment, options, refresh_options)
Severity: Major
Found in lib/killbill_client/models/transaction.rb - About 1 hr to fix

    Method wait_for_plugin_command_completion has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
    Open

            def wait_for_plugin_command_completion(command, plugin, timeout_sec, sleep_sec)
              if KillBillClient.logger
                KillBillClient.log :info, "NodesInfo waiting for command='%s', plugin='%s'" % [command, plugin]
              end
              begin
    Severity: Minor
    Found in lib/killbill_client/models/nodes_info.rb - About 55 mins to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Method chargeback_reversal has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            def chargeback_reversal(payment_id, transaction_external_key, effective_date = nil, user = nil, reason = nil, comment = nil, options = {})
    Severity: Major
    Found in lib/killbill_client/models/invoice_payment.rb - About 50 mins to fix

      Method purchase has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

            def purchase(account_id, payment_method_id = nil, user = nil, reason = nil, comment = nil, options = {}, refresh_options = nil)
      Severity: Major
      Found in lib/killbill_client/models/transaction.rb - About 50 mins to fix

        Method bulk_create has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

              def bulk_create(external_payment = false, payment_method_id = nil, target_date = nil, user = nil, reason = nil, comment = nil, options = {})
        Severity: Major
        Found in lib/killbill_client/models/invoice_payment.rb - About 50 mins to fix

          Method delete_tenant_key_value has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  def delete_tenant_key_value(key_name, key_path, error_id_str, user = nil, reason = nil, comment = nil, options = {})
          Severity: Major
          Found in lib/killbill_client/models/tenant.rb - About 50 mins to fix

            Method auth has 7 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                  def auth(account_id, payment_method_id = nil, user = nil, reason = nil, comment = nil, options = {}, refresh_options = nil)
            Severity: Major
            Found in lib/killbill_client/models/transaction.rb - About 50 mins to fix

              Method credit has 7 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                    def credit(account_id, payment_method_id = nil, user = nil, reason = nil, comment = nil, options = {}, refresh_options = nil)
              Severity: Major
              Found in lib/killbill_client/models/transaction.rb - About 50 mins to fix

                Method close has 7 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                      def close(cancel_subscriptions, writeoff_unpaid_invoices,  item_adjust_unpaid_invoices, user = nil, reason = nil, comment = nil, options = {})
                Severity: Major
                Found in lib/killbill_client/models/account.rb - About 50 mins to fix

                  Method cancel_subscription_dry_run has 7 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                          def cancel_subscription_dry_run(account_id, bundle_id, subscription_id, target_date,
                                                          effective_date, billing_policy,  options = {})
                  Severity: Major
                  Found in lib/killbill_client/models/invoice.rb - About 50 mins to fix

                    Method purchase_by_external_key has 7 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                          def purchase_by_external_key(account_external_key, payment_method_id = nil, user = nil, reason = nil, comment = nil, options = {}, refresh_options = nil)
                    Severity: Major
                    Found in lib/killbill_client/models/transaction.rb - About 50 mins to fix

                      Method upload_invoice_translation has 7 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                              def upload_invoice_translation(invoice_translation, locale, delete_if_exists, user = nil, reason = nil, comment = nil, options = {})
                      Severity: Major
                      Found in lib/killbill_client/models/invoice.rb - About 50 mins to fix

                        Method create_migration_invoice has 7 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                def create_migration_invoice(account_id, invoices, target_date, user = nil, reason = nil, comment = nil, options = {})
                        Severity: Major
                        Found in lib/killbill_client/models/invoice.rb - About 50 mins to fix

                          Method auth_by_external_key has 7 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                                def auth_by_external_key(account_external_key, payment_method_id = nil, user = nil, reason = nil, comment = nil, options = {}, refresh_options = nil)
                          Severity: Major
                          Found in lib/killbill_client/models/transaction.rb - About 50 mins to fix

                            Method upload_catalog_translation has 7 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                    def upload_catalog_translation(catalog_translation, locale, delete_if_exists, user = nil, reason = nil, comment = nil, options = {})
                            Severity: Major
                            Found in lib/killbill_client/models/invoice.rb - About 50 mins to fix

                              Method upload_invoice_template has 7 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                      def upload_invoice_template(invoice_template, is_manual_pay, delete_if_exists, user = nil, reason = nil, comment = nil, options = {})
                              Severity: Major
                              Found in lib/killbill_client/models/invoice.rb - About 50 mins to fix

                                Method destroy has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                        def destroy(payment_method_id, set_auto_pay_off = false, force_default_deletion = false, user = nil, reason = nil, comment = nil, options = {})
                                Severity: Major
                                Found in lib/killbill_client/models/payment_method.rb - About 50 mins to fix

                                  Method refund has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                          def refund(payment_id, amount, adjustments = nil, user = nil, reason = nil, comment = nil, options = {})
                                  Severity: Major
                                  Found in lib/killbill_client/models/invoice_payment.rb - About 50 mins to fix

                                    Method trigger_invoice_group_run has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                            def trigger_invoice_group_run(account_id, target_date = nil, plugin_property = nil, user = nil, reason = nil, comment = nil, options = {})
                                    Severity: Major
                                    Found in lib/killbill_client/models/invoice.rb - About 50 mins to fix

                                      Method trigger_invoice_generation_for_parked_accounts has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                              def trigger_invoice_generation_for_parked_accounts(offset = 0, limit = 100, plugin_property = [], user = nil, reason = nil, comment = nil, options = {})
                                      Severity: Major
                                      Found in lib/killbill_client/models/admin.rb - About 50 mins to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language