etehtsea/oxblood

View on GitHub
lib/oxblood/commands/sorted_sets.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method common_rangebyscore has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

      def common_rangebyscore(command_name, key, min, max, opts)
Severity: Minor
Found in lib/oxblood/commands/sorted_sets.rb - About 35 mins to fix

    Method common_store has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

          def common_store(command_name, destination, numkeys, *keys, **opts)
    Severity: Minor
    Found in lib/oxblood/commands/sorted_sets.rb - About 35 mins to fix

      Method common_range has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

            def common_range(command_name, key, start, stop, opts)
      Severity: Minor
      Found in lib/oxblood/commands/sorted_sets.rb - About 35 mins to fix

        Method common_rangebylex has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

              def common_rangebylex(command_name, key, min, max, opts)
        Severity: Minor
        Found in lib/oxblood/commands/sorted_sets.rb - About 35 mins to fix

          Line is too long. [81/80]
          Open

                # @return [Integer] the cardinality (number of elements) of the sorted set,
          Severity: Minor
          Found in lib/oxblood/commands/sorted_sets.rb by rubocop

          Line is too long. [81/80]
          Open

                # @option opts [Array<Integer, Integer>] :limit Get a range of the matching
          Severity: Minor
          Found in lib/oxblood/commands/sorted_sets.rb by rubocop

          Use == if you meant to do a comparison or wrap the expression in parentheses to indicate you meant to assign in a condition.
          Open

                  if v = opts[:aggregate]
          Severity: Minor
          Found in lib/oxblood/commands/sorted_sets.rb by rubocop

          This cop checks for assignments in the conditions of if/while/until.

          Example:

          # bad
          
          if some_var = true
            do_something
          end

          Example:

          # good
          
          if some_var == true
            do_something
          end

          Line is too long. [81/80]
          Open

                # @option opts [Array<Integer, Integer>] :limit Get a range of the matching
          Severity: Minor
          Found in lib/oxblood/commands/sorted_sets.rb by rubocop

          Line is too long. [83/80]
          Open

                # Remove all members in a sorted set between the given lexicographical range.
          Severity: Minor
          Found in lib/oxblood/commands/sorted_sets.rb by rubocop

          Use == if you meant to do a comparison or wrap the expression in parentheses to indicate you meant to assign in a condition.
          Open

                  if v = opts[:weights]
          Severity: Minor
          Found in lib/oxblood/commands/sorted_sets.rb by rubocop

          This cop checks for assignments in the conditions of if/while/until.

          Example:

          # bad
          
          if some_var = true
            do_something
          end

          Example:

          # good
          
          if some_var == true
            do_something
          end

          Line is too long. [82/80]
          Open

                # Add one or more members to a sorted set, or update its score if it already
          Severity: Minor
          Found in lib/oxblood/commands/sorted_sets.rb by rubocop

          Line is too long. [84/80]
          Open

                # Return a range of members in a sorted set, by lexicographical range, ordered
          Severity: Minor
          Found in lib/oxblood/commands/sorted_sets.rb by rubocop

          Line is too long. [82/80]
          Open

                #   like ZINCRBY. Only one score-element pair can be specified in this mode.
          Severity: Minor
          Found in lib/oxblood/commands/sorted_sets.rb by rubocop

          Line is too long. [81/80]
          Open

                # @return [Array] list of elements in the specified score range (optionally
          Severity: Minor
          Found in lib/oxblood/commands/sorted_sets.rb by rubocop

          Line is too long. [81/80]
          Open

                # @return [Array] list of elements in the specified score range (optionally
          Severity: Minor
          Found in lib/oxblood/commands/sorted_sets.rb by rubocop

          Missing top-level module documentation comment.
          Open

              module SortedSets
          Severity: Minor
          Found in lib/oxblood/commands/sorted_sets.rb by rubocop

          This cop checks for missing top-level documentation of classes and modules. Classes with no body are exempt from the check and so are namespace modules - modules that have nothing in their bodies except classes, other modules, or constant definitions.

          The documentation requirement is annulled if the class or module has a "#:nodoc:" comment next to it. Likewise, "#:nodoc: all" does the same for all its children.

          Example:

          # bad
          class Person
            # ...
          end
          
          # good
          # Description/Explanation of Person class
          class Person
            # ...
          end

          Line is too long. [81/80]
          Open

                # @option opts [Array<Integer, Integer>] :limit Get a range of the matching
          Severity: Minor
          Found in lib/oxblood/commands/sorted_sets.rb by rubocop

          Line is too long. [81/80]
          Open

                # @return [Integer, nil] the rank of member or nil if member does not exist
          Severity: Minor
          Found in lib/oxblood/commands/sorted_sets.rb by rubocop

          Line is too long. [81/80]
          Open

                # @option opts [Array<Integer, Integer>] :limit Get a range of the matching
          Severity: Minor
          Found in lib/oxblood/commands/sorted_sets.rb by rubocop

          Line is too long. [81/80]
          Open

                # Determine the index of a member in a sorted set, with scores ordered from
          Severity: Minor
          Found in lib/oxblood/commands/sorted_sets.rb by rubocop

          There are no issues that match your filters.

          Category
          Status