CloudSlang/cs-actions

View on GitHub
cs-azure/src/main/java/io/cloudslang/content/azure/actions/compute/virtualmachines/CreateVM.java

Summary

Maintainability
C
1 day
Test Coverage

Method execute has 36 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public Map<String, String> execute(@Param(value = SUBSCRIPTION_ID, required = true, description = SUBSCRIPTION_ID_DESC) String subscriptionId,
                                       @Param(value = AZURE_PROTOCOL, required = true, description = AZURE_PROTOCOL_DESC) String azureProtocol,
                                       @Param(value = AZURE_HOST, required = true, description = AZURE_HOST_DESC) String azureHost,
                                       @Param(value = AUTH_TOKEN, required = true, description = AUTH_TOKEN_DESC, encrypted = true) String authToken,
                                       @Param(value = API_VERSION, description = COMPUTE_API_VERSION_DESC) String apiVersion,

    Method execute has 75 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        @Action(name = CREATE_VM,
                description = CREATE_VM_DESC,
                outputs = {
                        @Output(value = RETURN_RESULT, description = RETURN_RESULT_DESC),
                        @Output(value = EXCEPTION, description = EXCEPTION_DESC),

      Avoid too many return statements within this method.
      Open

                  return getFailureResultsMap(exception);

        There are no issues that match your filters.

        Category
        Status