inertia186/radiator

View on GitHub
lib/radiator/mixins/acts_as_voter.rb

Summary

Maintainability
A
0 mins
Test Coverage

Avoid single-line method definitions.
Open

      def vote!(weight, *args); vote(weight, *args).broadcast!(true); end

This cop checks for single-line method definitions that contain a body. It will accept single-line methods with no body.

Example:

# bad
def some_method; body end
def link_to(url); {:name => url}; end
def @table.columns; super; end

# good
def no_op; end
def self.resource_class=(klass); end
def @table.columns; end

Line is too long. [106/80]
Open

      #     steem = Radiator::Chain.new(chain: :steem, account_name: 'your account name', wif: 'your wif')

Trailing whitespace detected.
Open

        

Trailing whitespace detected.
Open

        

Line is too long. [106/80]
Open

      #     steem = Radiator::Chain.new(chain: :steem, account_name: 'your account name', wif: 'your wif')

Missing top-level module documentation comment.
Open

    module ActsAsVoter

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

Trailing whitespace detected.
Open

      

Line is too long. [106/80]
Open

      #     steem = Radiator::Chain.new(chain: :steem, account_name: 'your account name', wif: 'your wif')

Line is too long. [133/80]
Open

      # @param args [author, permlink || slug] pass either `author` and `permlink` or string containing both like `@author/permlink`.

Line is too long. [106/80]
Open

      #     steem = Radiator::Chain.new(chain: :steem, account_name: 'your account name', wif: 'your wif')

There are no issues that match your filters.

Category
Status