CloudSlang/cs-actions

View on GitHub

Showing 3,994 of 4,023 total issues

Method verifyCommonUserInputs has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public static List<String> verifyCommonUserInputs(@Nullable final String proxyPort,
                                                      @Nullable final String trust_all_roots,
                                                      @Nullable final String connectTimeout,
                                                      @Nullable final String socketTimeout,
                                                      @Nullable final String keepAlive,

    Method verifyCreateMessageInputs has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public static List<String> verifyCreateMessageInputs(@Nullable final String sender, @Nullable final String importance,
                                                             @Nullable final String toRecipients, @Nullable final String isRead,
                                                             @Nullable final String isDeliveryReceiptRequested,
                                                             @Nullable final String isReadReceiptRequested,
                                                             @Nullable final String inferenceClassification) {

      Method addDeviceConfigSpecs has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          private VirtualMachineConfigSpec addDeviceConfigSpecs(VirtualMachineConfigSpec configSpec, VirtualDeviceConfigSpec scsiCtrlSpec,
                                                                VirtualDeviceConfigSpec floppySpec, VirtualDeviceConfigSpec cdSpec,
                                                                VirtualDevice ideController, VirtualDeviceConfigSpec diskSpec,
                                                                VirtualDeviceConfigSpec nicSpec) {

        Method getNicSpecs has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            VirtualDeviceConfigSpec getNicSpecs(String fileName, List<VirtualDevice> virtualDevicesList,
                                                VirtualDeviceConfigSpecOperation operation, String addressType,
                                                Integer key, String parameter, VmInputs vmInputs) {

          Method setSecurityInputs has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              public static void setSecurityInputs(@NotNull final HttpClientInputs httpClientInputs,
                                                   @NotNull final String trustAllRoots,
                                                   @NotNull final String x509HostnameVerifier,
                                                   @NotNull final String trustKeystore,
                                                   @NotNull final String trustPassword,

            Method setConnectionParameters has 7 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                public static void setConnectionParameters(HttpClientInputs httpClientInputs,
                                                           @NotNull final String connectTimeout,
                                                           @NotNull final String socketTimeout,
                                                           @NotNull final String keepAlive,
                                                           @NotNull final String connectionsMaxPerRoot,

              Method verifyCommonInputs has 7 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  public static List<String> verifyCommonInputs(@Nullable final String proxyPort,
                                                                @Nullable final String trust_all_roots,
                                                                @Nullable final String connectTimeout,
                                                                @Nullable final String socketTimeout,
                                                                @Nullable final String keepAlive,

                Method createReceiveRequestBody has 7 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    private String createReceiveRequestBody(String doc, String url, String shellId, String commandId, String maxEnvelopeSize, String winrmLocale, String operationTimeout) throws RuntimeException {

                  Method getQueryParams has 7 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      public static String getQueryParams(String filter, String offset, String length,
                                                          String sortOrder, String sortAttribute, String includeVMDiskConfigInfo, final String includeVMNicConfigInfo) {

                    Method createExecuteCommandRequestBody has 7 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        private String createExecuteCommandRequestBody(String doc, String url, String shellId, String command, String maxEnvelopeSize, String winrmLocale, String operationTimeout) throws RuntimeException {

                      Method connect has 7 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          public void connect(String username, String password, String privateKey, String host, int port, int connectionTimeout,
                                              int executionTimeout)

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

                            public Map<String, String> execute(@Param(value = STORAGE_ACCOUNT, required = true) String storageAccount,
                                                               @Param(value = KEY, required = true, encrypted = true) String key,
                                                               @Param(value = PROXY_HOST) String proxyHost,
                                                               @Param(value = PROXY_PORT) String proxyPort,
                                                               @Param(value = PROXY_USERNAME) String proxyUsername,

                          Method setConnectionParameters has 7 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              public static void setConnectionParameters(HttpClientInputs httpClientInputs,
                                                                         @NotNull final String connectTimeout,
                                                                         @NotNull final String socketTimeout,
                                                                         @NotNull final String useCookies,
                                                                         @NotNull final String keepAlive,

                            Method setSecurityInputs has 7 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                public static void setSecurityInputs(@NotNull final HttpClientInputs httpClientInputs,
                                                                     @NotNull final String trustAllRoots,
                                                                     @NotNull final String x509HostnameVerifier,
                                                                     @NotNull final String trustKeystore,
                                                                     @NotNull final String trustPassword,

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

                                  public @NotNull Map<String, String> execute(@Param(value = InputNames.MAP, required = true) String map,
                                                                              @Param(value = InputNames.PAIR_DELIMITER, required = true) String pairDelimiter,
                                                                              @Param(value = InputNames.ENTRY_DELIMITER, required = true) String entryDelimiter,
                                                                              @Param(value = InputNames.MAP_START) String mapStart,
                                                                              @Param(value = InputNames.MAP_END) String mapEnd,

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

                                    public Map<String, String> execute(@Param(value = InputNames.MAP) String map,
                                                                       @Param(value = InputNames.PAIR_DELIMITER, required = true) String pairDelimiter,
                                                                       @Param(value = InputNames.ENTRY_DELIMITER, required = true) String entryDelimiter,
                                                                       @Param(value = InputNames.MAP_START) String mapStart,
                                                                       @Param(value = InputNames.MAP_END) String mapEnd,

                                  Method populateResult has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      private static void populateResult(Map<String, String> result, String resultText,
                                                                         String returnResult, String resultXml, String resultKey, String returnCode, String errorMessage) {
                                  Severity: Major
                                  Found in cs-xml/src/main/java/io/cloudslang/content/xml/utils/ResultUtils.java - About 50 mins to fix

                                    Method get has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                      def get(httpTransport: HttpTransport, jsonFactory: JsonFactory, credential: Credential, bucketName: String,
                                              ifMetagenerationMatch: String, ifMetagenerationNotMatch: String, projection: String): Bucket = {

                                      Method updateOperationProgress has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                        def updateOperationProgress(httpTransport: HttpTransport, jsonFactory: JsonFactory, credential: Credential,
                                                                    projectId: String, operation: Operation, instanceId: Option[String],
                                                                    pollingInterval: Long): Future[Operation] =

                                        Method list has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                          def list(httpTransport: HttpTransport, jsonFactory: JsonFactory, credential: Credential, project: String, zone: String,
                                                   filterOpt: Option[String], orderByOpt: Option[String]): List[Disk] = {
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language