indentlabs/notebook

View on GitHub
app/services/autocomplete/autocomplete_service.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method for_field_label has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def self.for_field_label(label:, content_model: nil)
    case content_model.name
    when Universe.name
      Autocomplete::UniverseAutocompleteService.for_field_label(label)
    when Character.name
Severity: Minor
Found in app/services/autocomplete/autocomplete_service.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status