voucherifyio/voucherify-ruby-sdk

View on GitHub
__tests__/lib/stackables.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method validate_stacked_discounts has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

def validate_stacked_discounts(validations_api_instance, voucher_id, product_id, customer, amount)
  begin
    result = validations_api_instance.validate_stacked_discounts({
      validations_validate_request_body: VoucherifySdk::ValidationsValidateRequestBody.new({
        redeemables: create_request_body_redeemable(voucher_id),
Severity: Minor
Found in __tests__/lib/stackables.rb - About 1 hr to fix

    Method validate_stacked_discounts has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def validate_stacked_discounts(validations_api_instance, voucher_id, product_id, customer, amount)
    Severity: Minor
    Found in __tests__/lib/stackables.rb - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status