crispgm/caravan

View on GitHub
lib/caravan/command.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Redundant return detected. To return multiple values, use an array.
Open

        return $CHILD_STATUS.exitstatus, output
Severity: Minor
Found in lib/caravan/command.rb by rubocop

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.

There are no issues that match your filters.

Category
Status