graycoreio/daffodil

View on GitHub
libs/order/driver/magento/2-4-0/src/transforms/responses/order.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function transformTotals has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function transformTotals(totals: {
  grand_total: number;
  subtotal: number;
  shipping: number;
  discount: number;
Severity: Minor
Found in libs/order/driver/magento/2-4-0/src/transforms/responses/order.ts - About 1 hr to fix

    Function transformItem has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function transformItem(item: MagentoGraycoreOrderItem): DaffOrderItem {
      return {
        id: null,
        item_id: null,
        type: DaffOrderItemType.Simple,
    Severity: Minor
    Found in libs/order/driver/magento/2-4-0/src/transforms/responses/order.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status