lib/oxblood/commands/sorted_sets.rb
Method common_rangebyscore
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def common_rangebyscore(command_name, key, min, max, opts)
Method common_store
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def common_store(command_name, destination, numkeys, *keys, **opts)
Method common_range
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def common_range(command_name, key, start, stop, opts)
Method common_rangebylex
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def common_rangebylex(command_name, key, min, max, opts)
Line is too long. [81/80] Open
Open
# @return [Integer] the cardinality (number of elements) of the sorted set,
- Exclude checks
Line is too long. [81/80] Open
Open
# @option opts [Array<Integer, Integer>] :limit Get a range of the matching
- Exclude checks
Use ==
if you meant to do a comparison or wrap the expression in parentheses to indicate you meant to assign in a condition. Open
Open
if v = opts[:aggregate]
- Read upRead up
- Exclude checks
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
Open
# @option opts [Array<Integer, Integer>] :limit Get a range of the matching
- Exclude checks
Line is too long. [83/80] Open
Open
# Remove all members in a sorted set between the given lexicographical range.
- Exclude checks
Use ==
if you meant to do a comparison or wrap the expression in parentheses to indicate you meant to assign in a condition. Open
Open
if v = opts[:weights]
- Read upRead up
- Exclude checks
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
Open
# Add one or more members to a sorted set, or update its score if it already
- Exclude checks
Line is too long. [84/80] Open
Open
# Return a range of members in a sorted set, by lexicographical range, ordered
- Exclude checks
Line is too long. [82/80] Open
Open
# like ZINCRBY. Only one score-element pair can be specified in this mode.
- Exclude checks
Line is too long. [81/80] Open
Open
# @return [Array] list of elements in the specified score range (optionally
- Exclude checks
Line is too long. [81/80] Open
Open
# @return [Array] list of elements in the specified score range (optionally
- Exclude checks
Missing top-level module documentation comment. Open
Open
module SortedSets
- Read upRead up
- Exclude checks
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
Open
# @option opts [Array<Integer, Integer>] :limit Get a range of the matching
- Exclude checks
Line is too long. [81/80] Open
Open
# @return [Integer, nil] the rank of member or nil if member does not exist
- Exclude checks
Line is too long. [81/80] Open
Open
# @option opts [Array<Integer, Integer>] :limit Get a range of the matching
- Exclude checks
Line is too long. [81/80] Open
Open
# Determine the index of a member in a sorted set, with scores ordered from
- Exclude checks