ManageIQ/inventory_refresh

View on GitHub
lib/inventory_refresh/persister.rb

Summary

Maintainability
A
35 mins
Test Coverage
A
100%

Method add_collection has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def add_collection(collection_name, builder_class = inventory_collection_builder, extra_properties = {}, settings = {}, &block)
Severity: Minor
Found in lib/inventory_refresh/persister.rb - About 35 mins to fix

Use filter_map instead.
Open

      collections_data = collections.map do |_, collection|
        next if collection.data.blank? &&
                collection.targeted_scope.primary_references.blank? &&
                collection.all_manager_uuids.nil? &&
                collection.skeletal_primary_index.index_data.blank?
Severity: Minor
Found in lib/inventory_refresh/persister.rb by rubocop

There are no issues that match your filters.

Category
Status