glitch-soc/mastodon

View on GitHub
app/lib/search_query_transformer.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method initialize has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def initialize(prefix, operator, term, options = {})
      @prefix = prefix
      @negated = operator == '-'
      @options = options
      @operator = :filter
Severity: Minor
Found in app/lib/search_query_transformer.rb - About 1 hr to fix

    Method default_filter has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def default_filter
          {
            bool: {
              should: [
                {
    Severity: Minor
    Found in app/lib/search_query_transformer.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status