jenkinsci/hpe-application-automation-tools-plugin

View on GitHub

Showing 95 of 716 total issues

Consider simplifying this complex logical expression.
Open

            if (string.IsNullOrWhiteSpace(qcServerUrl)
                || (string.IsNullOrWhiteSpace(qcLogin) && !SSOEnabled)
                || string.IsNullOrWhiteSpace(qcDomain)
                || string.IsNullOrWhiteSpace(qcProject)
                || (SSOEnabled && (string.IsNullOrWhiteSpace(qcClientID)
Severity: Critical
Found in HpToolsLauncher/Runners/AlmTestSetsRunner.cs - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

                                if (!("testinstanceid".equals(name) && "AUTO".equals(getPcModel().getAutoTestInstanceID()))
                                        && !(("retrydelay".equals(name) && "NO_RETRY".equals(getPcModel().getRetry())) || getPcModel().getRetry().isEmpty())
                                        && !(("retryoccurrences".equals(name) && "NO_RETRY".equals(getPcModel().getRetry())) || getPcModel().getRetry().isEmpty())
                                ) {
                                    if ("doCheckCredentialsId".equals(method.getName()) && "credentialsid".equals(name) && "getCredentialsId".equals(modelMethodName)

      Consider simplifying this complex logical expression.
      Open

                      if (ev?.data == "mcCloseWizard") {
                          await a.populateAppAndDevice(baseUrl, o.userName, o.password, o.tenantId, o.execToken, o.authType, o.useProxyAuth, o.proxyAddress, o.proxyUserName, o.proxyPassword, jobId, async (app) => {
                              let jobInfo = app.responseObject();
                              let deviceId = "", OS = "", manufacturerAndModel = "", targetLab = "";
                              if (jobInfo['deviceJSON']) {
      Severity: Major
      Found in src/main/webapp/configure.js - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

                    if (mc.HostAddress.IsNullOrEmpty() ||
                        (mc.MobileAuthType == AuthType.UsernamePassword && mc.UserName.IsNullOrEmpty() && mc.Password.IsNullOrEmpty()) ||
                        (mc.MobileAuthType == AuthType.AuthToken && mc.ExecToken.IsNullOrEmpty()) ||
                        string.IsNullOrEmpty(mc.HostPort))
                        return null;
        Severity: Major
        Found in HpToolsLauncher/ParallelRunner/ParallelRunnerEnvironmentUtil.cs - About 1 hr to fix

          Avoid deeply nested control flow statements.
          Open

                                  if (archiveFolder(reportFolder, testStatus, archivedFile, listener)) {
                                      zipFileNames.add(zipFileName);
                                  }

            Avoid deeply nested control flow statements.
            Open

                                        if (testSla == null) {
                                            listener.getLogger().println("no RunReport.xml file was created");
                                        } else {
                                            runReportList.add(testSla);
                                        }

              Avoid deeply nested control flow statements.
              Open

                                              default:
                                                  throw new ArgumentException(
                                                               "Malformed \\uxxxx encoding.");
              Severity: Major
              Found in HpToolsLauncher/Interfaces/JavaProperties/JavaProperties.cs - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                        switch (buildStepName) {
                                            case "RunFromAlmBuilder":
                                                resFileParam = paramAction.getParameter("resultsFilename");
                                                if (resFileParam != null) {
                                                    almResultNames.add(((StringParameterValue)resFileParam).getValue());

                  Avoid deeply nested control flow statements.
                  Open

                                              if (!("testinstanceid".equals(name) && "AUTO".equals(getPcModel().getAutoTestInstanceID()))
                                                      && !(("retrydelay".equals(name) && "NO_RETRY".equals(getPcModel().getRetry())) || getPcModel().getRetry().isEmpty())
                                                      && !(("retryoccurrences".equals(name) && "NO_RETRY".equals(getPcModel().getRetry())) || getPcModel().getRetry().isEmpty())
                                              ) {
                                                  if ("doCheckCredentialsId".equals(method.getName()) && "credentialsid".equals(name) && "getCredentialsId".equals(modelMethodName)

                    Avoid deeply nested control flow statements.
                    Open

                                                        case SlaRuleStatus.Passed:
                                                            passed++;
                                                            break;
                    Severity: Major
                    Found in LRAnalysisLauncher/Program.cs - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                                      case '0':
                                                      case '1':
                                                      case '2':
                                                      case '3':
                                                      case '4':
                      Severity: Major
                      Found in HpToolsLauncher/Interfaces/JavaProperties/JavaProperties.cs - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                                    if (cleanupTest != null)
                                                                        cleanupAndRerunTests.Add(cleanupTest);
                        Severity: Major
                        Found in HpToolsLauncher/Launcher.cs - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                  if (scmPluginHandler != null) {
                                                      return scmPluginHandler.getSharedCheckOutDirectory(j);
                                                  }

                            Avoid deeply nested control flow statements.
                            Open

                                                            default:
                                                                throw new ArgumentException(
                                                                             "Malformed \\uxxxx encoding.");
                            Severity: Major
                            Found in HpToolsLauncher/JavaProperties/JavaProperties.cs - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                          if (!tListIndexName.ToLower().Contains(filterByName.ToLower()) &&
                                                          !tListIndexTestName.ToLower().Contains(filterByName.ToLower()))
                                                          {
                                                              testList.Remove(index);
                              
                              Severity: Major
                              Found in HpToolsLauncher/Runners/AlmTestSetsRunner.cs - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                        if (!testCaseElement.hasAttribute(REPORT_NAME_FIELD)) {
                                                            continue;
                                                        }

                                  Avoid deeply nested control flow statements.
                                  Open

                                                                      case SlaRuleStatus.NoData:
                                                                          noData++;
                                                                          break;
                                  Severity: Major
                                  Found in LRAnalysisLauncher/Program.cs - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                    case '0':
                                                                    case '1':
                                                                    case '2':
                                                                    case '3':
                                                                    case '4':
                                    Severity: Major
                                    Found in HpToolsLauncher/JavaProperties/JavaProperties.cs - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                      if (prevRunId == -1)
                                                                      {
                                                                          Console.WriteLine("No test runs exist for this test");
                                                                          continue;
                                                                      }
                                      Severity: Major
                                      Found in HpToolsLauncher/Runners/AlmTestSetsRunner.cs - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                      if (property instanceof Mailer.UserProperty) {
                                                        userEmail = ((Mailer.UserProperty) property).getAddress();
                                                      }
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language