cloudamatic/mu

View on GitHub
extras/clean-stock-amis

Summary

Maintainability
Test Coverage

Use meaningful heredoc delimiters.
Open

  EOS
Severity: Minor
Found in extras/clean-stock-amis by rubocop

This cop checks that your heredocs are using meaningful delimiters. By default it disallows END and EO*, and can be configured through blacklisting additional delimiters.

Example:

# good
<<-SQL
  SELECT * FROM foo
SQL

# bad
<<-END
  SELECT * FROM foo
END

# bad
<<-EOS
  SELECT * FROM foo
EOS

Do not suppress exceptions.
Open

      rescue Aws::EC2::Errors::InvalidAMIIDUnavailable
Severity: Minor
Found in extras/clean-stock-amis 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

Do not suppress exceptions.
Open

        rescue Aws::EC2::Errors::InvalidSnapshotNotFound
Severity: Minor
Found in extras/clean-stock-amis 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