nsweeting/qpush

View on GitHub
lib/qpush/base/redis.rb

Summary

Maintainability
A
0 mins
Test Coverage

Line is too long. [86/80]
Open

          keys = Hash[QPush::Base::SUB_KEYS.collect { |key| [key, "#{name}:#{key}"] }]
Severity: Minor
Found in lib/qpush/base/redis.rb by rubocop

Use %i or %I for an array of symbols.
Open

    SUB_KEYS = [:delay,
                :queue,
                :perform,
                :stats,
                :heart,
Severity: Minor
Found in lib/qpush/base/redis.rb by rubocop

This cop can check for array literals made up of symbols that are not using the %i() syntax.

Alternatively, it checks for symbol arrays using the %i() syntax on projects which do not want to use that syntax.

Configuration option: MinSize If set, arrays with fewer elements than this value will not trigger the cop. For example, a MinSize of3` will not enforce a style on an array of 2 or fewer elements.

Example: EnforcedStyle: percent (default)

# good
%i[foo bar baz]

# bad
[:foo, :bar, :baz]

Example: EnforcedStyle: brackets

# good
[:foo, :bar, :baz]

# bad
%i[foo bar baz]

Missing top-level module documentation comment.
Open

    module RedisHelper
Severity: Minor
Found in lib/qpush/base/redis.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. [92/80]
Open

          keys[:perform_list] = (1..priorities).collect { |num| "#{keys[:perform]}:#{num}" }
Severity: Minor
Found in lib/qpush/base/redis.rb by rubocop

Missing top-level module documentation comment.
Open

      module ClassMethods
Severity: Minor
Found in lib/qpush/base/redis.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

There are no issues that match your filters.

Category
Status