public-market/spree_batch_api

View on GitHub
app/workers/spree/upload_inventory_worker.rb

Summary

Maintainability
A
0 mins
Test Coverage

Complex method Spree::UploadInventoryWorker#upload_action (29.4)
Open

    def upload_action(local_file, format) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
      case format
      when 'json'
        payload = File.read(local_file)
        Inventory::JsonImportAction.call(payload, upload: upload, options: options)

Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.

You can read more about ABC metrics or the flog tool

There are no issues that match your filters.

Category
Status