Parent

Included Modules

Files

Class/Module Index [+]

Quicksearch

RuboCop::Cop::Style::RedundantReturn

This cop checks for redundant `return` expressions.

@example

def test
  return something
end

def test
  one
  two
  three
  return something
end

It should be extended to handle methods whose body is if/else or a case expression with a default branch.

Constants

MSG

[Validate]

Generated with the Darkfish Rdoc Generator 2.