CLOSER-Cohorts/archivist

View on GitHub
lib/tasks/util.rake

Summary

Maintainability
Test Coverage

Avoid rescuing the Exception class. Perhaps you meant to rescue StandardError?
Open

    rescue Exception
Severity: Minor
Found in lib/tasks/util.rake by rubocop

This cop checks for rescue blocks targeting the Exception class.

Example:

# bad

begin
  do_something
rescue Exception
  handle_exception
end

Example:

# good

begin
  do_something
rescue ArgumentError
  handle_exception
end

Do not suppress exceptions.
Open

    rescue Exception
Severity: Minor
Found in lib/tasks/util.rake by rubocop

This cop checks for rescue blocks with no body.

Example:

# bad

def some_method
  do_something
rescue
  # do nothing
end

Example:

# bad

begin
  do_something
rescue
  # do nothing
end

Example:

# good

def some_method
  do_something
rescue
  handle_exception
end

Example:

# good

begin
  do_something
rescue
  handle_exception
end

There are no issues that match your filters.

Category
Status