ManageIQ/manageiq

View on GitHub
lib/vmdb/global_methods.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
56%

Avoid when branches without a body.
Open

        when "raw"                                  # return without formatting
Severity: Minor
Found in lib/vmdb/global_methods.rb by rubocop

This cop checks for the presence of when branches without a body.

Example:

# bad

case foo
when bar then 1
when baz then # nothing
end

Example:

# good

case foo
when bar then 1
when baz then 2
end

There are no issues that match your filters.

Category
Status