killbill/killbill-client-ruby

View on GitHub

Showing 200 of 200 total issues

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

        def create_bulk_subscriptions(bulk_subscription_list, user = nil, reason = nil, comment = nil, entitlement_date = nil, billing_date = nil, call_completion_sec = nil, options = {})
Severity: Major
Found in lib/killbill_client/models/bulk_subscription.rb - About 1 hr to fix

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

            def trigger_invoice_dry_run(account_id, target_date, upcoming_invoice_target_date, plugin_property = [], user = nil, reason = nil, comment = nil, options = {})
    Severity: Major
    Found in lib/killbill_client/models/invoice.rb - About 1 hr to fix

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

              def chargeback(payment_id, amount, currency, effective_date = nil, user = nil, reason = nil, comment = nil, options = {})
      Severity: Major
      Found in lib/killbill_client/models/invoice_payment.rb - About 1 hr to fix

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

                def create_subscription_dry_run(account_id, bundle_id, target_date, product_name, product_category,
                                                billing_period, price_list_name,  options = {})
        Severity: Major
        Found in lib/killbill_client/models/invoice.rb - About 1 hr to fix

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

                def cancel(user = nil, reason = nil, comment = nil, requested_date = nil, entitlementPolicy = nil, billing_policy = nil, use_requested_date_for_billing = nil, options = {})
          Severity: Major
          Found in lib/killbill_client/models/subscription.rb - About 1 hr to fix

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

                    def fix_transaction_state(payment_id, transaction_id, transaction_status, payment_state_param = {}, user = nil, reason = nil, comment = nil, options = {})
            Severity: Major
            Found in lib/killbill_client/models/admin.rb - About 1 hr to fix

              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
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language