GordonDiggs/rayons

View on GitHub
app/models/discogs_release.rb

Summary

Maintainability
A
0 mins
Test Coverage

TODO found
Open

  # TODO: go back to using the discogs images somehow
Severity: Minor
Found in app/models/discogs_release.rb by fixme

Extra empty line detected before the rescue.
Open


  rescue Errno::ETIMEDOUT
Severity: Minor
Found in app/models/discogs_release.rb by rubocop

This cops checks if empty lines exist around the bodies of begin sections. This cop doesn't check empty lines at begin body beginning/end and around method definition body. Style/EmptyLinesAroundBeginBody or Style/EmptyLinesAroundMethodBody can be used for this purpose.

Example:

# good

begin
  do_something
rescue
  do_something2
else
  do_something3
ensure
  do_something4
end

# good

def foo
  do_something
rescue
  do_something2
end

# bad

begin
  do_something

rescue

  do_something2

else

  do_something3

ensure

  do_something4
end

# bad

def foo
  do_something

rescue

  do_something2
end

There are no issues that match your filters.

Category
Status