Showing 200 of 200 total issues
Method create_bulk_subscriptions
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
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 = {})
Method trigger_invoice_dry_run
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def trigger_invoice_dry_run(account_id, target_date, upcoming_invoice_target_date, plugin_property = [], user = nil, reason = nil, comment = nil, options = {})
Method chargeback
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def chargeback(payment_id, amount, currency, effective_date = nil, user = nil, reason = nil, comment = nil, options = {})
Method create_subscription_dry_run
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_subscription_dry_run(account_id, bundle_id, target_date, product_name, product_category,
billing_period, price_list_name, options = {})
Method cancel
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def cancel(user = nil, reason = nil, comment = nil, requested_date = nil, entitlementPolicy = nil, billing_policy = nil, use_requested_date_for_billing = nil, options = {})
Method fix_transaction_state
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def fix_transaction_state(payment_id, transaction_id, transaction_status, payment_state_param = {}, user = nil, reason = nil, comment = nil, options = {})
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)