rubygems/rubygems.org

View on GitHub
lib/elastic_searcher.rb

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Method search_definition has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def search_definition(for_api: false) # rubocop:disable Metrics/MethodLength
    query_str = @query
    source_array = for_api ? api_source : ui_source

    OpenSearch::DSL::Search.search do
Severity: Minor
Found in lib/elastic_searcher.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status