tylerhunt/remockable

View on GitHub

Showing 4 of 15 total issues

Method method_missing has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def method_missing(method, *args, &block)
    unsupported_query_methods = %w(
      create_with
      eager_load
      includes
Severity: Minor
Found in lib/remockable/active_record/have_default_scope.rb - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

            if relation
              query_matches = scope.to_sql == relation.to_sql
              eager_load_matches = scope.eager_load_values == relation.eager_load_values
              includes_matches = scope.includes_values == relation.includes_values
              lock_matches = scope.lock_value == relation.lock_value
    Severity: Major
    Found in lib/remockable/active_record/have_scope.rb - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

              if relation
                query_matches = scope.to_sql == relation.to_sql
                eager_load_matches = scope.eager_load_values == relation.eager_load_values
                includes_matches = scope.includes_values == relation.includes_values
                lock_matches = scope.lock_value == relation.lock_value
      Severity: Major
      Found in lib/remockable/active_record/have_default_scope.rb - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

            if index
              name_matches = name.nil? || matches_name?(index, name)
              unique_matches = unique.nil? || index.unique == unique
              where_matches = where.nil? || index.where == where
        
        
        Severity: Major
        Found in lib/remockable/active_record/have_index.rb - About 40 mins to fix
          Severity
          Category
          Status
          Source
          Language