public-market/spree_batch_api

View on GitHub
app/actions/spree/inventory/providers/fake/metadata_provider.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method call has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

          def call
            return if isbn == UNKNOWN_ISBN

            {
              title: book_title,
Severity: Minor
Found in app/actions/spree/inventory/providers/fake/metadata_provider.rb - About 1 hr to fix

    Complex method Spree::Inventory::Providers::Fake::MetadataProvider#call (27.6)
    Open

              def call
                return if isbn == UNKNOWN_ISBN
    
                {
                  title: book_title,

    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