lib/radiator/mixins/acts_as_voter.rb
Avoid single-line method definitions. Open
Open
def vote!(weight, *args); vote(weight, *args).broadcast!(true); end
- Read upRead up
- Exclude checks
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
Open
# steem = Radiator::Chain.new(chain: :steem, account_name: 'your account name', wif: 'your wif')
- Exclude checks
Trailing whitespace detected. Open
Open
- Exclude checks
Trailing whitespace detected. Open
Open
- Exclude checks
Line is too long. [106/80] Open
Open
# steem = Radiator::Chain.new(chain: :steem, account_name: 'your account name', wif: 'your wif')
- Exclude checks
Missing top-level module documentation comment. Open
Open
module ActsAsVoter
- 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
Trailing whitespace detected. Open
Open
- Exclude checks
Line is too long. [106/80] Open
Open
# steem = Radiator::Chain.new(chain: :steem, account_name: 'your account name', wif: 'your wif')
- Exclude checks
Line is too long. [133/80] Open
Open
# @param args [author, permlink || slug] pass either `author` and `permlink` or string containing both like `@author/permlink`.
- Exclude checks
Line is too long. [106/80] Open
Open
# steem = Radiator::Chain.new(chain: :steem, account_name: 'your account name', wif: 'your wif')
- Exclude checks