fog/fog-azure-rm

View on GitHub
lib/fog/azurerm/requests/network/get_virtual_network.rb

Summary

Maintainability
A
1 hr
Test Coverage
F
47%

Method get_virtual_network has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        def get_virtual_network(*)
          virtual_network = {
            'id' => '/subscriptions/########-####-####-####-############/resourceGroups/fog-rg/providers/Microsoft.Network/virtualNetworks/fog-vnet',
            'name' => 'fog-vnet',
            'type' => 'Microsoft.Network/virtualNetworks',
Severity: Minor
Found in lib/fog/azurerm/requests/network/get_virtual_network.rb - About 1 hr to fix

    %w-literals should be delimited by [ and ].
    Open

                          %w(10.1.0.0/16 10.2.0.0/16)

    This cop enforces the consistent usage of %-literal delimiters.

    Specify the 'default' key to set all preferred delimiters at once. You can continue to specify individual preferred delimiters to override the default.

    Example:

    # Style/PercentLiteralDelimiters:
    #   PreferredDelimiters:
    #     default: '[]'
    #     '%i':    '()'
    
    # good
    %w[alpha beta] + %i(gamma delta)
    
    # bad
    %W(alpha #{beta})
    
    # bad
    %I(alpha beta)

    There are no issues that match your filters.

    Category
    Status