alxndr/lyriki

View on GitHub
lib/web_helpers.rb

Summary

Maintainability
A
0 mins
Test Coverage

Place the end statement of a multi-line method on its own line.
Open

class EditUrlError < StandardError; end
Severity: Minor
Found in lib/web_helpers.rb by rubocop

This cop checks for trailing code after the method definition.

Example:

# bad
def some_method
do_stuff; end

def do_this(x)
  baz.map { |b| b.this(x) } end

def foo
  block do
    bar
  end end

# good
def some_method
  do_stuff
end

def do_this(x)
  baz.map { |b| b.this(x) }
end

def foo
  block do
    bar
  end
end

There are no issues that match your filters.

Category
Status