ManageIQ/manageiq

View on GitHub
app/models/relationship.rb

Summary

Maintainability
A
0 mins
Test Coverage
C
70%

Use filter_map instead.
Open

    relationships.collect(&:resource).compact
Severity: Minor
Found in app/models/relationship.rb by rubocop

Avoid immutable Array literals in loops. It is better to extract it into a local variable or a constant.
Open

      name = obj.send([:name, :description, :object_id].detect { |m| obj.respond_to?(m) })
Severity: Minor
Found in app/models/relationship.rb by rubocop

Avoid immutable Array literals in loops. It is better to extract it into a local variable or a constant.
Open

      name = obj.send([:name, :description, :object_id].detect { |m| obj.respond_to?(m) })
Severity: Minor
Found in app/models/relationship.rb by rubocop

There are no issues that match your filters.

Category
Status