ManageIQ/manageiq-providers-amazon

View on GitHub
app/models/authenticator/amazon.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
90%

Use string as argument instead of regexp.
Open

      iam.client.get_user[:user][:arn].split(/:/)[5].to_s != 'root'
Severity: Minor
Found in app/models/authenticator/amazon.rb by rubocop

Use filter_map instead.
Open

      %i(amazon_key amazon_secret).map do |key|
        if config[key].blank?
          [key, "#{key} can't be blank"]
        end
      end.compact
Severity: Minor
Found in app/models/authenticator/amazon.rb by rubocop

There are no issues that match your filters.

Category
Status