fog/fog-azure-rm

View on GitHub
lib/fog/azurerm/requests/resources/list_deployments.rb

Summary

Maintainability
A
2 hrs
Test Coverage
F
43%

Method list_deployments has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        def list_deployments(resource_group)
          deployments = {
            value: [{
              id: "/subscriptions/########-####-####-####-############/resourceGroups/#{resource_group}/providers/microsoft.resources/deployments/testdeployment",
              name: 'testdeployment',
Severity: Major
Found in lib/fog/azurerm/requests/resources/list_deployments.rb - About 2 hrs to fix

    Unnecessary spacing detected.
    Open

              rescue  MsRestAzure::AzureOperationError => e

    This cop checks for extra/unnecessary whitespace.

    Example:

    # good if AllowForAlignment is true
    name      = "RuboCop"
    # Some comment and an empty line
    
    website  += "/bbatsov/rubocop" unless cond
    puts        "rubocop"          if     debug
    
    # bad for any configuration
    set_app("RuboCop")
    website  = "https://github.com/bbatsov/rubocop"

    There are no issues that match your filters.

    Category
    Status