fog/fog-azure-rm

View on GitHub
lib/fog/azurerm/models/resources/dependency.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
50%

Favor a normal if-statement over a modifier clause in a multiline statement.
Open

          dependency.depends_on.each do |sub_dependency|
            dependency_obj = Fog::Resources::AzureRM::Dependency.new
            hash['depends_on'] << dependency_obj.merge_attributes(Fog::Resources::AzureRM::Dependency.parse(sub_dependency))
          end if dependency.respond_to?('depends_on')

Checks for uses of if/unless modifiers with multiple-lines bodies.

Example:

# bad
{
  result: 'this should not happen'
} unless cond

# good
{ result: 'ok' } if cond

There are no issues that match your filters.

Category
Status