ManageIQ/manageiq

View on GitHub
app/models/tenant_quota.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
97%

Use filter_map instead.
Open

    value - tenant.children.includes(:tenant_quotas).map do |c|
      cq = c.tenant_quotas.send(name).take
      cq.value if cq
    end.compact.sum - used
Severity: Minor
Found in app/models/tenant_quota.rb by rubocop

Use filter_map instead.
Open

    tenant.children.includes(:tenant_quotas).map do |c|
      cq = c.tenant_quotas.send(name).take
      cq.value if cq
    end.compact.sum
Severity: Minor
Found in app/models/tenant_quota.rb by rubocop

There are no issues that match your filters.

Category
Status