hummingbird-me/hummingbird

View on GitHub
lib/story_query.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method find_by_ids has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def self.find_by_ids(story_ids, current_user)
    stories = Story.where(id: story_ids)
              .for_user(current_user)
              .preload(:target, substories: %i(target))
              .includes(:user, :substories,
Severity: Major
Found in lib/story_query.rb - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status