app/actions/spree/inventory/providers/fake/metadata_provider.rb
Method call
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def call
return if isbn == UNKNOWN_ISBN
{
title: book_title,
Complex method Spree::Inventory::Providers::Fake::MetadataProvider#call (27.6) Open
Open
def call
return if isbn == UNKNOWN_ISBN
{
title: book_title,
- Read upRead up
- Exclude checks
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