codeclimate/codeclimate-rubocop

View on GitHub
config/contents/style/single_line_methods.md

Summary

Maintainability
Test Coverage
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