Showing 146 of 200 total issues
Method create_initial_transaction
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_initial_transaction(path, query_map, payment_method_id, user, reason, comment, options, refresh_options)
Method wait_for_plugin_command_completion
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
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
- Read upRead up
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
Open
def chargeback_reversal(payment_id, transaction_external_key, effective_date = nil, user = nil, reason = nil, comment = nil, options = {})
Method purchase
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def purchase(account_id, payment_method_id = nil, user = nil, reason = nil, comment = nil, options = {}, refresh_options = nil)
Method bulk_create
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def bulk_create(external_payment = false, payment_method_id = nil, target_date = nil, user = nil, reason = nil, comment = nil, options = {})
Method delete_tenant_key_value
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def delete_tenant_key_value(key_name, key_path, error_id_str, user = nil, reason = nil, comment = nil, options = {})
Method auth
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def auth(account_id, payment_method_id = nil, user = nil, reason = nil, comment = nil, options = {}, refresh_options = nil)
Method credit
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def credit(account_id, payment_method_id = nil, user = nil, reason = nil, comment = nil, options = {}, refresh_options = nil)
Method close
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def close(cancel_subscriptions, writeoff_unpaid_invoices, item_adjust_unpaid_invoices, user = nil, reason = nil, comment = nil, options = {})
Method cancel_subscription_dry_run
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def cancel_subscription_dry_run(account_id, bundle_id, subscription_id, target_date,
effective_date, billing_policy, options = {})
Method purchase_by_external_key
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def purchase_by_external_key(account_external_key, payment_method_id = nil, user = nil, reason = nil, comment = nil, options = {}, refresh_options = nil)
Method upload_invoice_translation
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def upload_invoice_translation(invoice_translation, locale, delete_if_exists, user = nil, reason = nil, comment = nil, options = {})
Method create_migration_invoice
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_migration_invoice(account_id, invoices, target_date, user = nil, reason = nil, comment = nil, options = {})
Method auth_by_external_key
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def auth_by_external_key(account_external_key, payment_method_id = nil, user = nil, reason = nil, comment = nil, options = {}, refresh_options = nil)
Method upload_catalog_translation
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def upload_catalog_translation(catalog_translation, locale, delete_if_exists, user = nil, reason = nil, comment = nil, options = {})
Method upload_invoice_template
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def upload_invoice_template(invoice_template, is_manual_pay, delete_if_exists, user = nil, reason = nil, comment = nil, options = {})
Method destroy
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def destroy(payment_method_id, set_auto_pay_off = false, force_default_deletion = false, user = nil, reason = nil, comment = nil, options = {})
Method refund
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def refund(payment_id, amount, adjustments = nil, user = nil, reason = nil, comment = nil, options = {})
Method trigger_invoice_group_run
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def trigger_invoice_group_run(account_id, target_date = nil, plugin_property = nil, user = nil, reason = nil, comment = nil, options = {})
Method trigger_invoice_generation_for_parked_accounts
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def trigger_invoice_generation_for_parked_accounts(offset = 0, limit = 100, plugin_property = [], user = nil, reason = nil, comment = nil, options = {})